123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- /* components/tabs/tabs.wxss */
- .tabs {
- max-width: 100vw;
- display: flex;
- flex-direction: column;
- }
- .tabs-header {
- max-width: 100vw;
- height: 80rpx;
- /* display: flex; */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- overflow-x: scroll;
- }
- .tabs-header::-webkit-scrollbar {
- display: none;
- width: 0;
- height: 0;
- color: transparent;
- }
- .tabs-header-content {
- display: flex;
- overflow: visible;
- }
- .tabs-item {
- width: 33%;
- position: relative;
- /* display: flex; */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- }
- .lineBox {
- /* 选中底线样式 */
- background: #07c160;
- margin-top: 16rpx;
- border-radius: 4rpx;
- }
- .tabs-item:last-child {
- margin-right: 0rpx;
- }
- .tabs-item-name {
- font-size: 34rpx;
- height: 76rpx;
- line-height: 76rpx;
- white-space: nowrap;
- justify-content: center;
- align-items: center;
- text-align: center;
- }
- .tabs-item-badge {
- position: absolute;
- right: -24rpx;
- top: 0rpx;
- width: 36rpx;
- height: 36rpx;
- border-radius: 50%;
- background-color: #d31c1c;
- color: #ffffff;
- font-size: 24rpx;
- line-height: 40rpx;
- text-align: center;
- }
- .tabs-page {
- width: 100%;
- flex: 1;
- background-color: #eeeeee;
- }
|