tab.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. .nut-tab-part{
  2. margin-bottom: 20px;
  3. }
  4. .nut-tab-horizontal {
  5. display: flex;
  6. flex-direction: row;
  7. position: relative;
  8. }
  9. .close-btn {
  10. position: absolute;
  11. width: 17px;
  12. height: 17px;
  13. text-align: center;
  14. line-height: 14px;
  15. font-size: 16px;
  16. background: #999;
  17. font-weight: normal;
  18. color: #fff;
  19. right: 0px;
  20. top: 0px;
  21. border-radius: 50%;
  22. }
  23. .nut-tab-horizontal .close-btn {
  24. position: absolute;
  25. width: 17px;
  26. height: 17px;
  27. text-align: center;
  28. line-height: 14px;
  29. font-size: 16px;
  30. background: #999;
  31. font-weight: normal;
  32. color: #fff;
  33. right: 0px;
  34. top: 0px;
  35. border-radius: 50%;
  36. }
  37. .nut-tab-title-topnav {
  38. //border:1px solid #fff;
  39. border-bottom: 1px solid #ededed;
  40. scroll-behavior: smooth;
  41. width: 100%;
  42. display: flex;
  43. height: 48px;
  44. line-height: 48px;
  45. box-sizing: border-box;
  46. position: relative;
  47. overflow-x: auto;
  48. overflow-y: hidden;
  49. &::-webkit-scrollbar {
  50. display: none;
  51. }
  52. .nut-tab-active {
  53. background: #fff;
  54. position: relative;
  55. border: 0;
  56. .nut-tab-link{
  57. color: #E1251B;
  58. font-weight: bold;
  59. }
  60. .tab-line{
  61. &:after{
  62. content: "";
  63. position: absolute;
  64. width: 30%;
  65. transform: translateX(-50%);
  66. height: 2px;
  67. background: #E1251B;
  68. bottom: 0px;
  69. left: 50%;
  70. z-index: 20;
  71. }
  72. }
  73. }
  74. }
  75. .nav-bar-top {
  76. position: absolute;
  77. height: 2px;
  78. bottom: 0px;
  79. left: 0px;
  80. z-index: 2;
  81. background: $primary-color;
  82. transition: all 0.3s ease-in-out;
  83. }
  84. .nut-tab-title-leftnav {
  85. border-right: 1px solid #fff;
  86. scroll-behavior: smooth;
  87. width: 90px;
  88. display: flex;
  89. flex-direction: column;
  90. position: relative;
  91. // height: 200px;
  92. overflow-y: auto;
  93. overflow-x: hidden;
  94. &::-webkit-scrollbar {
  95. display: none;
  96. }
  97. .nav-bar-left {
  98. position: absolute;
  99. width: 2px;
  100. right: 0px;
  101. top: 0px;
  102. z-index: 2;
  103. background: $primary-color;
  104. transition: all 0.3s ease-in-out;
  105. }
  106. .nut-title-nav {
  107. border: 0;
  108. background: #F7F7F7;
  109. border-left: 1px solid #f5f7fa;
  110. }
  111. .nut-tab-active {
  112. .nut-tab-link{
  113. position: relative;
  114. background: #fff;
  115. color: #E1251B;
  116. font-weight: bold;
  117. }
  118. .tab-line{
  119. &:after{
  120. content: "";
  121. position: absolute;
  122. height: 100%;
  123. width: 3px;
  124. background: #E1251B;
  125. left: 0px;
  126. top: 0;
  127. z-index: 2;
  128. }
  129. }
  130. }
  131. }
  132. .nut-tab-title-rightnav {
  133. background: #F7F7F7;
  134. // border: 1px solid #fff;
  135. scroll-behavior: smooth;
  136. border-left: 1px solid #fff;
  137. width: 100px;
  138. display: flex;
  139. flex-direction: column;
  140. position: relative;
  141. overflow-y: auto;
  142. overflow-x: hidden;
  143. box-sizing: border-box;
  144. &::-webkit-scrollbar {
  145. display: none;
  146. }
  147. .nav-bar-right {
  148. position: absolute;
  149. width: 2px;
  150. left: 0px;
  151. top: 0px;
  152. background: #E1251B;
  153. z-index:2;
  154. transition: all 0.3s ease-in-out;
  155. }
  156. .nut-tab-active {
  157. .nut-tab-link{
  158. background: #fff;
  159. color: #E1251B;
  160. font-weight: bold;
  161. }
  162. .tab-line{
  163. &:after{
  164. content: "";
  165. position: absolute;
  166. height: 100%;
  167. width: 3px;
  168. background: #E1251B;
  169. right: 0px;
  170. top: 0;
  171. z-index: 2;
  172. }
  173. }
  174. }
  175. }
  176. .nut-tab-link {
  177. color: #969696;
  178. display: flex;
  179. align-items: center;
  180. justify-content: center;
  181. font-size: 12px;
  182. text-decoration: none;
  183. line-height: 1;
  184. width: 100%;
  185. height:100%;
  186. font-size: 13px;
  187. }
  188. .nut-tab-title-bottomnav {
  189. border: 1px solid #fff;
  190. scroll-behavior: smooth;
  191. border-top: 1px solid #ededed;
  192. width: 100%;
  193. display: flex;
  194. height: 48px;
  195. line-height: 48px;
  196. box-sizing: border-box;
  197. position: relative;
  198. overflow-x: auto;
  199. overflow-y: hidden;
  200. &::-webkit-scrollbar {
  201. display: none;
  202. }
  203. .nav-bar-bottom {
  204. position: absolute;
  205. height: 2px;
  206. left: 0px;
  207. top: 0px;
  208. z-index: 2;
  209. background: $primary-color;
  210. transition: all 0.3s ease-in-out;
  211. }
  212. .nut-tab-active {
  213. background: #fff;
  214. position: relative;
  215. border: 0;
  216. .nut-tab-link{
  217. color: #E1251B;
  218. font-weight: bold;
  219. }
  220. .tab-line{
  221. &:after{
  222. content: "";
  223. position: absolute;
  224. width: 30%;
  225. transform: translateX(-50%);
  226. height: 2px;
  227. background: #E1251B;
  228. top: 0px;
  229. left: 50%;
  230. z-index: 20;
  231. }
  232. }
  233. }
  234. }
  235. .nut-title-nav-topnav,.nut-title-nav-bottomnav{
  236. flex: 1;
  237. position: relative;
  238. flex-direction: row;
  239. align-items: center;
  240. justify-content: center;
  241. display: flex;
  242. background: #fff;
  243. box-sizing: border-box;
  244. }
  245. .nut-title-nav-leftnav {
  246. flex: 1;
  247. display: flex;
  248. padding-left: 5px;
  249. //justify-content: center;
  250. align-items: center;
  251. position: relative;
  252. }
  253. .nut-title-nav-rightnav {
  254. flex: 1;
  255. display: flex;
  256. padding-right: 5px;
  257. justify-content: flex-end;
  258. align-items: center;
  259. position: relative;
  260. }
  261. .nut-title-nav-scroll{
  262. min-width: 100px;
  263. position: relative;
  264. flex-direction: row;
  265. align-items: center;
  266. justify-content: center;
  267. display: flex;
  268. background: #fff;
  269. box-sizing: border-box;
  270. }
  271. .nut-title-vertical-scroll{
  272. min-height: 50px;
  273. position: relative;
  274. flex-direction: row;
  275. align-items: center;
  276. justify-content: center;
  277. display: flex;
  278. box-sizing: border-box;
  279. }
  280. .nut-tab-icon {
  281. display: inline-block;
  282. margin-right: 5px;
  283. width: 20px;
  284. height: 20px;
  285. background-repeat: no-repeat;
  286. background-size: 100% 100%;
  287. }
  288. .nut-tab-item {
  289. height: 88px;
  290. border: 1px solid #fff;
  291. background: #fff;
  292. width: 100%;
  293. padding: 20px;
  294. box-sizing: border-box;
  295. font-size: 14px;
  296. color: #646464;
  297. .hide {
  298. display: none;
  299. }
  300. }
  301. .nut-tab-disable {
  302. .nut-tab-link{
  303. color: #C8C8C8 !important;
  304. font-size: 15px;
  305. }
  306. }
  307. .tabbar-nav-word {
  308. font-size: $font-size-small;
  309. }