2024-08-20 15:15:33 +07:00
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
2024-09-29 19:31:24 +07:00
|
|
|
padding-top: 56px;
|
2024-08-20 15:15:33 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
.navbar {
|
|
|
|
z-index: 1030; /* Ensure the navbar is above other elements */
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar {
|
|
|
|
height: calc(100vh - 56px); /* 56px is the height of the navbar */
|
|
|
|
position: fixed;
|
|
|
|
top: 56px; /* Offset by the navbar height */
|
|
|
|
left: 0;
|
|
|
|
width: 250px;
|
|
|
|
background-color: #343a40;
|
|
|
|
color: white;
|
|
|
|
z-index: 1020; /* Lower than navbar to stay behind it */
|
|
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
overflow-y: auto; /* Make sidebar scrollable */
|
|
|
|
}
|
|
|
|
|
2024-09-30 17:19:45 +07:00
|
|
|
.sidebar .navbar-nav .nav-item .active {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2024-09-30 17:24:18 +07:00
|
|
|
.sidebar .navbar-nav .nav-item :hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.2); /* Darkens on hover */
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar .navbar-nav .nav-item .nav-link {
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
|
2024-08-20 15:15:33 +07:00
|
|
|
.sidebar.minimized {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
margin-left: 250px;
|
2024-09-29 19:48:14 +07:00
|
|
|
padding-bottom: 20px;
|
2024-08-20 15:15:33 +07:00
|
|
|
transition: margin-left 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content.full-width {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
background-color: #f8f9fa;
|
2024-09-29 19:48:14 +07:00
|
|
|
padding-top: 5px;
|
2024-08-20 15:15:33 +07:00
|
|
|
text-align: center;
|
2024-09-29 19:48:14 +07:00
|
|
|
margin-left: 250px;
|
2024-08-20 15:15:33 +07:00
|
|
|
transition: margin-left 0.3s ease-in-out;
|
2024-09-29 19:48:14 +07:00
|
|
|
z-index: 1010;
|
2024-08-20 15:15:33 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
.footer.full-width {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile-image {
|
2024-09-29 19:26:36 +07:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2024-08-20 15:15:33 +07:00
|
|
|
border-radius: 50%;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-toggle {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 20px;
|
|
|
|
left: 20px;
|
|
|
|
background-color: #343a40;
|
|
|
|
color: white;
|
|
|
|
border: none;
|
|
|
|
width: 100px;
|
|
|
|
height: 40px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1040; /* Above the sidebar and navbar */
|
|
|
|
padding: 5px;
|
|
|
|
border-radius: 8px; /* Rounded corners */
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-toggle span {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.sidebar {
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar.show {
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|