index.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. @import '../../app.less';
  2. .tabs {
  3. height: 44px;
  4. line-height: 44px;
  5. }
  6. .tabs.small {
  7. height: 32px;
  8. line-height: 32px;
  9. }
  10. .tabs.border {
  11. border-bottom: 1px solid @line_color;
  12. }
  13. .tabs.line {
  14. text-align: center;
  15. background: #fff;
  16. .tab {
  17. display: inline-block;
  18. position: relative;
  19. text-align: center;
  20. color: @base_color;
  21. width: 120px;
  22. margin: 0 30px;
  23. cursor: pointer;
  24. }
  25. .tab::after {
  26. content: '';
  27. width: 0;
  28. height: 4px;
  29. background: @theme_color;
  30. transform: translateX(-50%);
  31. transition: all 0.25s;
  32. position: absolute;
  33. bottom: 0;
  34. left: 50%;
  35. }
  36. .tab:hover,
  37. .tab.active {
  38. color: @theme_color;
  39. }
  40. .tab:hover::after,
  41. .tab.active::after {
  42. width: 100%;
  43. }
  44. }
  45. .tabs.card {
  46. text-align: center;
  47. background: @theme_bg_color;
  48. .tabs-warpper {
  49. display: flex;
  50. a {
  51. display: inline-block;
  52. flex: 1;
  53. }
  54. }
  55. .tab {
  56. width: 100%;
  57. display: inline-block;
  58. position: relative;
  59. text-align: center;
  60. color: @base_color;
  61. cursor: pointer;
  62. }
  63. .tab::after {
  64. content: '';
  65. width: 0;
  66. height: 4px;
  67. background: @theme_color;
  68. transform: translateX(-50%);
  69. position: absolute;
  70. top: 0;
  71. left: 50%;
  72. }
  73. .tab:hover,
  74. .tab.active {
  75. color: @theme_color;
  76. background: #fff;
  77. }
  78. .tab:hover::after,
  79. .tab.active::after {
  80. width: 100%;
  81. }
  82. }
  83. .tabs.tag {
  84. height: 24px;
  85. line-height: 24px;
  86. .tabs-warpper {
  87. a {
  88. display: inline-block;
  89. }
  90. }
  91. .tab {
  92. padding: 0 20px;
  93. display: inline-block;
  94. position: relative;
  95. text-align: center;
  96. color: #fff;
  97. cursor: pointer;
  98. background: #B9C1C9;
  99. border-radius: 12px;
  100. }
  101. .tab:hover,
  102. .tab.active {
  103. background: @theme_color;
  104. }
  105. }
  106. .tabs.text {
  107. padding-left: 44px;
  108. background: #fff;
  109. .tab {
  110. display: inline-block;
  111. position: relative;
  112. text-align: center;
  113. color: @base_color;
  114. margin: 0 13px;
  115. cursor: pointer;
  116. }
  117. .tab::after {
  118. content: '';
  119. width: 1px;
  120. height: 20px;
  121. background: @line_color;
  122. position: absolute;
  123. top: 12px;
  124. right: -13px;
  125. }
  126. .tab:hover,
  127. .tab.active {
  128. color: @theme_color;
  129. }
  130. a:nth-last-child(1) {
  131. .tab::after {
  132. display: none;
  133. }
  134. }
  135. }
  136. .tabs.division {
  137. text-align: center;
  138. .tabs-warpper {
  139. display: flex;
  140. }
  141. a {
  142. display: inline-block;
  143. flex: 1;
  144. width: 100%;
  145. padding: 0 5px;
  146. }
  147. .tab {
  148. width: 100%;
  149. display: inline-block;
  150. position: relative;
  151. text-align: center;
  152. color: @base_color;
  153. cursor: pointer;
  154. background: #E5E8EE;
  155. border-radius: 4px 4px 0px 0px;
  156. overflow: hidden;
  157. }
  158. .tab::after {
  159. content: '';
  160. width: 0;
  161. height: 4px;
  162. background: @theme_color;
  163. transform: translateX(-50%);
  164. position: absolute;
  165. top: 0;
  166. left: 50%;
  167. }
  168. .tab:hover,
  169. .tab.active {
  170. color: @theme_color;
  171. background: #fff;
  172. }
  173. .tab:hover::after,
  174. .tab.active::after {
  175. width: 100%;
  176. }
  177. }
  178. .tabs.division.theme {
  179. .tab {
  180. color: #A7A7B7;
  181. background: #ECEDEE;
  182. }
  183. .tab::after {
  184. display: none;
  185. }
  186. .tab:hover,
  187. .tab.active {
  188. color: #fff;
  189. background: @theme_color;
  190. }
  191. }
  192. .tabs.division.gray {
  193. .tab {
  194. color: #A7A7B7;
  195. background: #ECEDEE;
  196. }
  197. .tab::after {
  198. display: none;
  199. }
  200. .tab:hover,
  201. .tab.active {
  202. color: #fff;
  203. background: #989FC1;
  204. }
  205. }