@jdcfe/yep-react
Version:
一套移动端的React组件库
62 lines • 1.14 kB
CSS
.Yep-tab-bar {
position: fixed ;
left: 0;
bottom: 0;
z-index: 200;
box-sizing: border-box;
height: 102px;
width: 100%;
display: flex;
transition: bottom 0.2s;
justify-content: space-around;
align-items: center;
position: relative;
}
.Yep-tab-bar:after {
content: "";
display: block;
position: absolute;
width: 100%;
left: 0;
top: 0;
height: 1PX;
background-color: #DADADA;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
pointer-events: none;
}
.Yep-tab-bar-hidden {
bottom: -102px;
}
.Yep-tab-bar-tab {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
width: 100%;
}
.Yep-tab-bar-tab-image {
width: 50px;
height: 50px;
vertical-align: middle;
}
.Yep-tab-bar-tab-title {
font-size: 24px;
margin: 6px 0 0 0;
line-height: 1;
text-align: center;
}
.Yep-tab-bar-tab-icon {
display: flex;
justify-content: center;
}
.Yep-tab-bar-tab-icon .tab-badge :last-child {
margin-top: 4px;
left: 50px;
}
.Yep-tab-bar-tab-icon .tab-dot :last-child {
margin-top: 4px;
left: 50px;
}