tabs.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. /**
  2. * Variables to customize the look and feel from Bootstrap.
  3. *
  4. * @author yiminghe@gmail.com
  5. */
  6. /**
  7. * Snippets of reusable CSS to develop faster and keep code readable from KISSY and Bootstrap.
  8. *
  9. * @author yiminghe@gmail.com
  10. */
  11. /**
  12. * Variables to customize the look and feel from Bootstrap.
  13. *
  14. * @author yiminghe@gmail.com
  15. */
  16. .ks-tabs {
  17. *zoom: 1;
  18. }
  19. .ks-tabs:before,
  20. .ks-tabs:after {
  21. display: table;
  22. content: "";
  23. }
  24. .ks-tabs:after {
  25. clear: both;
  26. }
  27. .ks-tabs-bar {
  28. background-image: none;
  29. background-color: transparent;
  30. border-width: 0px;
  31. outline: none;
  32. filter: none;
  33. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  34. margin-bottom: 18px;
  35. }
  36. .ks-tabs-body {
  37. overflow: auto;
  38. }
  39. .ks-tabs-body > .ks-tabs-panel {
  40. display: none;
  41. }
  42. .ks-tabs-body > .ks-tabs-panel-selected {
  43. display: block;
  44. }
  45. .ks-tabs-bar .ks-tabs-tab.ks-button {
  46. padding: 8px 12px 8px 12px;
  47. margin: 0;
  48. border: 1px solid transparent;
  49. color: #aeaeae;
  50. filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  51. background: none;
  52. cursor: pointer;
  53. }
  54. .ks-tabs-bar .ks-tabs-tab.ks-button.ks-tabs-tab-hover,
  55. .ks-tabs-bar .ks-tabs-tab.ks-button:hover {
  56. background-color: #eeeeee;
  57. border-color: #eeeeee;
  58. }
  59. .ks-tabs-bar .ks-tabs-tab.ks-button.ks-tabs-tab-selected,
  60. .ks-tabs-bar .ks-tabs-tab.ks-button.ks-tabs-tab-selected.ks-tabs-tab-active {
  61. color: #888888;
  62. background-color: #ffffff;
  63. cursor: default;
  64. -webkit-box-shadow: none;
  65. -moz-box-shadow: none;
  66. box-shadow: none;
  67. }
  68. .ks-tabs-top > .ks-tabs-bar {
  69. *zoom: 1;
  70. border-bottom: 1px solid #bbbbbb;
  71. }
  72. .ks-tabs-top > .ks-tabs-bar:before,
  73. .ks-tabs-top > .ks-tabs-bar:after {
  74. display: table;
  75. content: "";
  76. }
  77. .ks-tabs-top > .ks-tabs-bar:after {
  78. clear: both;
  79. }
  80. .ks-tabs-top > .ks-tabs-bar > .ks-tabs-tab {
  81. /*
  82. inline-block cause whitespace in ie67
  83. float is perfect
  84. */
  85. float: left;
  86. margin-right: 2px;
  87. display: inline;
  88. margin-bottom: -1px;
  89. border-radius: 4px 4px 0 0;
  90. }
  91. .ks-tabs-top > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected,
  92. .ks-tabs-top > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected.ks-tabs-tab-active {
  93. border-color: #bbbbbb #bbbbbb transparent #bbbbbb;
  94. /* ie7 transparent border makes bar border leaks*/
  95. *border-bottom-color: white;
  96. }
  97. .ks-tabs-bottom > .ks-tabs-bar {
  98. *zoom: 1;
  99. border-top: 1px solid #bbbbbb;
  100. }
  101. .ks-tabs-bottom > .ks-tabs-bar:before,
  102. .ks-tabs-bottom > .ks-tabs-bar:after {
  103. display: table;
  104. content: "";
  105. }
  106. .ks-tabs-bottom > .ks-tabs-bar:after {
  107. clear: both;
  108. }
  109. .ks-tabs-bottom > .ks-tabs-bar > .ks-tabs-tab {
  110. float: left;
  111. margin-right: 2px;
  112. display: inline;
  113. margin-top: -1px;
  114. border-radius: 0 0 4px 4px;
  115. }
  116. .ks-tabs-bottom > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected,
  117. .ks-tabs-bottom > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected.ks-tabs-tab-active {
  118. border-color: transparent #bbbbbb #bbbbbb #bbbbbb;
  119. *border-top-color: white;
  120. }
  121. .ks-tabs-left > .ks-tabs-bar {
  122. margin-right: 18px;
  123. border-right: 1px solid #bbbbbb;
  124. float: left;
  125. }
  126. .ks-tabs-left > .ks-tabs-bar > .ks-tabs-tab {
  127. margin-right: -1px;
  128. border-radius: 4px 0 0 4px;
  129. display: block;
  130. margin-bottom: 2px;
  131. }
  132. .ks-tabs-left > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected,
  133. .ks-tabs-left > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected.ks-tabs-tab-active {
  134. border-color: #bbbbbb transparent #bbbbbb #bbbbbb;
  135. *border-right-color: white;
  136. }
  137. .ks-tabs-right > .ks-tabs-bar {
  138. margin-left: 18px;
  139. border-left: 1px solid #bbbbbb;
  140. float: right;
  141. }
  142. .ks-tabs-right > .ks-tabs-bar > .ks-tabs-tab {
  143. margin-left: -1px;
  144. border-radius: 0 4px 4px 0;
  145. display: block;
  146. margin-bottom: 2px;
  147. }
  148. .ks-tabs-right > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected,
  149. .ks-tabs-right > .ks-tabs-bar > .ks-tabs-tab.ks-tabs-tab-selected.ks-tabs-tab-active {
  150. border-color: #bbbbbb #bbbbbb #bbbbbb transparent;
  151. *border-left-color: white;
  152. }