mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
fix(appearance): clearer widget settings, density hint, solid surfaces with transparency off
Dashboard widget settings are grouped by where they sit on the dashboard (below the hero / right sidebar / bottom of page); the right-sidebar master toggle now nests its individual widgets and greys them out when the sidebar is off, instead of a confusing flat list mixing the master with its children. Density gains an explanatory hint plus a real compact spacing effect. Transparency-off also solidifies the Atlas glass panels and tooltip, Leaflet zoom controls and GL popups — class-based surfaces via CSS, the Atlas inline panels via a noTransparency flag.
This commit is contained in:
@@ -759,6 +759,30 @@ html[data-no-transparency] *::after {
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
/* Class-based translucent surfaces (Atlas tooltip, Leaflet controls, GL popups)
|
||||
forced solid. Inline rgba() is handled per-component (it can't be reached by CSS). */
|
||||
html[data-no-transparency] .atlas-tooltip {
|
||||
background: var(--bg-card) !important;
|
||||
color: var(--text-primary) !important;
|
||||
border-color: var(--border-primary) !important;
|
||||
}
|
||||
html[data-no-transparency] .atlas-tooltip::before { border-top-color: var(--bg-card) !important; }
|
||||
html[data-no-transparency] .leaflet-control-zoom a { background: var(--bg-card) !important; }
|
||||
html[data-no-transparency] .map-tooltip,
|
||||
html[data-no-transparency] .leaflet-tooltip.map-tooltip { background: var(--bg-card) !important; }
|
||||
html[data-no-transparency] .trek-map-popup .mapboxgl-popup-content,
|
||||
html[data-no-transparency] .trek-map-popup .maplibregl-popup-content { background: var(--bg-card) !important; }
|
||||
|
||||
/* ── Compact density ──────────────────────────────────────────────
|
||||
Tightens the spacing scale; reach grows as components adopt the tokens. */
|
||||
html[data-density="compact"] {
|
||||
--sp-1: 3px;
|
||||
--sp-2: 6px;
|
||||
--sp-3: 9px;
|
||||
--sp-4: 12px;
|
||||
--sp-6: 18px;
|
||||
}
|
||||
html[data-density="compact"] .form-input { padding: 5px 11px; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-system);
|
||||
|
||||
Reference in New Issue
Block a user