antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
47 lines (41 loc) • 763 B
CSS
.adm-tab-bar-wrap {
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
overflow: hidden;
min-height: 100px;
}
.adm-tab-bar-item {
flex: 1;
color: var(--adm-color-weak);
white-space: nowrap;
padding: 8px 16px;
width: min-content;
position: relative;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.adm-tab-bar-item-icon {
font-size: 40px;
height: 44px;
line-height: 1;
margin: 8px 0 2px;
}
.adm-tab-bar-item-title {
font-size: 22px;
line-height: 30px;
}
.adm-tab-bar-item-active {
color: var(--adm-color-primary);
}
.adm-tab-bar-icon-badge {
--top: 12px;
}
.adm-tab-bar-title-badge {
--right: -4px;
--top: -4px;
}