tui-tabbar.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. .tui-tabbar {
  2. width: 100%;
  3. height: 100rpx;
  4. display: flex;
  5. align-items: center;
  6. justify-content: space-between;
  7. position: relative;
  8. }
  9. .tui-tabbar-fixed {
  10. position: fixed;
  11. z-index: 99999;
  12. left: 0;
  13. bottom: 0;
  14. padding-bottom: env(safe-area-inset-bottom);
  15. }
  16. .tui-tabbar::before {
  17. content: '';
  18. width: 100%;
  19. border-top: 1rpx solid #B2B2B2;
  20. position: absolute;
  21. top: 0;
  22. left: 0;
  23. transform: scaleY(0.5);
  24. transform-origin: 0 100%;
  25. }
  26. .tui-tabbar-item {
  27. height: 100%;
  28. flex: 1;
  29. display: flex;
  30. text-align: center;
  31. align-items: center;
  32. flex-direction: column;
  33. justify-content: space-between;
  34. position: relative;
  35. padding: 10rpx 0;
  36. box-sizing: border-box;
  37. }
  38. .tui-icon-box {
  39. position: relative;
  40. }
  41. .tui-item-hump {
  42. height: 98rpx;
  43. z-index: 2;
  44. }
  45. .tui-tabbar-icon {
  46. width: 52rpx;
  47. height: 52rpx;
  48. display: block;
  49. }
  50. .tui-hump-box {
  51. width: 120rpx;
  52. height: 120rpx;
  53. background: #FFFFFF;
  54. position: absolute;
  55. left: 50%;
  56. transform: translateX(-50%);
  57. top: -50rpx;
  58. border-radius: 50%;
  59. z-index: 1;
  60. }
  61. .tui-hump-box::before {
  62. content: '';
  63. height: 200%;
  64. width: 200%;
  65. border: 1rpx solid #B2B2B2;
  66. position: absolute;
  67. top: 0;
  68. left: 0;
  69. transform: scale(0.5) translateZ(0);
  70. transform-origin: 0 0;
  71. border-radius: 100%;
  72. }
  73. .tui-unlined::before {
  74. border: 0 !important
  75. }
  76. .tui-tabbar-hump {
  77. width: 100rpx;
  78. height: 100rpx;
  79. position: absolute;
  80. left: 50%;
  81. transform: translateX(-50%) rotate(0deg);
  82. top: -40rpx;
  83. transition: all 0.2s linear;
  84. }
  85. .tui-tabbar-hump image {
  86. width: 100rpx;
  87. height: 100rpx;
  88. display: block;
  89. }
  90. .tui-hump-active {
  91. transform: translateX(-50%) rotate(135deg);
  92. }
  93. .tui-text-hump {
  94. position: absolute;
  95. bottom: 10rpx;
  96. }
  97. .tui-text-scale {
  98. font-weight: bold;
  99. transform: scale(0.8);
  100. font-size: 25rpx;
  101. line-height: 28rpx;
  102. transform-origin: center 100%;
  103. }
  104. .tui-badge {
  105. position: absolute;
  106. font-size: 24rpx;
  107. height: 32rpx;
  108. min-width: 20rpx;
  109. padding: 0 6rpx;
  110. border-radius: 40rpx;
  111. right: 0;
  112. top: -5rpx;
  113. transform: translateX(70%);
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. }
  118. .tui-badge-dot {
  119. position: absolute;
  120. height: 16rpx;
  121. width: 16rpx;
  122. border-radius: 50%;
  123. right: -4rpx;
  124. top: -4rpx;
  125. }