RC2
Tweaks and new pulldowns
This commit is contained in:
@@ -3,6 +3,188 @@
|
||||
════════════════════════════════════════════════════════════════════════ */
|
||||
|
||||
|
||||
/* ── CUSTOM SELECT DROPDOWN ─────────────────────────────────────────── */
|
||||
/* Cross-platform replacement for native <select> on the col-toggles bar */
|
||||
|
||||
.cs-wrap {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
/* The visible pill button */
|
||||
.cs-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 5px 10px 5px 13px;
|
||||
cursor: pointer;
|
||||
border: 1.5px solid #c9b08a;
|
||||
background: #f5edd6;
|
||||
color: #9a7d5a;
|
||||
font-family: JetBrains Mono, monospace;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
transition: all 0.15s;
|
||||
user-select: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cs-btn:hover {
|
||||
border-color: #c8922a;
|
||||
color: #6b4f2a;
|
||||
background: #fef3dc;
|
||||
}
|
||||
/* Active state — brass border + brass text, parchment background */
|
||||
.cs-btn.on {
|
||||
border-color: #c8922a;
|
||||
color: #c8922a;
|
||||
background: #f5edd6;
|
||||
font-weight: 600;
|
||||
}
|
||||
.cs-btn.on:hover {
|
||||
background: #fef3dc;
|
||||
color: #a06e18;
|
||||
border-color: #a06e18;
|
||||
}
|
||||
|
||||
/* The chevron arrow inside the button */
|
||||
.cs-arrow {
|
||||
font-size: 9px;
|
||||
opacity: 0.6;
|
||||
margin-left: 2px;
|
||||
transition: transform 0.15s;
|
||||
display: inline-block;
|
||||
}
|
||||
.cs-wrap.open .cs-arrow {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
/* Grouped left (fused with checkbox pill) */
|
||||
.cs-btn.grouped-left {
|
||||
border-right: none;
|
||||
border-radius: 20px 0 0 20px;
|
||||
}
|
||||
.cs-btn.grouped-left:only-child,
|
||||
.cs-btn.grouped-left.last-child {
|
||||
border-right: 1.5px solid #c9b08a;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
/* The floating dropdown panel */
|
||||
.cs-panel {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
background: #fffcf2;
|
||||
border: 1.5px solid #c9b08a;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 4px 16px rgba(30,18,8,0.13);
|
||||
min-width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Each option row */
|
||||
.cs-option {
|
||||
display: block;
|
||||
padding: 8px 14px;
|
||||
font-family: JetBrains Mono, monospace;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: #4a3420;
|
||||
cursor: pointer;
|
||||
transition: background 0.1s, color 0.1s;
|
||||
user-select: none;
|
||||
}
|
||||
.cs-option:hover {
|
||||
background: #fef3dc;
|
||||
color: #1e1208;
|
||||
}
|
||||
.cs-option.selected {
|
||||
color: #c8922a;
|
||||
font-weight: 600;
|
||||
background: #fdf8ee;
|
||||
}
|
||||
.cs-option.disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
.cs-option.disabled:hover {
|
||||
background: transparent;
|
||||
color: #4a3420;
|
||||
}
|
||||
/* Hide option divider between show/hide */
|
||||
.cs-divider {
|
||||
height: 1px;
|
||||
background: #e8d8c0;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
/* ── CUSTOM CHECKBOX PILL (ventilation / managed) ───────────────────── */
|
||||
|
||||
.cs-vent {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 12px 5px 10px;
|
||||
font-size: 12px;
|
||||
font-family: JetBrains Mono, monospace;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
border: 1.5px solid #c9b08a;
|
||||
border-left: none;
|
||||
margin-left: -1px;
|
||||
padding-left: 11px;
|
||||
border-radius: 0 20px 20px 0;
|
||||
background: #f5edd6;
|
||||
color: #9a7d5a;
|
||||
user-select: none;
|
||||
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.cs-vent:hover {
|
||||
border-color: #c8922a;
|
||||
color: #6b4f2a;
|
||||
background: #fef3dc;
|
||||
}
|
||||
.cs-vent.on {
|
||||
border-color: #c8922a;
|
||||
color: #c8922a;
|
||||
background: #f5edd6;
|
||||
font-weight: 600;
|
||||
}
|
||||
.cs-vent.on:hover {
|
||||
background: #fef3dc;
|
||||
color: #a06e18;
|
||||
border-color: #a06e18;
|
||||
}
|
||||
|
||||
/* The little square tick box inside the vent pill */
|
||||
.cs-checkbox {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border: 1.5px solid currentColor;
|
||||
border-radius: 2px;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.12s;
|
||||
}
|
||||
.cs-checkbox.checked::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 7px;
|
||||
height: 5px;
|
||||
border-left: 2px solid currentColor;
|
||||
border-bottom: 2px solid currentColor;
|
||||
transform: rotate(-45deg) translateY(-1px);
|
||||
}
|
||||
|
||||
|
||||
/* ── 9. STATUS & ERROR BANNERS ("Acquiring forecast data…") ────────── */
|
||||
|
||||
.utci-status {
|
||||
|
||||
Reference in New Issue
Block a user