mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 01:43:43 +00:00
93 lines
1.5 KiB
SCSS
93 lines
1.5 KiB
SCSS
.drawerFooter {
|
|
display: flex;
|
|
justify-content: end;
|
|
gap: $section-spacing;
|
|
|
|
button {
|
|
padding: 0 2em;
|
|
}
|
|
}
|
|
|
|
.backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: $zindex-backdrop;
|
|
background-color: $backdrop-color;
|
|
transition: opacity 300ms cubic-bezier(0.45, 1.005, 0, 1.005);
|
|
|
|
&[data-starting-style],
|
|
&[data-ending-style] {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.drawer {
|
|
box-sizing: border-box;
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: $zindex-dialog;
|
|
|
|
width: 40rem;
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1rem 1.5rem;
|
|
|
|
background-color: $gray-1250;
|
|
color: $ui-white;
|
|
border-left: 1px solid $gray-1200;
|
|
|
|
&[data-open] {
|
|
transform: translateX(0%);
|
|
transition: transform 300ms cubic-bezier(0.45, 1.005, 0, 1.005);
|
|
}
|
|
|
|
&[data-starting-style],
|
|
&[data-ending-style] {
|
|
transform: translateX(100%);
|
|
transition: transform 500ms cubic-bezier(0.45, 1.005, 0, 1.005);
|
|
}
|
|
|
|
// take the whole screen in mobile devices
|
|
@media (max-width: $min-tablet) {
|
|
width: 100vw;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 3.5rem;
|
|
|
|
font-weight: 600;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.body {
|
|
flex: 1;
|
|
padding-bottom: 10vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.sectionList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
padding-right: 0.5rem;
|
|
}
|
|
|
|
.info {
|
|
margin-bottom: 1rem;
|
|
}
|