navbar for admin side

This commit is contained in:
2020-04-03 20:00:41 -05:00
parent 7b96be5be8
commit 0e616fc86f

View File

@@ -1,16 +1,37 @@
.wrapper { .sidenav {
display: flex; height: 100%; /* Full-height: remove this if you want "auto" height */
width: 100%; width: 160px; /* Set the width of the sidebar */
position: fixed; /* Fixed Sidebar (stay in place on scroll) */
z-index: 1; /* Stay on top */
top: 0; /* Stay at the top */
left: 0;
background-color: #111; /* Black */
overflow-x: hidden; /* Disable horizontal scroll */
padding-top: 20px;
} }
#sidebar { /* The navigation menu links */
width: 250px; .sidenav a {
position: fixed; padding: 6px 8px 6px 16px;
top: 0; text-decoration: none;
left: 0; font-size: 25px;
height: 100vh; color: #818181;
z-index: 999; display: block;
background: #7386D5; }
color: #fff;
transition: all 0.3s; /* When you mouse over the navigation links, change their color */
.sidenav a:hover {
color: #f1f1f1;
}
/* Style page content */
.main {
margin-left: 160px; /* Same as the width of the sidebar */
padding: 0px 10px;
}
/* On smaller screens, where height is less than 450px, change the style of the sidebar (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
} }