kspace-bludit-theme/scss/custom/_mobile.scss

81 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2024-04-10 20:58:16 +02:00
html {
margin-left:0;
2024-06-10 21:44:34 +02:00
@include xl() {
margin-left:280px;
}
@include xxl() {
margin-left: 320px;
2024-04-10 20:58:16 +02:00
}
}
#searchfield {
outline-color: $color-background-alt;
border-radius: $card-radius;
box-shadow: inset 0px 1px 1px 0px rgba(0, 0, 0, 0.4);
}
#mobile-sidebar {
position: fixed;
top:0;
left:-100vw;
2024-06-10 21:44:34 +02:00
width: 280px;
2024-04-10 20:58:16 +02:00
height:100vh;
transition: left 0.2s;
padding: 1rem;
overflow: hidden;
&.shown {
left:0;
}
2024-06-10 21:44:34 +02:00
@include xl() {
2024-04-10 20:58:16 +02:00
left:0;
}
2024-06-10 21:44:34 +02:00
@include xxl() {
width: 320px;
}
2024-08-29 22:21:21 +02:00
z-index:11;
2024-04-10 20:58:16 +02:00
box-shadow: 0px 0px 3px 1px rgba(0,0,0,0.6);
}
img.myavatar {
height: 140px;
width: auto;
display: block;
margin: 1rem auto 1.5rem auto;
border: 3px solid $color-background;
box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.5);
border-radius: 8px;
@include old() {
height: 128px;
margin: 0.25rem auto 1rem auto;
}
}
.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;
z-index: 12;
&:hover {
background-color: $color-primary;
}
2024-06-10 21:44:34 +02:00
@include xl() {
2024-04-10 20:58:16 +02:00
display: none;
}
}