53 lines
1.0 KiB
SCSS
53 lines
1.0 KiB
SCSS
.sidenav {
|
|
z-index: 10;
|
|
background-color: #1d1f31;
|
|
box-shadow: 0px 0px 15px 0px #000;
|
|
width: 0px;
|
|
height: calc(100vh - 65px);
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
position: fixed;
|
|
left: 0;
|
|
top: 65px;
|
|
@media (max-width: 991px) {
|
|
height: calc(100vh - 65px - 55px);
|
|
}
|
|
@media (max-width: 572px) {
|
|
top: 100px;
|
|
height: calc(100vh - 105px);
|
|
}
|
|
}
|
|
|
|
.sidenav.open {
|
|
width: 235px;
|
|
}
|
|
.sidenav.close {
|
|
width: 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;}
|
|
} |