index.less 4.4 KB

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