123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- .tui-tabbar {
- width: 100%;
- height: 100rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- position: relative;
- }
- .tui-tabbar-fixed {
- position: fixed;
- z-index: 99999;
- left: 0;
- bottom: 0;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .tui-tabbar::before {
- content: '';
- width: 100%;
- border-top: 1rpx solid #B2B2B2;
- position: absolute;
- top: 0;
- left: 0;
- transform: scaleY(0.5);
- transform-origin: 0 100%;
- }
- .tui-tabbar-item {
- height: 100%;
- flex: 1;
- display: flex;
- text-align: center;
- align-items: center;
- flex-direction: column;
- justify-content: space-between;
- position: relative;
- padding: 10rpx 0;
- box-sizing: border-box;
- }
- .tui-icon-box {
- position: relative;
- }
- .tui-item-hump {
- height: 98rpx;
- z-index: 2;
- }
- .tui-tabbar-icon {
- width: 52rpx;
- height: 52rpx;
- display: block;
- }
- .tui-hump-box {
- width: 120rpx;
- height: 120rpx;
- background: #FFFFFF;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- top: -50rpx;
- border-radius: 50%;
- z-index: 1;
- }
- .tui-hump-box::before {
- content: '';
- height: 200%;
- width: 200%;
- border: 1rpx solid #B2B2B2;
- position: absolute;
- top: 0;
- left: 0;
- transform: scale(0.5) translateZ(0);
- transform-origin: 0 0;
- border-radius: 100%;
- }
- .tui-unlined::before {
- border: 0 !important
- }
- .tui-tabbar-hump {
- width: 100rpx;
- height: 100rpx;
- position: absolute;
- left: 50%;
- transform: translateX(-50%) rotate(0deg);
- top: -40rpx;
- transition: all 0.2s linear;
- }
- .tui-tabbar-hump image {
- width: 100rpx;
- height: 100rpx;
- display: block;
- }
- .tui-hump-active {
- transform: translateX(-50%) rotate(135deg);
- }
- .tui-text-hump {
- position: absolute;
- bottom: 10rpx;
- }
- .tui-text-scale {
- font-weight: bold;
- transform: scale(0.8);
- font-size: 25rpx;
- line-height: 28rpx;
- transform-origin: center 100%;
- }
- .tui-badge {
- position: absolute;
- font-size: 24rpx;
- height: 32rpx;
- min-width: 20rpx;
- padding: 0 6rpx;
- border-radius: 40rpx;
- right: 0;
- top: -5rpx;
- transform: translateX(70%);
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-badge-dot {
- position: absolute;
- height: 16rpx;
- width: 16rpx;
- border-radius: 50%;
- right: -4rpx;
- top: -4rpx;
- }
|