mempool/frontend/src/app/components/menu/menu.component.scss

51 lines
1023 B
SCSS
Raw Normal View History

.sidenav {
z-index: 10;
background-color: #1d1f31;
box-shadow: 0px 0px 15px 0px #000;
2023-08-21 17:06:12 +02:00
width: 225px;
height: calc(100vh - 65px);
overflow-x: hidden;
overflow-y: scroll;
position: fixed;
2023-08-21 17:06:12 +02:00
left: -225px;
top: 65px;
2023-08-21 17:06:12 +02:00
transition: 0.25s;
@media (max-width: 991px) {
height: calc(100vh - 65px - 55px);
}
@media (max-width: 572px) {
top: 100px;
height: calc(100vh - 105px);
}
}
.sidenav.open {
2023-08-21 17:06:12 +02:00
left: 0px;
}
.sidenav a, button{
text-decoration: none;
font-size: 20x;
color: lightgray;
margin-left: 20px;
display: block;
}
.sidenav a:hover {
color: white;
}
.sidenav nav {
height: auto;
padding-left: 20px;
padding-right: 20px;
padding-top: 30px;
padding-bottom: 50px;
@media (max-width: 572px) {
padding-bottom: 100px;
}
}
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}