688 lines
15 KiB
CSS
688 lines
15 KiB
CSS
/* ════════════════════════════════════════════════════════════════════════
|
|
ui.css — Status banners, legend, about block, footer, and responsive.
|
|
════════════════════════════════════════════════════════════════════════ */
|
|
|
|
/* ── EVENT BANNER ───────────────────────────────────────────────────── */
|
|
/* Animated slide-down banner for cosmic/weather/promo events. */
|
|
|
|
/* Open/close: grow vertically using grid-template-rows (silky smooth,
|
|
no max-height hack — it animates from 0fr → 1fr and back). */
|
|
.event-banner-wrap {
|
|
display: grid;
|
|
grid-template-rows: 0fr;
|
|
transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
.event-banner-wrap > * {
|
|
overflow: hidden;
|
|
}
|
|
.event-banner-wrap.visible {
|
|
grid-template-rows: 1fr;
|
|
}
|
|
/* When closing, fade the content out before the row collapses */
|
|
.event-banner-wrap:not(.visible) .event-banner-stage {
|
|
opacity: 0;
|
|
}
|
|
|
|
/* Slide crossfade: both banners rendered simultaneously, fading into each other */
|
|
@keyframes banner-fade-in {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
@keyframes banner-fade-out {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
/* Container that holds both slides during a crossfade */
|
|
/* Also fades in/out with the wrap open/close */
|
|
.event-banner-stage {
|
|
opacity: 1;
|
|
transition: opacity 0.35s ease;
|
|
position: relative;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.event-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
padding: 13px 18px;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
border-left: 4px solid rgba(255,255,255,0.25);
|
|
}
|
|
|
|
/* Single-element crossfade — content swaps during the transition gap */
|
|
.event-banner.banner-exiting {
|
|
animation: banner-fade-out 0.4s ease both;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.event-banner.banner-entering {
|
|
animation: banner-fade-in 0.4s ease both;
|
|
}
|
|
.event-banner-emoji {
|
|
font-size: 24px;
|
|
flex-shrink: 0;
|
|
line-height: 1;
|
|
}
|
|
.event-banner-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.event-banner-title {
|
|
font-family: Fraunces, serif;
|
|
font-style: italic;
|
|
font-weight: 700;
|
|
font-size: 16px;
|
|
line-height: 1.2;
|
|
margin-bottom: 3px;
|
|
}
|
|
.event-banner-msg {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 12.5px;
|
|
line-height: 1.55;
|
|
opacity: 0.88;
|
|
}
|
|
.event-banner-dismiss {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 18px;
|
|
opacity: 0.55;
|
|
padding: 4px 6px;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.event-banner-dismiss:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Slideshow dots */
|
|
.event-banner-dots {
|
|
display: flex;
|
|
gap: 5px;
|
|
margin-top: 7px;
|
|
align-items: center;
|
|
}
|
|
.event-banner-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
opacity: 0.35;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s, transform 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
.event-banner-dot.active {
|
|
opacity: 1;
|
|
transform: scale(1.3);
|
|
}
|
|
.event-banner-dot:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* Cell tag — event icon in the hour column */
|
|
.event-cell-tag {
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
margin-left: 1px;
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
transition: opacity 0.15s;
|
|
}
|
|
.event-cell-tag:hover {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
/* ── ALMANAC PANEL ──────────────────────────────────────────────────── */
|
|
/* "What's Coming" upcoming cosmic events box below the forecast table. */
|
|
|
|
.almanac-panel {
|
|
margin: 20px 0 12px;
|
|
border: 1.5px solid #c9b08a;
|
|
border-radius: 4px;
|
|
background: #fdf8ee;
|
|
overflow: hidden;
|
|
}
|
|
.almanac-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
padding: 12px 18px 10px;
|
|
border-bottom: 1px solid #e8d8b8;
|
|
background: #faf2e2;
|
|
}
|
|
.almanac-title {
|
|
font-family: Fraunces, serif;
|
|
font-style: italic;
|
|
font-weight: 700;
|
|
font-size: 17px;
|
|
color: #2a1a08;
|
|
letter-spacing: 0;
|
|
}
|
|
.almanac-subtitle {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
color: #9a7d5a;
|
|
}
|
|
.almanac-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 0;
|
|
}
|
|
.almanac-entry {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 13px;
|
|
padding: 13px 18px;
|
|
border-bottom: 1px solid #f0e4cc;
|
|
border-right: 1px solid #f0e4cc;
|
|
transition: background 0.15s;
|
|
}
|
|
.almanac-entry:hover {
|
|
background: #fef8e8;
|
|
}
|
|
.almanac-entry-icon {
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
}
|
|
.almanac-entry-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.almanac-entry-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 3px;
|
|
}
|
|
.almanac-entry-title {
|
|
font-family: Fraunces, serif;
|
|
font-style: italic;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
color: #1e1208;
|
|
line-height: 1.2;
|
|
}
|
|
.almanac-entry-date {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: #c8922a;
|
|
white-space: nowrap;
|
|
}
|
|
.almanac-entry-countdown {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
color: #9a7d5a;
|
|
white-space: nowrap;
|
|
}
|
|
.almanac-entry-desc {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 12px;
|
|
color: #4a3420;
|
|
line-height: 1.55;
|
|
}
|
|
.almanac-entry-visibility {
|
|
display: inline-block;
|
|
margin-top: 5px;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: #7a9a6a;
|
|
background: #eef4e8;
|
|
border: 1px solid #c0d8b0;
|
|
border-radius: 3px;
|
|
padding: 2px 7px;
|
|
}
|
|
.almanac-entry-accent {
|
|
width: 3px;
|
|
align-self: stretch;
|
|
border-radius: 2px;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
opacity: 0.7;
|
|
}
|
|
.almanac-empty {
|
|
padding: 22px 18px;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 13px;
|
|
color: #9a7d5a;
|
|
font-style: italic;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.almanac-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ── EVENT BANNER — mobile fixes ────────────────────────────────────── */
|
|
@media (max-width: 640px) {
|
|
.event-banner-wrap {
|
|
margin-top: 8px; /* push banner clear of the fixed nav bar */
|
|
margin-bottom: 0; /* no gap between banner and header on mobile */
|
|
}
|
|
|
|
.event-banner {
|
|
align-items: flex-start; /* stop dismiss ✕ drifting downward */
|
|
gap: 10px;
|
|
padding: 18px 12px 14px 14px;
|
|
margin-bottom: 0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.event-banner-emoji {
|
|
font-size: 20px;
|
|
margin-top: 3px; /* visually balance the dates-line margin-top below */
|
|
}
|
|
|
|
.event-banner-title {
|
|
font-size: 15px;
|
|
line-height: 1.25;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.event-banner-msg {
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.event-banner-dismiss {
|
|
margin-top: 0; /* keep ✕ pinned flush to the top-right */
|
|
padding: 0 2px;
|
|
font-size: 16px;
|
|
line-height: 1.4;
|
|
flex-shrink: 0;
|
|
align-self: flex-start;
|
|
}
|
|
}
|
|
|
|
/* ── 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;
|
|
border-radius: 0;
|
|
background: #f5edd6;
|
|
color: #6b4228;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
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 {
|
|
background: #c8922a;
|
|
border-color: #c8922a;
|
|
color: #fff;
|
|
font-weight: 600;
|
|
}
|
|
.cs-btn.on:hover {
|
|
background: #a06e18;
|
|
border-color: #a06e18;
|
|
color: #fff;
|
|
}
|
|
|
|
/* The chevron arrow inside the button */
|
|
.cs-arrow {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-right: 2px solid currentColor;
|
|
border-bottom: 2px solid currentColor;
|
|
transform: rotate(45deg);
|
|
margin-left: 5px;
|
|
margin-bottom: 3px;
|
|
opacity: 1;
|
|
transition: transform 0.15s;
|
|
vertical-align: middle;
|
|
}
|
|
.cs-wrap.open .cs-arrow {
|
|
transform: rotate(225deg);
|
|
margin-bottom: -1px;
|
|
}
|
|
/* Grouped left (fused with checkbox pill) */
|
|
.cs-btn.grouped-left {
|
|
border-right: none;
|
|
border-radius: 0;
|
|
}
|
|
.cs-btn.grouped-left:only-child,
|
|
.cs-btn.grouped-left.last-child {
|
|
border-right: 1.5px solid #c9b08a;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* 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: Manrope, sans-serif;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
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: Manrope, sans-serif;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
border: 1.5px solid #c9b08a;
|
|
border-left: none;
|
|
margin-left: -1px;
|
|
padding-left: 11px;
|
|
border-radius: 0;
|
|
background: #f5edd6;
|
|
color: #6b4228;
|
|
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 {
|
|
padding: 14px 18px;
|
|
background: #f0e4c4;
|
|
color: #7a5c2a;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
letter-spacing: 0.07em;
|
|
text-transform: uppercase;
|
|
border: 1.5px solid #c9b08a;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
|
|
/* ── 10. LEGEND (thermal-stress band colours at the bottom) ────────── */
|
|
|
|
.utci-legend {
|
|
margin-top: 22px;
|
|
padding: 18px 20px;
|
|
background: #fdf8ee;
|
|
border: 1.5px solid #c9b08a;
|
|
}
|
|
|
|
.utci-legend-label {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: #7a5c2a;
|
|
margin-bottom: 12px;
|
|
display: block;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.utci-legend-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.utci-legend-item {
|
|
padding: 6px 12px;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
flex: 1;
|
|
min-width: 110px;
|
|
text-align: center;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
|
|
/* ── 11. ABOUT + FOOTER ─────────────────────────────────────────────── */
|
|
|
|
.utci-about {
|
|
margin-top: 28px;
|
|
padding: 24px 28px;
|
|
background: #fdf8ee;
|
|
border: 1.5px solid #c9b08a;
|
|
}
|
|
|
|
.utci-about-heading {
|
|
font-family: Fraunces, serif;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: #1e1208;
|
|
margin-bottom: 14px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.utci-about-text {
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.75;
|
|
color: #4a3420;
|
|
margin-bottom: 12px;
|
|
max-width: 860px; /* keeps line length readable */
|
|
}
|
|
|
|
.utci-about-text:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.utci-about-text strong {
|
|
color: #1e1208;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.utci-about-text em {
|
|
font-style: italic;
|
|
color: #6b4f2a;
|
|
}
|
|
|
|
.utci-about-link {
|
|
display: inline-block;
|
|
margin-left: 4px;
|
|
color: #c8922a;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
.utci-about-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.utci-footer {
|
|
margin-top: 36px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #d4c0a0;
|
|
font-family: Manrope, sans-serif;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
color: #9a7d5a;
|
|
line-height: 2.2;
|
|
}
|
|
|
|
/* The "Reading the table." intro snippet */
|
|
.utci-footer em {
|
|
font-family: Fraunces, serif;
|
|
font-style: italic;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
font-size: 14px;
|
|
color: #7a5c2a;
|
|
}
|
|
|
|
|
|
/* ── 12. RESPONSIVE (mobile) ───────────────────────────────────────── */
|
|
/* On screens narrower than 800px, stack the header vertically and
|
|
shrink the dial. Add more rules in this block to tweak mobile
|
|
layout further. */
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
.utci-app {
|
|
padding: 52px 10px 32px;
|
|
}
|
|
|
|
.utci-header {
|
|
grid-template-columns: 1fr; /* stack the 3 header columns */
|
|
text-align: center;
|
|
}
|
|
|
|
.header-right {
|
|
align-items: center;
|
|
}
|
|
|
|
.utci-search-wrap {
|
|
width: 100%;
|
|
}
|
|
|
|
.scope-ring {
|
|
width: 180px; /* smaller dial on mobile */
|
|
height: 180px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Halve the hourly-table cell padding on mobile so more columns fit
|
|
in the viewport before the horizontal scrollbar kicks in. */
|
|
.utci-table th {
|
|
padding: 7px 6px;
|
|
}
|
|
.utci-table td {
|
|
padding: 5px 6px;
|
|
}
|
|
|
|
/* Drop the compass-label text ("N", "NW"...) next to the wind vane on
|
|
mobile — the vane arrow alone is enough at small sizes. */
|
|
.wind-dir-label {
|
|
display: none;
|
|
}
|
|
|
|
}
|