tab-bar-item.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. t-tab-bar-item {
  29. height: 100%;
  30. flex-basis: 0;
  31. flex-grow: 1;
  32. }
  33. .t-tab-bar-item {
  34. height: 100%;
  35. box-sizing: border-box;
  36. user-select: none;
  37. position: relative;
  38. }
  39. .t-tab-bar-item--active {
  40. background-color: rgba(0, 0, 0, 0.05);
  41. }
  42. .t-tab-bar-item.t-is-split:before {
  43. position: absolute;
  44. box-sizing: border-box;
  45. content: ' ';
  46. pointer-events: none;
  47. top: 0;
  48. bottom: 0;
  49. left: 0;
  50. border-left: 1px solid #e6e6e6;
  51. transform: scaleX(0.5);
  52. top: 8px;
  53. bottom: 8px;
  54. }
  55. .t-tab-bar-item__content {
  56. width: 100%;
  57. height: 100%;
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. justify-content: center;
  62. }
  63. .t-tab-bar-item__content.t-is-checked {
  64. color: #0052d9;
  65. }
  66. .t-tab-bar-item__content.t-is-checked .t-tab-bar-item__icon-menu {
  67. background-color: #0052d9;
  68. }
  69. .t-tab-bar-item .t-badge-class {
  70. transform: translate(50%, -10%) !important;
  71. }
  72. .t-tab-bar-item__text {
  73. display: flex;
  74. align-items: center;
  75. }
  76. .t-tab-bar-item__text.t-size-s {
  77. font-size: 10px;
  78. line-height: 18px;
  79. }
  80. .t-tab-bar-item__icon {
  81. height: 24px;
  82. }
  83. .t-tab-bar-item__icon-menu {
  84. width: 8px;
  85. height: 1px;
  86. background-color: #666;
  87. position: relative;
  88. margin-right: 4px;
  89. }
  90. .t-tab-bar-item__icon-menu::before,
  91. .t-tab-bar-item__icon-menu::after {
  92. display: block;
  93. content: '';
  94. position: absolute;
  95. left: 0;
  96. background-color: inherit;
  97. width: inherit;
  98. height: inherit;
  99. }
  100. .t-tab-bar-item__icon-menu::before {
  101. top: -4px;
  102. }
  103. .t-tab-bar-item__icon-menu::after {
  104. bottom: -4px;
  105. }
  106. .t-tab-bar-item__spread {
  107. position: absolute;
  108. top: 0;
  109. left: 7%;
  110. width: 86%;
  111. background-color: #fff;
  112. transform: translate3d(0, calc(-100% - 16px), 0);
  113. z-index: 1;
  114. }
  115. .t-tab-bar-item__spread::before {
  116. display: block;
  117. content: '';
  118. position: absolute;
  119. bottom: 0;
  120. left: 50%;
  121. width: 0;
  122. height: 0;
  123. border: 8px solid transparent;
  124. border-top: 8px solid #fff;
  125. transform: translate3d(-50%, 16px, 0);
  126. }
  127. .t-tab-bar-item__spread-item {
  128. width: 100%;
  129. height: 50px;
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. }
  134. .t-tab-bar-item__spread-item--active {
  135. background-color: rgba(0, 0, 0, 0.05);
  136. }
  137. .t-tab-bar-item__spread-item + .t-tab-bar-item__spread-item {
  138. position: relative;
  139. }
  140. .t-tab-bar-item__spread-item + .t-tab-bar-item__spread-item:before {
  141. position: absolute;
  142. box-sizing: border-box;
  143. content: ' ';
  144. pointer-events: none;
  145. top: 0;
  146. border-top: 1px solid #e6e6e6;
  147. transform: scaleY(0.5);
  148. border-top-width: 1px;
  149. border-top-style: solid;
  150. border-top-color: #e6e6e6;
  151. width: 80%;
  152. }