index.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. @import '../../app.less';
  2. .tabs.border {
  3. border-bottom: 1px solid @line_color;
  4. }
  5. .tabs.line {
  6. text-align: center;
  7. height: 44px;
  8. line-height: 44px;
  9. background: #fff;
  10. .tab {
  11. display: inline-block;
  12. position: relative;
  13. text-align: center;
  14. color: @base_color;
  15. width: 120px;
  16. margin: 0 30px;
  17. cursor: pointer;
  18. }
  19. .tab::after {
  20. content: '';
  21. width: 0;
  22. height: 4px;
  23. background: @theme_color;
  24. transform: translateX(-50%);
  25. transition: all 0.25s;
  26. position: absolute;
  27. bottom: 0;
  28. left: 50%;
  29. }
  30. .tab:hover,
  31. .tab.active {
  32. color: @theme_color;
  33. }
  34. .tab:hover::after,
  35. .tab.active::after {
  36. width: 100%;
  37. }
  38. }
  39. .tabs.card {
  40. text-align: center;
  41. height: 44px;
  42. line-height: 44px;
  43. background: @theme_bg_color;
  44. .tabs-warpper {
  45. display: flex;
  46. a {
  47. display: inline-block;
  48. flex: 1;
  49. }
  50. }
  51. .tab {
  52. width: 100%;
  53. display: inline-block;
  54. position: relative;
  55. text-align: center;
  56. color: @base_color;
  57. cursor: pointer;
  58. }
  59. .tab::after {
  60. content: '';
  61. width: 0;
  62. height: 4px;
  63. background: @theme_color;
  64. transform: translateX(-50%);
  65. position: absolute;
  66. top: 0;
  67. left: 50%;
  68. }
  69. .tab:hover,
  70. .tab.active {
  71. color: @theme_color;
  72. background: #fff;
  73. }
  74. .tab:hover::after,
  75. .tab.active::after {
  76. width: 100%;
  77. }
  78. }
  79. .tabs.tag {
  80. height: 24px;
  81. line-height: 24px;
  82. .tabs-warpper {
  83. a {
  84. display: inline-block;
  85. }
  86. }
  87. .tab {
  88. padding: 0 20px;
  89. display: inline-block;
  90. position: relative;
  91. text-align: center;
  92. color: #fff;
  93. cursor: pointer;
  94. background: #B9C1C9;
  95. border-radius: 12px;
  96. }
  97. .tab:hover,
  98. .tab.active {
  99. background: @theme_color;
  100. }
  101. }
  102. .tabs.text {
  103. height: 44px;
  104. line-height: 44px;
  105. padding-left: 44px;
  106. background: #fff;
  107. .tab {
  108. display: inline-block;
  109. position: relative;
  110. text-align: center;
  111. color: @base_color;
  112. margin: 0 13px;
  113. cursor: pointer;
  114. }
  115. .tab::after {
  116. content: '';
  117. width: 1px;
  118. height: 20px;
  119. background: @line_color;
  120. position: absolute;
  121. top: 12px;
  122. right: -13px;
  123. }
  124. .tab:hover,
  125. .tab.active {
  126. color: @theme_color;
  127. }
  128. a:nth-last-child(1) {
  129. .tab::after {
  130. display: none;
  131. }
  132. }
  133. }
  134. .tabs.division {
  135. text-align: center;
  136. height: 44px;
  137. line-height: 44px;
  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. }