TabBar.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /* dojox.mobile.TabBar */
  2. .mblTabBar {
  3. position: relative;
  4. overflow: hidden;
  5. white-space: nowrap;
  6. margin: 0;
  7. padding: 0;
  8. height: 50px;
  9. background-color: #5cb0ff;
  10. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(3.3333333333333335%, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
  11. border-bottom: 1px solid #769dc0;
  12. color: #131313;
  13. text-align: center;
  14. }
  15. .mblTabBarNoIcons {
  16. height: 34px;
  17. }
  18. .mblTabBarNoText {
  19. height: 34px;
  20. }
  21. /* dojox.mobile.TabBarButton */
  22. .mblTabBarButton {
  23. cursor: pointer;
  24. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  25. }
  26. .mblTabBar .mblTabBarButton {
  27. position: relative;
  28. list-style-type: none;
  29. float: left;
  30. padding: 5px 0;
  31. }
  32. .mblTabBar .mblTabBarButton.mblTabButtonSelected {
  33. border-color: #769dc0;
  34. background-color: #0064c2;
  35. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(3.3333333333333335%, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
  36. -webkit-border-radius: 2px;
  37. }
  38. .mblTabBarButtonAnchor {
  39. display: block;
  40. text-decoration: none;
  41. }
  42. .mblTabBarButtonDiv {
  43. position: relative;
  44. margin-left: auto;
  45. margin-right: auto;
  46. height: 29px;
  47. width: 29px;
  48. }
  49. .mblTabBarButtonIcon {
  50. position: absolute;
  51. left: 0;
  52. top: 0;
  53. }
  54. .mblTabBarButtonSpriteIcon {
  55. position: absolute;
  56. }
  57. .mblTabBarButtonTextBox {
  58. color: #131313;
  59. font-family: Helvetica;
  60. font-size: 11px;
  61. font-weight: normal;
  62. }
  63. .mblTabBarNoIcons .mblTabBarButtonDiv {
  64. display: none;
  65. }
  66. .mblTabBarNoIcons .mblTabBarButtonTextBox {
  67. line-height: 39px;
  68. font-size: 17px;
  69. }
  70. .mblTabBarTop .mblTabButton .mblTabBarButtonDiv {
  71. display: none;
  72. }
  73. .mblTabButton {
  74. position: relative;
  75. float: left;
  76. list-style-type: none;
  77. cursor: pointer;
  78. -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  79. width: 90px;
  80. height: 30px;
  81. border-width: 1px 1px 1px 0px;
  82. border-style: inset;
  83. border-color: #b5bcc7;
  84. border-right-color: #b5bcc7;
  85. background-color: #5cb0ff;
  86. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(3.3333333333333335%, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0.6)), color-stop(1, rgba(255, 255, 255, 0.3)));
  87. font-family: Helvetica;
  88. font-size: 14px;
  89. font-weight: normal;
  90. color: #131313;
  91. text-align: center;
  92. line-height: 30px;
  93. }
  94. .mblTabButton .mblTabBarButtonAnchor, .mblTabButton .mblTabBarButtonDiv {
  95. height: 30px;
  96. }
  97. .mblTabButton:first-child {
  98. -webkit-border-top-left-radius: 2px;
  99. -webkit-border-bottom-left-radius: 2px;
  100. border-left-width: 1px;
  101. }
  102. .mblTabButton:last-child {
  103. -webkit-border-top-right-radius: 2px;
  104. -webkit-border-bottom-right-radius: 2px;
  105. border-right-color: #b5bcc7;
  106. }
  107. .mblTabButtonSelected .mblTabBarButtonTextBox {
  108. color: #000000;
  109. }
  110. .mblTabButtonSelected.mblTabButton {
  111. background-color: #0064c2;
  112. }
  113. .mblTabButtonHighlighted.mblTabButton {
  114. background-color: #007ef5;
  115. }
  116. .mblTabButtonImgDiv {
  117. display: none;
  118. }
  119. .mblTabPanelHeader {
  120. position: relative;
  121. overflow: hidden;
  122. white-space: nowrap;
  123. text-overflow: ellipsis;
  124. margin: 0;
  125. padding: 0;
  126. height: 40px;
  127. background-color: #5cb0ff;
  128. background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ffffff), color-stop(2.5%, #ffffff), color-stop(2.5%, rgba(255, 255, 255, 0.14)), color-stop(5%, rgba(255, 255, 255, 0.14)), color-stop(5%, rgba(255, 255, 255, 0.52)), color-stop(7.5%, rgba(255, 255, 255, 0.52)), color-stop(7.5%, rgba(255, 255, 255, 0.68)), color-stop(10%, rgba(255, 255, 255, 0.68)), color-stop(1, rgba(255, 255, 255, 0)));
  129. border-bottom: 1px solid #769dc0;
  130. color: #131313;
  131. font-size: 18px;
  132. font-family: Helvetica;
  133. font-weight: normal;
  134. text-shadow: rgba(0, 0, 0, 0.2) 0px 1px 2px;
  135. text-align: center;
  136. line-height: 42px;
  137. }
  138. .mblTabPanelHeader .mblTabButton {
  139. margin-top: 4px;
  140. }
  141. .mblTabPanelHeader .mblTabButton.mblTabButtonSelected {
  142. background-color: #0064c2;
  143. }
  144. .mblTabPanelHeader .mblTabButtonDomButton {
  145. width: 43px;
  146. }
  147. .mblTabPanelHeader .mblTabButtonDomButtonClass {
  148. left: 8px;
  149. }
  150. .mblHeading .mblTabPanelHeader .mblTabButton {
  151. margin-top: 5px;
  152. }
  153. .mblHeading .mblTabPanelHeader .mblTabButton:first-child {
  154. -webkit-border-top-left-radius: 2px;
  155. -webkit-border-bottom-left-radius: 2px;
  156. border-left-width: 1px;
  157. }
  158. .mblHeading .mblTabPanelHeader .mblTabButton:last-child {
  159. -webkit-border-top-right-radius: 2px;
  160. -webkit-border-bottom-right-radius: 2px;
  161. }