site-accueil-insa/assets/css/sidenav.css

51 lines
1.2 KiB
CSS

/* The side navigation menu */
.sidenav {
height: 100%;
width: 300px;
margin-left: -270px; /* change margin with JavaScript */
position: fixed; /* Stay in place */
z-index: 1000;
top: 0;
left: 0;
overflow-x: hidden; /* Disable horizontal scroll */
padding-top: 80px;
transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
text-align: left;
background: linear-gradient(to right, #1c1c1c, transparent 90%);
}
/* The navigation menu links */
.sidenav a {
padding: 8px 0 8px 32px;
margin-right: 30px;
text-decoration: none;
font-size: 20px;
font-family: 'Rubik', sans-serif;
color: #f0f0f0;
display: block;
transition: 0.3s;
}
.sidenav a:hover {
color: #c5af86;
text-shadow: 0 0 5px #c5af86;
}
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
transition: margin-left .5s;
}
/* 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;
}
}