index.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. @import '../../app.less';
  2. .tabs {
  3. height: 44px;
  4. line-height: 44px;
  5. overflow: hidden;
  6. }
  7. .tabs.small {
  8. height: 32px;
  9. line-height: 32px;
  10. }
  11. .tabs.border {
  12. border-bottom: 1px solid #eee;
  13. }
  14. .tabs.line {
  15. text-align: center;
  16. background: #fff;
  17. .tab {
  18. display: inline-block;
  19. position: relative;
  20. text-align: center;
  21. color: @base_color;
  22. width: 120px;
  23. margin: 0 30px;
  24. cursor: pointer;
  25. }
  26. .tab::after {
  27. content: '';
  28. width: 0;
  29. height: 4px;
  30. background: @theme_color;
  31. transform: translateX(-50%);
  32. transition: all 0.25s;
  33. position: absolute;
  34. bottom: 0;
  35. left: 50%;
  36. }
  37. .tab:hover,
  38. .tab.active {
  39. color: @theme_color;
  40. }
  41. .tab:hover::after,
  42. .tab.active::after {
  43. width: 100%;
  44. }
  45. }
  46. .tabs.line.small {
  47. .tab {
  48. margin: 0;
  49. }
  50. .tab::after {
  51. height: 3px;
  52. }
  53. }
  54. .tabs.full {
  55. text-align: center;
  56. .tabs-warpper {
  57. display: flex;
  58. }
  59. .tab {
  60. display: inline-block;
  61. flex: 1;
  62. position: relative;
  63. text-align: center;
  64. cursor: pointer;
  65. color: #686872FF;
  66. }
  67. .tab::after {
  68. content: '';
  69. width: 0;
  70. height: 3px;
  71. background: @theme_color;
  72. transform: translateX(-50%);
  73. transition: all 0.25s;
  74. position: absolute;
  75. bottom: 5px;
  76. left: 50%;
  77. }
  78. .tab.active {
  79. color: #303139FF;
  80. }
  81. .tab:hover::after,
  82. .tab.active::after {
  83. width: 40px;
  84. }
  85. }
  86. .tabs.card {
  87. text-align: center;
  88. background: @theme_bg_color;
  89. .tabs-warpper {
  90. display: flex;
  91. a {
  92. display: inline-block;
  93. flex: 1;
  94. }
  95. }
  96. .tab {
  97. width: 100%;
  98. display: inline-block;
  99. position: relative;
  100. text-align: center;
  101. color: @base_color;
  102. cursor: pointer;
  103. }
  104. .tab::after {
  105. content: '';
  106. width: 0;
  107. height: 4px;
  108. background: @theme_color;
  109. transform: translateX(-50%);
  110. position: absolute;
  111. top: 0;
  112. left: 50%;
  113. }
  114. .tab:hover {
  115. color: @theme_color;
  116. }
  117. .tab.active {
  118. color: @theme_color;
  119. background: #fff;
  120. }
  121. .tab.active::after {
  122. width: 100%;
  123. }
  124. }
  125. .tabs.tag {
  126. line-height: 24px;
  127. .tabs-warpper {
  128. a {
  129. display: inline-block;
  130. }
  131. }
  132. .tab {
  133. padding: 0 20px;
  134. display: inline-block;
  135. position: relative;
  136. text-align: center;
  137. color: #fff;
  138. cursor: pointer;
  139. background: #B9C1C9;
  140. border-radius: 12px;
  141. }
  142. .tab:hover,
  143. .tab.active {
  144. background: @theme_color;
  145. }
  146. }
  147. .tabs.tag.white {
  148. .tab {
  149. background: #fff;
  150. color: #7F8699FF;
  151. border: 1px solid #E7EEF1FF;
  152. }
  153. .tab:hover,
  154. .tab.active {
  155. background: @theme_color;
  156. border: 1px solid @theme_color;
  157. color: #fff;
  158. }
  159. }
  160. .tabs.tag.small {
  161. height: 40px;
  162. overflow: hidden;
  163. .tabs-warpper {
  164. padding: 8px 0;
  165. }
  166. .tab {
  167. line-height: 22px;
  168. font-size: 12px;
  169. padding: 0 5px;
  170. }
  171. }
  172. .tabs.text {
  173. padding-left: 44px;
  174. background: #fff;
  175. .tab {
  176. display: inline-block;
  177. position: relative;
  178. text-align: center;
  179. color: @base_color;
  180. margin: 0 13px;
  181. cursor: pointer;
  182. }
  183. .tab::after {
  184. content: '';
  185. width: 1px;
  186. height: 20px;
  187. background: @line_color;
  188. position: absolute;
  189. top: 12px;
  190. right: -13px;
  191. }
  192. .tab:last-child::after {
  193. display: none;
  194. }
  195. .tab:hover,
  196. .tab.active {
  197. color: @theme_color;
  198. }
  199. a:nth-last-child(1) {
  200. .tab::after {
  201. display: none;
  202. }
  203. }
  204. }
  205. .tabs.division {
  206. text-align: center;
  207. .tabs-warpper {
  208. display: flex;
  209. }
  210. a {
  211. display: inline-block;
  212. flex: 1;
  213. width: 100%;
  214. padding: 0 5px;
  215. }
  216. .tab {
  217. width: 100%;
  218. display: inline-block;
  219. position: relative;
  220. text-align: center;
  221. color: @base_color;
  222. cursor: pointer;
  223. background: #E5E8EE;
  224. border-radius: 4px 4px 0px 0px;
  225. overflow: hidden;
  226. }
  227. .tab::after {
  228. content: '';
  229. width: 0;
  230. height: 4px;
  231. background: @theme_color;
  232. transform: translateX(-50%);
  233. position: absolute;
  234. top: 0;
  235. left: 50%;
  236. }
  237. .tab:hover,
  238. .tab.active {
  239. color: @theme_color;
  240. background: #fff;
  241. }
  242. .tab:hover::after,
  243. .tab.active::after {
  244. width: 100%;
  245. }
  246. }
  247. .tabs.division.theme {
  248. .tab {
  249. color: #A7A7B7;
  250. background: #ECEDEE;
  251. }
  252. .tab::after {
  253. display: none;
  254. }
  255. .tab:hover,
  256. .tab.active {
  257. color: #fff;
  258. background: @theme_color;
  259. }
  260. }
  261. .tabs.division.gray {
  262. .tab {
  263. color: #A7A7B7;
  264. background: #ECEDEE;
  265. }
  266. .tab::after {
  267. display: none;
  268. }
  269. .tab:hover,
  270. .tab.active {
  271. color: #fff;
  272. background: #989FC1;
  273. }
  274. }