antd-mobile
Version:
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*hjjDS5Yy-ooAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
58 lines (53 loc) • 1.2 kB
CSS
.adm-floating-panel {
--border-radius: 16px;
--header-height: 56px;
--z-index: var(--adm-floating-panel-z-index, 900);
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
background: var(--adm-color-white);
position: fixed;
z-index: var(--z-index);
bottom: 0;
left: 0;
width: 100vw;
display: flex;
flex-direction: column;
touch-action: none;
}
.adm-floating-panel-mask {
display: block;
width: 100%;
height: 100vh;
position: absolute;
left: 0;
top: -100vh;
background: transparent;
}
.adm-floating-panel::after {
content: '';
display: block;
position: absolute;
bottom: -100vh;
height: 100vh;
width: 100vw;
background: var(--adm-color-white);
}
.adm-floating-panel .adm-floating-panel-header {
flex: none;
height: var(--header-height);
display: flex;
justify-content: center;
align-items: center;
cursor: grab;
user-select: none;
}
.adm-floating-panel .adm-floating-panel-header .adm-floating-panel-bar {
height: 6px;
width: 40px;
border-radius: 20px;
background: var(--adm-color-light);
}
.adm-floating-panel .adm-floating-panel-content {
flex: 1;
overflow-y: scroll;
}