296 lines
4.9 KiB
CSS
296 lines
4.9 KiB
CSS
.dashboard-navigation {
|
|
grid-area: submenu;
|
|
position: sticky;
|
|
top: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
padding: 2px 0 2px 12px;
|
|
border-left: 1px solid #e2e8f2;
|
|
background: transparent;
|
|
}
|
|
|
|
.navigation-heading {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 4px 12px 14px;
|
|
}
|
|
|
|
.navigation-heading div {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.navigation-heading strong {
|
|
color: #263752;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.navigation-heading span,
|
|
.navigation-group,
|
|
.navigation-footer {
|
|
color: #7a879d;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.navigation-group {
|
|
margin: 14px 12px 4px;
|
|
padding: 0 4px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.navigation-item {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 12px;
|
|
width: 100%;
|
|
height: 40px;
|
|
min-height: 40px;
|
|
padding: 0 14px;
|
|
border: 1px solid transparent;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
color: #62718a;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.navigation-item:hover {
|
|
background: #f1f5f9;
|
|
color: #1e3a8a;
|
|
}
|
|
|
|
.navigation-item.active {
|
|
border-color: transparent;
|
|
background: #edf3fc;
|
|
color: #315aaa;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.navigation-item.active::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 8px;
|
|
bottom: 8px;
|
|
left: -13px;
|
|
width: 3px;
|
|
border-radius: 3px;
|
|
background: currentColor;
|
|
}
|
|
|
|
.navigation-item:focus-visible {
|
|
outline: 2px solid #315aaa;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.navigation-item svg {
|
|
flex: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
stroke: currentColor;
|
|
stroke-width: 1.6;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.navigation-current {
|
|
width: 5px;
|
|
height: 5px;
|
|
margin-left: auto;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.navigation-session {
|
|
flex-shrink: 0;
|
|
margin-top: auto;
|
|
padding-top: 18px;
|
|
}
|
|
|
|
.navigation-account-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0 0 10px;
|
|
padding: 12px;
|
|
border: 1px solid #e2e8f2;
|
|
border-radius: 10px;
|
|
background: #f8faff;
|
|
color: #1e293b;
|
|
}
|
|
|
|
.navigation-account-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.navigation-account-label {
|
|
color: #64748b;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.navigation-account-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.navigation-account-name {
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.navigation-role-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2px 8px;
|
|
border-radius: 6px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
white-space: nowrap;
|
|
background: #fef2f2;
|
|
color: #ef4444;
|
|
border: 1px solid #fee2e2;
|
|
}
|
|
|
|
.navigation-role-badge.role-admin {
|
|
background: #eff6ff;
|
|
color: #3b82f6;
|
|
border-color: #dbeafe;
|
|
}
|
|
|
|
.navigation-role-badge.role-user {
|
|
background: #f1f5f9;
|
|
color: #64748b;
|
|
border-color: #e2e8f0;
|
|
}
|
|
|
|
.navigation-logout-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
margin-left: auto;
|
|
padding: 3px 6px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: #64748b;
|
|
font: inherit;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.navigation-logout-btn:hover:not(:disabled) {
|
|
background: #fef2f2;
|
|
color: #ef4444;
|
|
}
|
|
|
|
.navigation-logout-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: wait;
|
|
}
|
|
|
|
.navigation-power-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: currentColor;
|
|
stroke-width: 2;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
}
|
|
|
|
.navigation-logout-text {
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.navigation-logout-sr {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border-width: 0;
|
|
}
|
|
|
|
.navigation-error {
|
|
margin: 0 4px 8px;
|
|
color: #b42318;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.navigation-footer {
|
|
margin: 4px 12px 0;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
@media (max-width: 760px) {
|
|
.dashboard-navigation {
|
|
position: static;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: 12px;
|
|
border: 1px solid #e2e8f2;
|
|
border-radius: 14px;
|
|
background: #fff;
|
|
overflow: visible;
|
|
}
|
|
|
|
.navigation-heading,
|
|
.navigation-group,
|
|
.navigation-footer {
|
|
display: none;
|
|
}
|
|
|
|
.navigation-item {
|
|
width: auto;
|
|
height: 38px;
|
|
min-height: 38px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.navigation-session {
|
|
margin-top: 0;
|
|
padding-top: 0;
|
|
}
|
|
}
|