2018-03-25 13:22:28 +02:00
|
|
|
/* The side navigation menu */
|
|
|
|
|
|
|
|
.sidenav {
|
|
|
|
height: 100%;
|
2019-05-18 10:24:41 +02:00
|
|
|
overflow-y: hidden;
|
2018-04-21 20:36:11 +02:00
|
|
|
width: 300px;
|
2019-05-16 18:34:02 +02:00
|
|
|
transform: translateX(-270px); /* change margin with JavaScript */
|
2018-03-25 13:22:28 +02:00
|
|
|
position: fixed; /* Stay in place */
|
2018-03-26 14:22:35 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-05-16 18:34:02 +02:00
|
|
|
.sidenav.sidenav-open {
|
|
|
|
transform: translateX(0);
|
2019-05-18 10:24:41 +02:00
|
|
|
overflow-y: auto;
|
2019-05-16 18:34:02 +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 {
|
2019-05-18 10:14:19 +02:00
|
|
|
color: #114165;
|
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;
|
|
|
|
}
|
|
|
|
}
|