rowt/frontend/scss/components/_sidebar.scss

88 lines
1.4 KiB
SCSS
Raw Normal View History

/* purgecss start ignore */
.sidebar {
position: fixed;
overflow-y: scroll;
top: 0;
background: white;
z-index: 2000;
width: 0;
max-width: 0;
box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
&.open {
background-color: rgba(255, 255, 255, 100%);
display: block;
height: 100vh;
right: 0;
top: 0;
2023-04-24 14:28:34 +02:00
width: 100%;
max-width: 375px;
z-index: 40000;
}
&.slide-in {
transition-duration: 75ms;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
&.from-right {
right: -24rem;
&.open {
right: 0;
}
}
&.from-left {
left: -24rem;
&.open {
left: 0;
}
}
&-overlay {
display: none;
&.show {
background-color: rgba(0, 0, 0, 0.2);
content: '';
display: block;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 1025;
}
}
&-close {
border-radius: 100%;
2023-04-08 09:24:36 +02:00
@apply w-6 h-6;
}
&-footer {
position: fixed;
margin: 0 -8px -4px;
width: 374px;
bottom: 0;
}
&-header {
position: fixed;
2023-04-24 14:28:34 +02:00
width: 100%;
max-width: 375px;
2023-05-03 23:00:55 +02:00
top: 0px;
z-index: 1;
2023-05-03 23:00:55 +02:00
right: 0px;
}
}
.overlay {
overflow: hidden;
}
/* purgecss end ignore */