index.less 4.5 KB

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