Skip to content

Commit

Permalink
Create header.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lucretiomsp authored Oct 29, 2024
1 parent b128044 commit 1282195
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* Sidebar Styles */
.sidebar {
position: fixed;
left: 0;
top: 0;
width: 250px;
height: 100vh;
background-color: #f8f9fa; /* Adjust to your preferred color */
padding-top: 60px; /* Adjust based on header height */
}

.site-nav {
display: flex;
flex-direction: column;
}

.site-nav .page-link {
padding: 15px;
color: #333;
text-decoration: none;
}

.site-nav .page-link:hover {
background-color: #e9ecef; /* Hover background */
}

.site-header {
margin-left: 250px; /* Offset the header to align with the sidebar */
}

.wrapper {
max-width: calc(100% - 250px); /* Adjust header width */
}

/* Optional: Hide sidebar on smaller screens */
@media (max-width: 768px) {
.sidebar {
position: relative;
width: 100%;
height: auto;
}

.site-header, .wrapper {
margin-left: 0;
}
}

0 comments on commit 1282195

Please sign in to comment.