index.less 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. .tab.active {
  116. color: @theme_color;
  117. background: #fff;
  118. }
  119. .tab:hover::after,
  120. .tab.active::after {
  121. width: 100%;
  122. }
  123. }
  124. .tabs.tag {
  125. line-height: 24px;
  126. .tabs-warpper {
  127. a {
  128. display: inline-block;
  129. }
  130. }
  131. .tab {
  132. padding: 0 20px;
  133. display: inline-block;
  134. position: relative;
  135. text-align: center;
  136. color: #fff;
  137. cursor: pointer;
  138. background: #B9C1C9;
  139. border-radius: 12px;
  140. }
  141. .tab:hover,
  142. .tab.active {
  143. background: @theme_color;
  144. }
  145. }
  146. .tabs.tag.white {
  147. .tab {
  148. background: #fff;
  149. color: #7F8699FF;
  150. border: 1px solid #E7EEF1FF;
  151. }
  152. .tab:hover,
  153. .tab.active {
  154. background: @theme_color;
  155. border: 1px solid @theme_color;
  156. color: #fff;
  157. }
  158. }
  159. .tabs.tag.small {
  160. height: 40px;
  161. overflow: hidden;
  162. .tabs-warpper {
  163. padding: 8px 0;
  164. }
  165. .tab {
  166. line-height: 22px;
  167. font-size: 12px;
  168. padding: 0 5px;
  169. }
  170. }
  171. .tabs.text {
  172. padding-left: 44px;
  173. background: #fff;
  174. .tab {
  175. display: inline-block;
  176. position: relative;
  177. text-align: center;
  178. color: @base_color;
  179. margin: 0 13px;
  180. cursor: pointer;
  181. }
  182. .tab::after {
  183. content: '';
  184. width: 1px;
  185. height: 20px;
  186. background: @line_color;
  187. position: absolute;
  188. top: 12px;
  189. right: -13px;
  190. }
  191. .tab:last-child::after {
  192. display: none;
  193. }
  194. .tab:hover,
  195. .tab.active {
  196. color: @theme_color;
  197. }
  198. a:nth-last-child(1) {
  199. .tab::after {
  200. display: none;
  201. }
  202. }
  203. }
  204. .tabs.division {
  205. text-align: center;
  206. .tabs-warpper {
  207. display: flex;
  208. }
  209. a {
  210. display: inline-block;
  211. flex: 1;
  212. width: 100%;
  213. padding: 0 5px;
  214. }
  215. .tab {
  216. width: 100%;
  217. display: inline-block;
  218. position: relative;
  219. text-align: center;
  220. color: @base_color;
  221. cursor: pointer;
  222. background: #E5E8EE;
  223. border-radius: 4px 4px 0px 0px;
  224. overflow: hidden;
  225. }
  226. .tab::after {
  227. content: '';
  228. width: 0;
  229. height: 4px;
  230. background: @theme_color;
  231. transform: translateX(-50%);
  232. position: absolute;
  233. top: 0;
  234. left: 50%;
  235. }
  236. .tab:hover,
  237. .tab.active {
  238. color: @theme_color;
  239. background: #fff;
  240. }
  241. .tab:hover::after,
  242. .tab.active::after {
  243. width: 100%;
  244. }
  245. }
  246. .tabs.division.theme {
  247. .tab {
  248. color: #A7A7B7;
  249. background: #ECEDEE;
  250. }
  251. .tab::after {
  252. display: none;
  253. }
  254. .tab:hover,
  255. .tab.active {
  256. color: #fff;
  257. background: @theme_color;
  258. }
  259. }
  260. .tabs.division.gray {
  261. .tab {
  262. color: #A7A7B7;
  263. background: #ECEDEE;
  264. }
  265. .tab::after {
  266. display: none;
  267. }
  268. .tab:hover,
  269. .tab.active {
  270. color: #fff;
  271. background: #989FC1;
  272. }
  273. }