tab.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. .nut-tab {
  2. position: relative;
  3. border: 1px solid #eee;
  4. padding: 10px;
  5. font-size: 12px;
  6. background: #eee;
  7. }
  8. .nut-tab-horizontal {
  9. display: flex;
  10. flex-direction: row;
  11. position: relative;
  12. }
  13. .close-btn {
  14. position: absolute;
  15. width: 17px;
  16. height: 17px;
  17. text-align: center;
  18. line-height: 14px;
  19. font-size: 16px;
  20. background: #999;
  21. font-weight: normal;
  22. color: #fff;
  23. right: 0px;
  24. top: 0px;
  25. border-radius: 50%;
  26. }
  27. .nut-tab-horizontal .close-btn {
  28. position: absolute;
  29. width: 17px;
  30. height: 17px;
  31. text-align: center;
  32. line-height: 14px;
  33. font-size: 16px;
  34. background: #999;
  35. font-weight: normal;
  36. color: #fff;
  37. right: 0px;
  38. top: 0px;
  39. border-radius: 50%;
  40. }
  41. .nut-tab-title {
  42. //border:1px solid #fff;
  43. border-bottom: 1px solid #ededed;
  44. scroll-behavior: smooth;
  45. width: 100%;
  46. display: flex;
  47. height: 50px;
  48. line-height: 48px;
  49. box-sizing: border-box;
  50. position: relative;
  51. overflow-x: auto;
  52. overflow-y: hidden;
  53. &::-webkit-scrollbar {
  54. display: none;
  55. }
  56. }
  57. .nav-bar {
  58. position: absolute;
  59. height: 2px;
  60. bottom: 0px;
  61. left: 0px;
  62. z-index: 2;
  63. background: $primary-color;
  64. transition: all 0.3s ease-in-out;
  65. }
  66. .nut-tab-title-leftnav {
  67. border-right: 1px solid #ededed;
  68. scroll-behavior: smooth;
  69. width: 100px;
  70. display: flex;
  71. background: #fff;
  72. flex-direction: column;
  73. position: relative;
  74. // height: 200px;
  75. overflow-y: auto;
  76. overflow-x: hidden;
  77. &::-webkit-scrollbar {
  78. display: none;
  79. }
  80. .nav-bar-left {
  81. position: absolute;
  82. width: 2px;
  83. right: 0px;
  84. top: 0px;
  85. z-index: 2;
  86. background: $primary-color;
  87. transition: all 0.3s ease-in-out;
  88. }
  89. .nut-title-nav {
  90. border: 0;
  91. border-left: 1px solid #f5f7fa;
  92. }
  93. .nut-tab-active {
  94. background: #fff;
  95. a{
  96. color: red;
  97. }
  98. }
  99. }
  100. .nut-tab-title-rightnav {
  101. background: #fff;
  102. // border: 1px solid #fff;
  103. scroll-behavior: smooth;
  104. border-left: 1px solid #ededed;
  105. width: 100px;
  106. display: flex;
  107. flex-direction: column;
  108. position: relative;
  109. overflow-y: auto;
  110. overflow-x: hidden;
  111. // height: 200px;
  112. box-sizing: border-box;
  113. &::-webkit-scrollbar {
  114. display: none;
  115. }
  116. .nav-bar-right {
  117. position: absolute;
  118. width: 2px;
  119. left: 0px;
  120. top: 0px;
  121. z-index:2;
  122. background: $primary-color;
  123. transition: all 0.3s ease-in-out;
  124. }
  125. }
  126. .nut-tab-link {
  127. color: #333;
  128. display: flex;
  129. align-items: center;
  130. justify-content: center;
  131. font-size: 12px;
  132. text-decoration: none;
  133. line-height: 1;
  134. width: 100%;
  135. height:100%;
  136. }
  137. .nut-tab-title-bottomnav {
  138. border: 1px solid #fff;
  139. scroll-behavior: smooth;
  140. border-top: 1px solid #ededed;
  141. width: 100%;
  142. display: flex;
  143. height: 50px;
  144. line-height: 49px;
  145. box-sizing: border-box;
  146. position: relative;
  147. overflow-x: auto;
  148. overflow-y: hidden;
  149. &::-webkit-scrollbar {
  150. display: none;
  151. }
  152. .nav-bar-bottom {
  153. position: absolute;
  154. height: 2px;
  155. left: 0px;
  156. top: 0px;
  157. z-index: 2;
  158. background: $primary-color;
  159. transition: all 0.3s ease-in-out;
  160. }
  161. }
  162. .nut-title-nav-list {
  163. flex: 1;
  164. position: relative;
  165. flex-direction: row;
  166. align-items: center;
  167. justify-content: center;
  168. display: flex;
  169. background: #fff;
  170. box-sizing: border-box;
  171. }
  172. .nut-title-nav-leftnav {
  173. flex: 1;
  174. display: flex;
  175. padding-left: 5px;
  176. //justify-content: center;
  177. align-items: center;
  178. position: relative;
  179. }
  180. .nut-title-nav-rightnav {
  181. flex: 1;
  182. display: flex;
  183. padding-right: 5px;
  184. justify-content: flex-end;
  185. align-items: center;
  186. position: relative;
  187. }
  188. .nut-title-nav-scroll{
  189. min-width: 100px;
  190. position: relative;
  191. flex-direction: row;
  192. align-items: center;
  193. justify-content: center;
  194. display: flex;
  195. background: #fff;
  196. box-sizing: border-box;
  197. }
  198. .nut-title-vertical-scroll{
  199. min-height: 55px;
  200. position: relative;
  201. flex-direction: row;
  202. align-items: center;
  203. justify-content: center;
  204. display: flex;
  205. background: #fff;
  206. box-sizing: border-box;
  207. }
  208. .nut-tab-icon {
  209. display: inline-block;
  210. margin-right: 5px;
  211. width: 20px;
  212. height: 20px;
  213. background-repeat: no-repeat;
  214. background-size: 100% 100%;
  215. }
  216. .nut-tab-active {
  217. background: #fff;
  218. border: 0;
  219. a{
  220. color: red;
  221. }
  222. }
  223. .nut-tab-item {
  224. height: 200px;
  225. border: 1px solid #fff;
  226. background: #fff;
  227. width: 100%;
  228. padding: 10px;
  229. box-sizing: border-box;
  230. .hide {
  231. display: none;
  232. }
  233. }
  234. .nut-tab-disable {
  235. background: #e1e1e1 !important;
  236. }
  237. .tabbar-nav-word {
  238. font-size: $font-size-small;
  239. }