dashboard css

This commit is contained in:
IluaAir
2025-10-13 23:24:51 +03:00
parent 80b40ce1c0
commit c647f837e8
3 changed files with 166 additions and 22 deletions

View File

@@ -0,0 +1,139 @@
/* Dashboard Layout */
.dashboard-container {
display: flex;
min-height: 100vh;
background: var(--color-background);
}
/* Navigation Rail - Material Design 3 */
.dashboard-sidebar {
width: 80px;
background: color-mix(in srgb, var(--color-card) 50%, transparent);
display: flex;
flex-direction: column;
align-items: center;
padding-top: 1rem;
padding-bottom: 1rem;
gap: 1rem;
}
.dashboard-avatar-container {
margin-bottom: 0.5rem;
}
.dashboard-avatar {
width: 3.5rem;
height: 3.5rem;
border-radius: 1rem;
}
.dashboard-avatar-fallback {
border-radius: 1rem;
}
/* Main Content Area */
.dashboard-main {
flex: 1;
padding: 1.5rem;
background: var(--color-background);
display: flex;
flex-direction: column;
}
.dashboard-content {
max-width: 80rem;
margin-left: auto;
margin-right: auto;
width: 100%;
display: flex;
flex: 1;
flex-direction: column;
gap: 1.5rem;
}
/* Header */
.dashboard-header {
font-size: 1.875rem;
font-weight: bold;
}
/* Material Design 3 Cards Grid */
.dashboard-cards-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
}
@media (min-width: 768px) {
.dashboard-cards-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1024px) {
.dashboard-cards-grid {
grid-template-columns: repeat(3, 1fr);
}
}
/* M3 Card Variants */
.dashboard-card-filled {
background: var(--color-card);
padding: 1.5rem;
border-radius: 1.5rem;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.dashboard-card-elevated {
background: var(--color-card);
padding: 1.5rem;
border-radius: 1.5rem;
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
transition: box-shadow 0.3s;
}
.dashboard-card-elevated:hover {
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.dashboard-card-outlined {
background: var(--color-background);
border: 2px solid var(--color-border);
padding: 1.5rem;
border-radius: 1.5rem;
}
.dashboard-card-title {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.dashboard-card-text {
color: var(--color-muted-foreground);
font-size: 0.875rem;
}
/* Surface Container */
.dashboard-surface-container {
background: color-mix(in srgb, var(--color-card) 30%, transparent);
padding: 1.5rem;
border-radius: 1.5rem;
flex: 3;
}
.dashboard-surface-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.dashboard-surface-text {
color: var(--color-muted-foreground);
}
/* Spacer */
.dashboard-spacer {
flex: 1;
}