NavBar & SideBar Works... Kinda. Not Customized Yet.
This commit is contained in:
@@ -48,4 +48,35 @@ nav {
|
||||
.navbar__link--active .navbar__icon {
|
||||
background-color: #04AA6D;
|
||||
filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.15)); /* Adds a slight glow or deeper shadow */
|
||||
}
|
||||
|
||||
/* Base sidebar style (hidden by default on all screens) */
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
left: -250px; /* Pushes it off-screen to the left */
|
||||
width: 250px;
|
||||
top: 60px; /* Adjust based on your nav header height */
|
||||
height: calc(100% - 60px);
|
||||
transition: left 0.3s ease; /* Smooth slide-in animation */
|
||||
z-index: 1000;
|
||||
background: #222; /* Adjust to match your theme */
|
||||
}
|
||||
|
||||
/* When JavaScript adds this class, slide the sidebar into view */
|
||||
.sidebar.sidebar--open {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* Updated Desktop adjustments */
|
||||
@media (min-width: 768px) {
|
||||
/* Ensure the button stays visible on desktop */
|
||||
.toggle-btn {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* Optional: If you want the main page content to shift right when open */
|
||||
.sidebar.sidebar--open ~ main {
|
||||
margin-left: 250px;
|
||||
transition: margin-left 0.3s ease;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user