tab.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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. width: 100%;
  45. display: flex;
  46. height: 50px;
  47. line-height: 48px;
  48. box-sizing: border-box;
  49. position: relative;
  50. }
  51. .nav-bar{
  52. position: absolute;
  53. height: 2px;
  54. bottom: -2px;
  55. left: 0px;
  56. background:$primary-color;
  57. transition: all 0.4s ease-in-out;
  58. }
  59. .nut-tab-title-leftnav{
  60. border-right:1px solid #EDEDED;
  61. width: 100px;
  62. display: flex;
  63. background: #fff;
  64. flex-direction: column;
  65. position: relative;
  66. .nav-bar-left{
  67. position: absolute;
  68. width: 2px;
  69. right: -2px;
  70. top: 0px;
  71. background:$primary-color;
  72. transition: all 0.4s ease-in-out;
  73. }
  74. .nut-title-nav{
  75. border:0;
  76. border-left:1px solid #F5F7FA;
  77. }
  78. .nut-tab-active{
  79. background: #fff;
  80. }
  81. }
  82. .nut-tab-title-rightnav{
  83. background: #fff;
  84. border:1px solid #fff;
  85. border-left:1px solid #EDEDED;
  86. width: 100px;
  87. display: flex;
  88. flex-direction: column;
  89. position: relative;
  90. .nav-bar-right{
  91. position: absolute;
  92. width: 2px;
  93. left: -2px;
  94. top: 0px;
  95. background:$primary-color;
  96. transition: all 0.4s ease-in-out;
  97. }
  98. }
  99. .nut-tab-link{
  100. color: #333;
  101. display: flex;
  102. align-items:center;
  103. justify-content:center;
  104. font-size:12px;
  105. text-decoration:none;
  106. line-height: 1;
  107. }
  108. .nut-tab-title-bottomnav{
  109. border:1px solid #fff;
  110. border-top:1px solid #EDEDED;
  111. width: 100%;
  112. display: flex;
  113. height: 50px;
  114. line-height: 49px;
  115. box-sizing: border-box;
  116. position: relative;
  117. .nav-bar-bottom{
  118. position: absolute;
  119. height: 2px;
  120. left: 0px;
  121. top: -2px;
  122. background:$primary-color;
  123. transition: all 0.4s ease-in-out;
  124. }
  125. }
  126. .nut-title-nav-list{
  127. flex: 1;
  128. position: relative;
  129. flex-direction: row;
  130. align-items:center;
  131. justify-content:center;
  132. display: flex;
  133. background: #fff;
  134. box-sizing: border-box;
  135. }
  136. .nut-title-nav-leftnav{
  137. flex:1;
  138. display: flex;
  139. padding-left: 5px;
  140. //justify-content: center;
  141. align-items: center;
  142. position: relative;
  143. }
  144. .nut-title-nav-rightnav{
  145. flex:1;
  146. display: flex;
  147. padding-right: 5px;
  148. justify-content: flex-end;
  149. align-items: center;
  150. position: relative;
  151. }
  152. .nut-tab-icon{
  153. display: inline-block;
  154. margin-right: 5px;
  155. width: 20px;
  156. height: 20px;
  157. background-repeat: no-repeat;
  158. background-size:100% 100%;
  159. }
  160. .nut-tab-active{
  161. background: #fff;
  162. border: 0;
  163. }
  164. .nut-tab-item {
  165. height: 200px;
  166. border:1px solid #fff;
  167. background:#fff;
  168. width: 100%;
  169. padding: 10px;
  170. box-sizing: border-box;
  171. .hide{
  172. display: none;
  173. }
  174. }
  175. .nut-tab-disable{
  176. background: #e1e1e1 !important;
  177. }
  178. .tabbar-nav-word{
  179. font-size:$font-size-small;
  180. }