56 lines
1.3 KiB
SCSS
56 lines
1.3 KiB
SCSS
@use "../variables" as *;
|
|
@use "../mixins" as *;
|
|
|
|
.sidebar {
|
|
width: 260px;
|
|
background: $color-sidebar;
|
|
color: #fff;
|
|
min-height: 100%;
|
|
padding: $spacing-md;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: $spacing-sm; flex: 1; }
|
|
|
|
a, .menu-toggle {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
display: block;
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
&:hover { background: rgba(255,255,255,0.04); }
|
|
}
|
|
|
|
.menu-toggle { background: transparent; border: none; text-align: left; width: 100%; cursor: pointer; }
|
|
|
|
.submenu {
|
|
margin-left: 8px;
|
|
background: rgba(255,255,255,0.02);
|
|
border-radius: 4px;
|
|
padding: 6px;
|
|
li { padding: 4px 0; }
|
|
}
|
|
|
|
.logout-item {
|
|
margin-top: auto;
|
|
border-top: 1px solid rgba(255,255,255,0.1);
|
|
padding-top: $spacing-sm;
|
|
}
|
|
|
|
.logout-button {
|
|
background: rgba(255,255,255,0.1);
|
|
color: #fff;
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
width: 100%;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
&:hover { background: rgba(255,255,255,0.15); }
|
|
&:active { background: rgba(255,255,255,0.2); }
|
|
}
|
|
|
|
&.user { width: 220px; background: darken($color-sidebar, 6%); }
|
|
}
|
|
|