index.acss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .tabs-index {
  2. display: block;
  3. height: initial;
  4. }
  5. @import "../common/index.acss";
  6. .tabs-index .van-tabs {
  7. position: relative;
  8. -webkit-tap-highlight-color: transparent;
  9. }
  10. .tabs-index .van-tabs__wrap {
  11. display: -webkit-flex;
  12. display: flex;
  13. overflow: hidden;
  14. }
  15. .tabs-index .van-tabs__wrap--scrollable .van-tab {
  16. -webkit-flex: 0 0 22%;
  17. flex: 0 0 22%;
  18. }
  19. .tabs-index .van-tabs__wrap--scrollable .van-tab--complete {
  20. -webkit-flex: 1 0 auto !important;
  21. flex: 1 0 auto !important;
  22. padding: 0 12px;
  23. }
  24. .tabs-index .van-tabs__wrap--scrollable .van-tabs__nav--complete {
  25. padding-right: 8px;
  26. padding-left: 8px;
  27. }
  28. .tabs-index .van-tabs__scroll {
  29. background-color: #fff;
  30. background-color: var(--tabs-nav-background-color, #fff);
  31. }
  32. .tabs-index .van-tabs__scroll--line {
  33. box-sizing: initial;
  34. height: calc(100% + 15px);
  35. }
  36. .tabs-index .van-tabs__scroll--card {
  37. margin: 0 16px;
  38. margin: 0 var(--padding-md, 16px);
  39. }
  40. .tabs-index .van-tabs__scroll::-webkit-scrollbar {
  41. display: none;
  42. }
  43. .tabs-index .van-tabs__nav {
  44. position: relative;
  45. display: -webkit-flex;
  46. display: flex;
  47. -webkit-user-select: none;
  48. user-select: none;
  49. }
  50. .tabs-index .van-tabs__nav--card {
  51. box-sizing: border-box;
  52. height: 30px;
  53. height: var(--tabs-card-height, 30px);
  54. border: 1px solid #ee0a24;
  55. border: var(--border-width-base, 1px) solid
  56. var(--tabs-default-color, #ee0a24);
  57. border-radius: 2px;
  58. border-radius: var(--border-radius-sm, 2px);
  59. }
  60. .tabs-index .van-tabs__nav--card .van-tab {
  61. color: #ee0a24;
  62. color: var(--tabs-default-color, #ee0a24);
  63. line-height: 28px;
  64. line-height: calc(
  65. var(--tabs-card-height, 30px) - var(--border-width-base, 1px) * 2
  66. );
  67. border-right: 1px solid #ee0a24;
  68. border-right: var(--border-width-base, 1px) solid
  69. var(--tabs-default-color, #ee0a24);
  70. }
  71. .tabs-index .van-tabs__nav--card .van-tab:last-child {
  72. border-right: none;
  73. }
  74. .tabs-index .van-tabs__nav--card .van-tab.van-tab--active {
  75. color: #fff;
  76. color: var(--white, #fff);
  77. background-color: #ee0a24;
  78. background-color: var(--tabs-default-color, #ee0a24);
  79. }
  80. .tabs-index .van-tabs__nav--card .van-tab--disabled {
  81. color: #c8c9cc;
  82. color: var(--tab-disabled-text-color, #c8c9cc);
  83. }
  84. .tabs-index .van-tabs__line {
  85. position: absolute;
  86. bottom: 0;
  87. left: 0;
  88. z-index: 1;
  89. height: 3px;
  90. height: var(--tabs-bottom-bar-height, 3px);
  91. border-radius: 3px;
  92. border-radius: var(--tabs-bottom-bar-height, 3px);
  93. background-color: #ee0a24;
  94. background-color: var(--tabs-bottom-bar-color, #ee0a24);
  95. }
  96. .tabs-index .van-tabs__track {
  97. position: relative;
  98. width: 100%;
  99. height: 100%;
  100. }
  101. .tabs-index .van-tabs__track--animated {
  102. display: -webkit-flex;
  103. display: flex;
  104. transition-property: left;
  105. }
  106. .tabs-index .van-tabs__content {
  107. overflow: hidden;
  108. }
  109. .tabs-index .van-tabs--line .van-tabs__wrap {
  110. height: 44px;
  111. height: var(--tabs-line-height, 44px);
  112. }
  113. .tabs-index .van-tabs--card .van-tabs__wrap {
  114. height: 30px;
  115. height: var(--tabs-card-height, 30px);
  116. }
  117. .tabs-index .van-tab {
  118. position: relative;
  119. -webkit-flex: 1;
  120. flex: 1;
  121. box-sizing: border-box;
  122. min-width: 0;
  123. padding: 0 5px;
  124. text-align: center;
  125. cursor: pointer;
  126. color: #646566;
  127. color: var(--tab-text-color, #646566);
  128. font-size: 14px;
  129. font-size: var(--tab-font-size, 14px);
  130. line-height: 44px;
  131. line-height: var(--tabs-line-height, 44px);
  132. }
  133. .tabs-index .van-tab--active {
  134. font-weight: 500;
  135. font-weight: var(--font-weight-bold, 500);
  136. color: #323233;
  137. color: var(--tab-active-text-color, #323233);
  138. }
  139. .tabs-index .van-tab--disabled {
  140. color: #c8c9cc;
  141. color: var(--tab-disabled-text-color, #c8c9cc);
  142. }
  143. .tabs-index .van-tab__title__info {
  144. position: relative !important;
  145. top: -1px !important;
  146. display: inline-block !important;
  147. -webkit-transform: translateX(0) !important;
  148. transform: translateX(0) !important;
  149. }
  150. .tabs-index .van-tab__title__info.van-info--dot {
  151. position: absolute !important;
  152. top: 40% !important;
  153. }