@nipe-solutions/react-spring-bottom-sheet
Version:
Accessible and composable bottom sheets for React
51 lines (43 loc) • 1.25 kB
CSS
@import './tokens.css';
@layer rsbs.theme {
:where(.rsbs-backdrop) {
background: var(--rsbs-backdrop-color);
}
:where(.rsbs-content) {
color: var(--rsbs-content-color);
background: var(--rsbs-content-background);
border: var(--rsbs-content-border);
border-bottom: 0;
border-radius: var(--rsbs-content-radius) var(--rsbs-content-radius) 0 0;
}
:where(.rsbs-content)::before {
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
content: '';
box-shadow: var(--rsbs-content-shadow);
opacity: var(--rsbs-surface-progress, 0);
will-change: opacity;
}
:where(.rsbs-handle) {
display: grid;
min-height: var(--rsbs-handle-hit-area);
place-items: center;
cursor: grab;
}
:where(.rsbs-handle)::before {
width: var(--rsbs-handle-width);
height: var(--rsbs-handle-height);
content: '';
background: var(--rsbs-handle-color);
border-radius: 999px;
}
:where(.rsbs-content)[data-rsbs-dragging='true'] :where(.rsbs-handle) {
cursor: grabbing;
}
:where(.rsbs-trigger, .rsbs-close):focus-visible {
outline: var(--rsbs-focus-width) solid var(--rsbs-focus-color);
outline-offset: var(--rsbs-focus-offset);
}
}