This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
qdouze2-wordpress-theme/scss/custom/_mobile.scss

41 lines
613 B
SCSS
Raw Permalink Normal View History

2023-05-02 11:20:14 +02:00
#mobile-sidebar {
position: fixed;
top:0;
left:-100vw;
width:100vw;
height:100vh;
transition: left 0.2s;
padding: 1rem;
2023-05-03 11:27:05 +02:00
overflow: scroll;
2023-05-02 11:20:14 +02:00
&.shown {
left:0;
}
@include sm() {
display:none;
}
}
.menu-button {
position:fixed;
bottom: 24px;
right: 24px;
background-color:rgba(0,0,0,0.2);
color:$color-font-light;
padding:0.75em;
border:none;
font-size:1.2rem;
display:flex;
align-content: center;
justify-content: center;
aspect-ratio: 1;
border-radius:999px;
&:hover {
2023-05-21 16:16:09 +02:00
background-color:$color-primary;
2023-05-02 11:20:14 +02:00
}
@include sm() {
display: none;
}
}