@jdcfe/yep-react
Version:
一套移动端的React组件库
108 lines (107 loc) • 2.35 kB
CSS
.Yep-area-picker {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
transition: all 0.2s;
background-color: #fff;
text-align: center;
font-size: 14px;
border-radius: 24px 24px 0 0;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}
.Yep-area-picker-title {
font-size: 36px;
color: #2e2d2d;
font-weight: bold;
}
.Yep-area-picker-title-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
height: 80px;
padding: 48px 36px 48px 36px;
}
.Yep-area-picker-icon-close {
width: 40px;
height: 40px;
}
.Yep-area-picker-content {
height: 800px;
overflow-y: scroll;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.Yep-area-picker-content li {
line-height: 1;
padding: 48px 36px 0 36px;
color: #333;
font-size: 24px;
text-align: left;
display: flex;
align-items: center;
}
.Yep-area-picker-content li .Yep-area-picker-area--selected {
font-size: 30px;
width: 30px;
height: 30px;
margin-right: 16px;
color: #F0250F;
}
.Yep-area-picker-tabs-bar {
position: relative;
display: flex;
flex-shrink: 0;
flex-direction: row;
width: 100%;
height: 100%;
overflow: visible;
z-index: 1;
}
.Yep-area-picker-tabs-bar-tab {
position: relative;
display: flex;
flex-shrink: 0;
justify-content: center;
align-items: center;
font-size: 28px;
height: 56px;
line-height: 56px;
margin-left: 48px;
}
.Yep-area-picker-tabs-bar-tab:first-of-type {
margin-left: 36px;
}
.Yep-area-picker-tabs-bar-underline {
position: absolute;
display: flex;
justify-content: center;
border: none;
bottom: -8px;
width: 100%;
left: 0;
}
.Yep-area-picker-tabs-bar-underline-bar {
width: 52px;
height: 6px;
background-image: linear-gradient(90deg, #f5503a 0%, #fad1cb 100%);
}
.Yep-area-picker-tabs-bar-tab-active {
color: #F0250F;
}
.Yep-area-picker-tabs-bar-animated .Yep-area-picker-tabs-bar-content {
transition: transform 0.3s cubic-bezier(0.35, 0, 0.25, 1);
will-change: transform;
}
.Yep-area-picker-tabs-bar-top {
flex-direction: row;
}
.Yep-area-picker-tabs-bar-top .Yep-area-picker-tabs-bar-content {
display: flex;
width: 100%;
flex-direction: row;
}
.Yep-area-picker-tabs-bar-top .Yep-area-picker-tabs-bar-content .Yep-area-picker-tabs-bar-tab-active {
color: #F0250F;
}