Commit f3f492d6 by krds-arun

fix(panel): responsive dashboard typography and small-mobile grids

- Use clamp() sizing for shared KPI + dashboard card typography
- Improve main PanelDashboard layout below 420px (single-column grids)

Made-with: Cursor
parent 9115793c
......@@ -25,7 +25,7 @@
.maf-dash-card__title {
margin: 0;
font-size: 0.92rem;
font-size: clamp(0.78rem, 0.35vw + 0.74rem, 0.92rem);
line-height: 1.2;
letter-spacing: 0.06em;
text-transform: uppercase;
......@@ -34,7 +34,7 @@
.maf-dash-card__desc {
margin: 6px 0 0;
font-size: 0.84rem;
font-size: clamp(0.76rem, 0.32vw + 0.74rem, 0.86rem);
line-height: 1.45;
color: var(--text-2, rgba(110, 90, 68, 0.78));
max-width: 60ch;
......@@ -65,11 +65,11 @@
}
.maf-dash-card__title {
font-size: 0.85rem;
font-size: clamp(0.76rem, 0.35vw + 0.72rem, 0.85rem);
}
.maf-dash-card__desc {
font-size: 0.8rem;
font-size: clamp(0.74rem, 0.32vw + 0.72rem, 0.82rem);
}
}
......@@ -19,7 +19,7 @@
.maf-panel-dashboard__eyebrow {
margin: 0 0 8px;
font-size: 0.78rem;
font-size: clamp(0.7rem, 0.35vw + 0.66rem, 0.8rem);
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--text-3, rgba(255, 255, 255, 0.56));
......@@ -36,7 +36,7 @@
.maf-panel-dashboard__subtitle {
margin: 10px 0 0;
font-size: 0.95rem;
font-size: clamp(0.84rem, 0.55vw + 0.74rem, 0.98rem);
line-height: 1.4;
color: var(--text-2, rgba(255, 255, 255, 0.66));
max-width: 72ch;
......@@ -168,3 +168,23 @@
}
}
@media (max-width: 420px) {
.maf-panel-dashboard {
gap: 12px;
}
.maf-panel-dashboard__kpis {
grid-template-columns: 1fr;
gap: 10px;
}
.maf-panel-dashboard__topStats {
grid-template-columns: 1fr;
gap: 10px;
}
.maf-panel-dashboard__metricGrid {
grid-template-columns: 1fr;
}
}
......@@ -38,14 +38,14 @@
}
.maf-topstat__label {
font-size: 0.72rem;
font-size: clamp(0.66rem, 0.22vw + 0.64rem, 0.74rem);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3, rgba(110, 90, 68, 0.62));
}
.maf-topstat__value {
font-size: 1.6rem;
font-size: clamp(1.25rem, 1.15vw + 1.02rem, 1.6rem);
font-weight: 800;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
......@@ -62,12 +62,12 @@
}
.maf-topstat__helper {
font-size: 0.78rem;
font-size: clamp(0.72rem, 0.22vw + 0.7rem, 0.8rem);
color: var(--text-2, rgba(110, 90, 68, 0.78));
}
.maf-topstat__delta {
font-size: 0.76rem;
font-size: clamp(0.7rem, 0.22vw + 0.68rem, 0.78rem);
font-weight: 700;
white-space: nowrap;
}
......@@ -90,7 +90,7 @@
@media (max-width: 768px) {
.maf-topstat__value {
font-size: 1.45rem;
font-size: clamp(1.18rem, 1.05vw + 0.98rem, 1.45rem);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment