280 lines
4.4 KiB
SCSS
280 lines
4.4 KiB
SCSS
@use '@angular/material' as mat;
|
|
@import '../../../../m3-theme.scss';
|
|
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
padding: 28px 16px 22px;
|
|
color: var(--sg-text);
|
|
}
|
|
|
|
.sidebar--collapsed {
|
|
align-items: center;
|
|
padding: 18px 8px 20px;
|
|
}
|
|
|
|
.brand-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
min-height: 58px;
|
|
}
|
|
|
|
.sidebar--collapsed .brand-row {
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.sidebar-collapse-button {
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-height: 58px;
|
|
padding: 0 12px;
|
|
color: var(--sg-text);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.brand-mark {
|
|
position: relative;
|
|
display: block;
|
|
width: 42px;
|
|
height: 42px;
|
|
}
|
|
|
|
.brand-mark::before,
|
|
.brand-mark::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 10px 8px;
|
|
border: 2px solid rgba(0, 87, 255, 0.22);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.brand-mark::after {
|
|
transform: rotate(60deg);
|
|
}
|
|
|
|
.brand-mark span {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
background: var(--sg-primary);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.brand-mark span:nth-child(1) {
|
|
left: 16px;
|
|
top: 0;
|
|
}
|
|
.brand-mark span:nth-child(2) {
|
|
right: 0;
|
|
top: 9px;
|
|
}
|
|
.brand-mark span:nth-child(3) {
|
|
right: 0;
|
|
bottom: 9px;
|
|
}
|
|
.brand-mark span:nth-child(4) {
|
|
left: 16px;
|
|
bottom: 0;
|
|
}
|
|
.brand-mark span:nth-child(5) {
|
|
left: 0;
|
|
bottom: 9px;
|
|
}
|
|
.brand-mark span:nth-child(6) {
|
|
left: 0;
|
|
top: 9px;
|
|
}
|
|
|
|
.brand-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
}
|
|
|
|
.brand-text strong {
|
|
font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.brand-text small {
|
|
color: var(--sg-text-muted);
|
|
font-size: 11px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.nav-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-top: 42px;
|
|
padding: 0;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-list {
|
|
display: grid;
|
|
justify-items: center;
|
|
width: 100%;
|
|
margin-top: 28px;
|
|
}
|
|
|
|
.nav-list a {
|
|
height: 46px;
|
|
border-radius: var(--sg-radius-sm);
|
|
color: var(--sg-text);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.nav-list a.active {
|
|
background: var(--sg-primary-soft);
|
|
color: var(--sg-primary);
|
|
}
|
|
|
|
.nav-list a.disabled {
|
|
opacity: 0.72;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.nav-list mat-icon,
|
|
.utility-link mat-icon {
|
|
color: var(--sg-text-soft);
|
|
}
|
|
|
|
.nav-list a.active mat-icon {
|
|
color: var(--sg-primary);
|
|
}
|
|
|
|
.nav-icon-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--sg-radius-sm);
|
|
color: var(--sg-text-soft);
|
|
}
|
|
|
|
.nav-icon-button.active {
|
|
background: var(--sg-primary-soft);
|
|
color: var(--sg-primary);
|
|
}
|
|
|
|
.nav-icon-button.disabled {
|
|
opacity: 0.72;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.sidebar-spacer {
|
|
flex: 1;
|
|
min-height: 28px;
|
|
}
|
|
|
|
.account-card {
|
|
display: grid;
|
|
grid-template-columns: 40px 1fr 20px;
|
|
align-items: center;
|
|
gap: 12px;
|
|
min-height: 68px;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: var(--sg-radius-sm);
|
|
background: var(--sg-surface);
|
|
}
|
|
|
|
.account-icon {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 48px;
|
|
height: 48px;
|
|
}
|
|
|
|
.account-card .avatar,
|
|
.account-icon .avatar {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #dce8ff, #ffffff);
|
|
color: var(--sg-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.account-card strong,
|
|
.account-card span {
|
|
display: block;
|
|
}
|
|
|
|
.account-card strong {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.account-card span {
|
|
margin-top: 2px;
|
|
color: var(--sg-text-muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.account-card mat-icon {
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
.sidebar-actions {
|
|
display: grid;
|
|
gap: 8px;
|
|
margin-top: 26px;
|
|
}
|
|
|
|
.sidebar--collapsed .sidebar-actions {
|
|
display: grid;
|
|
justify-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.utility-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
height: 40px;
|
|
width: 100%;
|
|
padding: 0 12px;
|
|
border: 0;
|
|
background: transparent;
|
|
border-radius: var(--sg-radius-sm);
|
|
color: var(--sg-text);
|
|
text-align: left;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.utility-link:hover {
|
|
background: var(--sg-surface-muted);
|
|
}
|
|
|
|
.utility-icon-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: var(--sg-radius-sm);
|
|
color: var(--sg-text-soft);
|
|
}
|
|
|
|
.loading-indicator {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-list,
|
|
.sidebar--collapsed .sidebar-actions {
|
|
justify-items: center;
|
|
}
|
|
|
|
.sidebar--collapsed .account-icon {
|
|
margin-inline: auto;
|
|
}
|