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

82 lines
1.6 KiB
CSS
Raw Normal View History

2018-03-25 13:22:28 +02:00
/* The side navigation menu */
.sidenav {
height: 100%;
width: 300px;
margin-left: -270px; /* change margin with JavaScript */
2018-03-25 13:22:28 +02:00
position: fixed; /* Stay in place */
z-index: 1000;
2018-03-25 13:22:28 +02:00
top: 0;
left: 0;
transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
2018-03-29 17:20:05 +02:00
text-align: left;
background: linear-gradient(to right, #1c1c1c, transparent 90%);
2018-03-25 13:22:28 +02:00
}
2018-05-24 13:17:51 +02:00
#sidenav-scroll {
2018-05-25 08:33:39 +02:00
position: absolute;
2018-05-24 16:28:59 +02:00
padding: 80px 0 50px 0;
2018-05-24 13:17:51 +02:00
width: 100%;
}
2018-03-25 13:22:28 +02:00
/* The navigation menu links */
.sidenav a {
2018-05-24 16:28:59 +02:00
padding: 0;
margin: 0;
2018-03-25 13:22:28 +02:00
text-decoration: none;
font-size: 20px;
color: #f0f0f0;
2018-04-24 00:15:37 +02:00
display: inline-flex;
2018-03-25 13:22:28 +02:00
transition: 0.3s;
2018-05-24 16:28:59 +02:00
height: 40px;
2018-05-24 18:05:27 +02:00
width: 270px;
2018-05-24 16:28:59 +02:00
}
.sidenav a .sidenav-content {
margin: 0;
padding-left: 20px;
width: 100%;
height: 100%;
display: inline-flex;
transition: 0.3s;
2018-04-24 00:15:37 +02:00
}
2018-05-24 13:17:51 +02:00
.sidenav-icon, .sidenav-image {
2018-04-24 00:15:37 +02:00
left: 0;
margin-right: 5px;
-webkit-transform: translateY(5px);
transform: translateY(5px);
height: 20px;
width: 20px !important;
2018-03-25 13:22:28 +02:00
}
2018-05-24 13:17:51 +02:00
.sidenav-image {
margin: 0 5px 0 0;
padding: 0;
}
2018-05-24 16:28:59 +02:00
.sidenav a .sidenav-content:hover {
2018-05-06 21:47:33 +02:00
color: #1a5dad;
2018-05-24 16:28:59 +02:00
padding-left: 40px;
2018-03-25 13:22:28 +02:00
}
2018-05-24 13:17:51 +02:00
.sidenav .separator {
height: 20px;
}
2018-03-25 13:22:28 +02:00
/* 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 a {
font-size: 18px;
}
}