@jdcfe/yep-react
Version:
一套移动端的React组件库
83 lines • 1.7 kB
CSS
.Yep-action-sheet {
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-action-sheet-content {
overflow: hidden;
background: #fff;
border-radius: inherit;
}
.Yep-action-sheet-list {
list-style: none;
}
.Yep-action-sheet-cancel span, .Yep-action-sheet-item, .Yep-action-sheet-title {
display: block;
padding: 34px 32px;
margin: 0;
text-align: center;
overflow: hidden;
white-space: nowrap;
font-size: 32px;
font-weight: 400;
line-height: 1;
color: #666;
background-color: #fff;
border-radius: inherit;
}
.Yep-action-sheet-title {
padding-top: 32px;
padding-bottom: 32px;
color: #333;
font-size: 36px;
position: relative;
}
.Yep-action-sheet-title:before {
content: "";
display: block;
position: absolute;
width: 100%;
left: 0;
bottom: 0;
height: 1PX;
background-color: #DADADA;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
pointer-events: none;
}
.Yep-action-sheet-item {
list-style: none;
user-select: none;
position: relative;
}
.Yep-action-sheet-item_active {
color: #F0250F;
}
.Yep-action-sheet-item:before {
content: "";
display: block;
position: absolute;
width: 100%;
left: 0;
bottom: 0;
height: 1PX;
background-color: #DADADA;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
pointer-events: none;
}
.Yep-action-sheet-space {
height: 12px;
background-color: rgba(37, 38, 45, 0.4);
}
.Yep-action-sheet-cancel {
background-color: #fff;
}