index.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .nutui-tab {
  2. .tab-title-scroll {
  3. width: 100%;
  4. height: 46px;
  5. overflow-x: scroll;
  6. display: flex;
  7. flex-wrap: nowrap;
  8. scroll-behavior: smooth;
  9. background: #f5f5f5;
  10. }
  11. .tab-title {
  12. width: 100%;
  13. height: 46px;
  14. display: flex;
  15. flex-direction: row;
  16. flex-wrap: nowrap;
  17. scroll-behavior: smooth;
  18. background: #f5f5f5;
  19. position: relative;
  20. &::-webkit-scrollbar {
  21. display: none;
  22. }
  23. .underline {
  24. position: absolute;
  25. }
  26. .tab-title-box {
  27. height: 100%;
  28. display: flex;
  29. flex: 1;
  30. justify-content: center;
  31. align-items: center;
  32. box-sizing: border-box;
  33. text-align: center;
  34. font-size: 14px;
  35. }
  36. .tab-title-box-scroll {
  37. min-width: 75px;
  38. }
  39. .nut-tab-active {
  40. color: #1a1a1a;
  41. font-weight: bold;
  42. font-size: 16px;
  43. position: relative;
  44. &::after {
  45. content: '';
  46. position: absolute;
  47. bottom: 5px;
  48. left: 50%;
  49. transform: translateX(-50%);
  50. width: 12px;
  51. height: 4px;
  52. background-image: url('https://img12.360buyimg.com/imagetools/jfs/t1/127200/40/18747/536/5fb36b5aE61cac2d8/638032e8da9b93f4.png');
  53. background-size: 100% 100%;
  54. }
  55. }
  56. }
  57. .tab-title-scroll {
  58. overflow-x: scroll;
  59. }
  60. .half {
  61. .nut-tab-active {
  62. color: #1a1a1a;
  63. font-weight: bold;
  64. font-size: 16px;
  65. position: relative;
  66. &::after {
  67. content: '';
  68. display: none;
  69. }
  70. .world {
  71. position: relative;
  72. &::after {
  73. content: '';
  74. position: absolute;
  75. right: -8px;
  76. bottom: -5px;
  77. width: 11px;
  78. height: 10px;
  79. background-image: url('https://img12.360buyimg.com/imagetools/jfs/t1/197875/38/105/620/60ffcd30E34877e77/54c3dd9fe0a5ab76.png');
  80. background-size: 100% 100%;
  81. }
  82. }
  83. }
  84. }
  85. .tab-swiper {
  86. overflow: hidden;
  87. display: block;
  88. width: 100%;
  89. height: 200px;
  90. background: #fff;
  91. box-sizing: border-box;
  92. }
  93. }
  94. .vertical-tab {
  95. display: flex;
  96. height: 175px;
  97. .tab-title-scroll {
  98. width: 100px;
  99. height: 175px;
  100. display: flex;
  101. flex-wrap: nowrap;
  102. scroll-behavior: smooth;
  103. background: #f5f5f5;
  104. }
  105. .tab-title {
  106. width: 100px;
  107. height: 100%;
  108. display: flex;
  109. flex-direction: column;
  110. &::-webkit-scrollbar {
  111. display: none;
  112. }
  113. .tab-title-box {
  114. width: 100%;
  115. flex: 1;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. background-color: #f5f5f5;
  120. }
  121. .tab-title-box-scroll {
  122. min-height: 50px;
  123. }
  124. .nut-tab-active {
  125. color: #1a1a1a;
  126. font-weight: bold;
  127. font-size: 16px;
  128. position: relative;
  129. background-color: #fff;
  130. &::after {
  131. content: '';
  132. position: absolute;
  133. right: -4px;
  134. top: 50%;
  135. left: auto;
  136. transform: translateY(-50%) rotate(270deg);
  137. width: 12px;
  138. height: 4px;
  139. background-image: url('https://img12.360buyimg.com/imagetools/jfs/t1/127200/40/18747/536/5fb36b5aE61cac2d8/638032e8da9b93f4.png');
  140. background-size: 100% 100%;
  141. }
  142. }
  143. }
  144. .tab-title-scroll {
  145. overflow-y: scroll;
  146. }
  147. .half {
  148. .nut-tab-active {
  149. color: #1a1a1a;
  150. font-weight: bold;
  151. font-size: 16px;
  152. position: relative;
  153. &::after {
  154. content: '';
  155. display: none;
  156. }
  157. .world {
  158. position: relative;
  159. &::after {
  160. content: '';
  161. position: absolute;
  162. right: -15px;
  163. bottom: -5px;
  164. width: 11px;
  165. height: 10px;
  166. background-image: url('https://img12.360buyimg.com/imagetools/jfs/t1/197875/38/105/620/60ffcd30E34877e77/54c3dd9fe0a5ab76.png');
  167. background-size: 100% 100%;
  168. }
  169. }
  170. }
  171. }
  172. .tab-swiper {
  173. overflow: hidden;
  174. display: block;
  175. flex: 1;
  176. height: 100%;
  177. background: #fff;
  178. box-sizing: border-box;
  179. }
  180. }
  181. // .horize {
  182. // display: flex;
  183. // flex-direction: row;
  184. // flex-wrap: nowrap;
  185. // }
  186. .content-tab {
  187. padding: 10px;
  188. }