90 lines
1.9 KiB
CSS
90 lines
1.9 KiB
CSS
body {
|
|
margin: 0;
|
|
font-family: Arial, sans-serif;
|
|
background-color: #f5f5f5;
|
|
display: flex;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
height: 100vh;
|
|
background-color: #ffffff;
|
|
position: fixed;
|
|
left: -250px;
|
|
transition: left 0.3s ease;
|
|
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
|
|
padding-top: 20px;
|
|
}
|
|
.sidebar.open {
|
|
left: 0;
|
|
}
|
|
|
|
/* Sidebar Navigation */
|
|
.nav-menu {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.nav-item {
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
color: #333;
|
|
padding: 15px 20px;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s, color 0.3s;
|
|
}
|
|
|
|
.nav-link i {
|
|
margin-right: 10px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.nav-link:hover, .nav-link.active {
|
|
background-color: #e6f7ff;
|
|
color: #007bff;
|
|
}
|
|
|
|
/* Menu Button */
|
|
.menu-icon {
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 15px;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
}
|
|
|
|
/* Content Area */
|
|
.content {
|
|
margin-left: 0;
|
|
padding: 20px;
|
|
width: 100%;
|
|
transition: margin-left 0.3s ease;
|
|
}
|
|
.content.shift {
|
|
margin-left: 250px;
|
|
}
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 200px;
|
|
left: -200px;
|
|
}
|
|
|
|
.sidebar.open {
|
|
left: 0;
|
|
}
|
|
|
|
.content.shift {
|
|
margin-left: 200px;
|
|
}
|
|
}
|
|
|