82 lines
1.2 KiB
CSS
82 lines
1.2 KiB
CSS
.modal {
|
|
--sidepeek-desktop-width: 560px;
|
|
}
|
|
|
|
@keyframes slide-in {
|
|
from {
|
|
right: calc(-1 * var(--sidepeek-desktop-width));
|
|
}
|
|
|
|
to {
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
.modal[data-entering] {
|
|
animation: slide-in 250ms;
|
|
}
|
|
|
|
.modal[data-exiting] {
|
|
animation: slide-in 250ms reverse;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: var(--sidepeek-z-index);
|
|
background-color: var(--UI-Opacity-Almost-Black-30);
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
right: auto;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
background-color: var(--Background-Primary);
|
|
z-index: var(--sidepeek-z-index);
|
|
outline: none;
|
|
}
|
|
|
|
.dialog {
|
|
height: 100%;
|
|
outline: none;
|
|
}
|
|
|
|
.sidePeek {
|
|
display: grid;
|
|
grid-template-rows: min-content auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
border-bottom: 1px solid var(--Base-Border-Subtle);
|
|
align-items: center;
|
|
padding: var(--Space-x4);
|
|
}
|
|
|
|
.header:has(> h2) {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.heading {
|
|
color: var(--Text-Heading);
|
|
}
|
|
|
|
.sidePeekContent {
|
|
padding: var(--Space-x4);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media screen and (min-width: 1367px) {
|
|
.modal {
|
|
top: 0;
|
|
right: 0px;
|
|
width: var(--sidepeek-desktop-width);
|
|
height: 100vh;
|
|
}
|
|
}
|