initial commit
This commit is contained in:
375
src/styles.css
Normal file
375
src/styles.css
Normal file
@@ -0,0 +1,375 @@
|
||||
:root { font-family: 'Manrope Variable', Arial, sans-serif; color: #f5f5f5; background: #000000; font-synthesis: none; --accent: #d5ff70; --muted: #b7b7b7; --line: #303030; --warning: #ffd479; color-scheme: dark; }
|
||||
* { box-sizing: border-box; }
|
||||
html, body, #root { margin: 0; width: 100%; height: 100%; background: #000000; }
|
||||
button, input, select, textarea { font: inherit; }
|
||||
button { cursor: pointer; color: inherit; }
|
||||
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
|
||||
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
||||
svg { display: block; flex-shrink: 0; }
|
||||
.vkuiIcon { display: inline-flex; flex-shrink: 0; }
|
||||
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
|
||||
|
||||
/* The main track alone can shrink. The header and footer always own their space. */
|
||||
.board { --hero-height: clamp(100px, 18vh, 230px); height: 100dvh; width: 100%; display: flex; flex-direction: column; overflow: hidden; padding: clamp(14px, 2vh, 28px) clamp(18px, 3vw, 64px) 0; background: #000000; }
|
||||
.board[data-row-count='5'], .board[data-row-count='6'] { --hero-height: clamp(82px, 14vh, 175px); }
|
||||
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; border-bottom: 1px solid var(--line); padding-bottom: clamp(12px, 1.8vh, 24px); view-transition-name: board-header; }
|
||||
.stop-heading { min-width: 0; }
|
||||
h1 { font-size: clamp(30px, 3.8vw, 76px); letter-spacing: -.05em; line-height: 1.08; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
|
||||
.stop-direction { color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 1.6vw, 32px); margin-top: 10px; line-height: 1.2; }
|
||||
.stop-direction svg { color: var(--accent); }
|
||||
.stop-meta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
|
||||
.weather-summary { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--muted); font-size: clamp(16px, 1.3vw, 26px); line-height: 1.2; }
|
||||
.weather-summary svg, .weather-summary strong { color: var(--accent); }
|
||||
.weather-summary strong { font-size: 1.25em; font-weight: 600; }
|
||||
.weather-summary small { font-size: .7em; }
|
||||
.header-right { display: grid; grid-template-columns: auto auto; column-gap: clamp(20px, 3vw, 64px); align-items: center; flex-shrink: 0; }
|
||||
.brand { grid-row: 1 / 3; display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.3vw, 44px); font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
|
||||
.official-mark { display: block; width: clamp(40px, 3.5vw, 70px); height: auto; flex-shrink: 0; }
|
||||
.official-mark svg { width: 100%; height: auto; }
|
||||
.brand-dot { color: var(--accent); }
|
||||
.clock { display: flex; gap: 10px; align-items: baseline; font-size: clamp(38px, 4.6vw, 90px); font-weight: 550; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
|
||||
.clock small { font-size: .42em; color: #bdbdbd; font-weight: 500; }
|
||||
.today { grid-column: 2; color: #bdbdbd; text-align: right; font-size: clamp(13px, 1.15vw, 22px); margin-top: 4px; white-space: nowrap; }
|
||||
.scene-container { flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; }
|
||||
.scene { width: 100%; height: 100%; min-height: 0; animation: scene-in 400ms ease-out both; }
|
||||
.departure-layout { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: clamp(10px, 1.6vh, 24px) 0; }
|
||||
.departure-content { flex: 1 1 0; min-height: 0; min-width: 0; display: grid; grid-template-rows: auto var(--hero-height) auto minmax(0, 1fr); }
|
||||
.section-heading, .next-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 0; }
|
||||
.eyebrow { font-size: clamp(12px, 1.05vw, 21px); font-weight: 650; letter-spacing: .12em; color: var(--muted); }
|
||||
.source-label { display: flex; align-items: center; gap: 8px; color: #c3c3c3; font-size: clamp(13px, 1.15vw, 23px); white-space: nowrap; }
|
||||
.source-label svg { width: 1.2em; height: 1.2em; }
|
||||
.hero-departure { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(18px, 2.4vw, 50px); min-height: 0; padding: 6px 0; }
|
||||
.route-badge { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; border: 1.5px solid #595959; border-radius: 12px; width: clamp(64px, 8vw, 150px); height: min(82px, calc(var(--row-height, 96px) * .76)); padding: 0 clamp(10px, 1vw, 18px); font-size: min(50px, calc(var(--row-height, 96px) * .48)); font-weight: 650; line-height: 1.12; font-variant-numeric: tabular-nums; letter-spacing: -.025em; overflow: hidden; }
|
||||
.route-badge-label { display: inline-block; flex-shrink: 0; white-space: nowrap; transform-origin: center; }
|
||||
.route-badge-large { width: calc(var(--hero-height) * 1.05); height: calc(var(--hero-height) - 12px); border: none; background: var(--accent); color: #000; border-radius: clamp(14px, 1.5vw, 28px); padding: 0 clamp(16px, 1.4vw, 28px); font-size: min(130px, calc(var(--hero-height) * .68)); }
|
||||
.hero-destination { min-width: 0; }
|
||||
.transport-kind { display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: min(30px, calc(var(--hero-height) * .17)); line-height: 1.2; margin-bottom: 5px; }
|
||||
.hero-destination h2 { font-size: min(5vw, calc(var(--hero-height) * .34)); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
|
||||
.hero-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; font-size: min(27px, calc(var(--hero-height) * .12)); color: #bdbdbd; margin-top: 4px; line-height: 1.25; }
|
||||
.schedule-time { border: 1px solid #505050; border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.countdown { display: flex; align-items: baseline; justify-content: flex-end; gap: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.countdown > span { font-size: min(68px, calc(var(--row-height, 92px) * .64)); font-weight: 550; line-height: 1.1; letter-spacing: -.035em; }
|
||||
.countdown small { color: #c3c3c3; font-size: min(27px, calc(var(--row-height, 92px) * .29)); }
|
||||
.countdown-large > span { color: var(--accent); font-size: min(154px, calc(var(--hero-height) * .86)); }
|
||||
.countdown-large small { font-size: clamp(19px, 2vw, 38px); }
|
||||
.countdown .countdown-now { font-size: min(40px, calc(var(--row-height, 92px) * .4)); }
|
||||
.countdown-large .countdown-now { font-size: min(72px, calc(var(--hero-height) * .44)); }
|
||||
.countdown-future { flex-direction: column; align-items: flex-end; gap: 1px; }
|
||||
.countdown-future > span { font-size: min(40px, calc(var(--row-height, 92px) * .4)); }
|
||||
.countdown-large.countdown-future > span { font-size: min(70px, calc(var(--hero-height) * .45)); }
|
||||
.next-heading { border-top: 1px solid var(--line); padding: clamp(8px, 1.2vh, 16px) 0; }
|
||||
.next-heading svg { color: #bdbdbd; }
|
||||
.page-indicator { color: var(--accent); font-size: 15px; }
|
||||
.departure-table { min-height: 0; display: grid; grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); overflow: hidden; }
|
||||
.departure-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(105px, .17fr); align-items: center; gap: clamp(15px, 2.4vw, 48px); min-height: 0; border-bottom: 1px solid #303030; }
|
||||
.departure-row:last-child { border-bottom: 0; }
|
||||
.row-destination { min-width: 0; min-height: 0; height: 100%; padding: 3px 0; display: flex; flex-direction: column; justify-content: center; }
|
||||
.row-destination h3 { flex-shrink: 0; font-size: min(54px, 3.5vw, calc(var(--row-height) * .43)); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; margin: 0; overflow-wrap: anywhere; }
|
||||
.row-destination p { margin: 5px 0 0; font-size: min(24px, 1.35vw, calc(var(--row-height) * .2)); line-height: 1.2; color: #bcbcbc; }
|
||||
.departure-table[data-rows='5'] .row-destination p, .departure-table[data-rows='6'] .row-destination p { display: none; }
|
||||
.row-time { color: #c3c3c3; font-size: min(46px, calc(var(--row-height) * .43)); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
|
||||
.transport-notice { display: flex; align-items: center; gap: 10px; color: var(--warning); padding: 10px 0 0; font-size: clamp(15px, 1.4vw, 26px); flex: 0 0 auto; }
|
||||
.empty-departures { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
|
||||
.empty-departures > svg { color: var(--accent); }
|
||||
.empty-departures h2 { font-size: clamp(24px, 3vw, 54px); font-weight: 550; margin: 10px 0; letter-spacing: -.04em; }
|
||||
.empty-departures p, .empty-following { color: #bdbdbd; font-size: clamp(14px, 1.5vw, 28px); margin: 0; line-height: 1.4; }
|
||||
.quiet-placeholder { display: none; }
|
||||
.offline-banner { display: flex; align-items: center; gap: 9px; color: var(--warning); font-size: clamp(13px, 1.2vw, 22px); padding-top: 9px; flex: 0 0 auto; }
|
||||
.offline-banner button { color: inherit; border: 0; background: none; display: flex; padding: 3px; margin-left: auto; }
|
||||
|
||||
/* Secondary content occupies the same bounded screen area. */
|
||||
.info-screen { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 18px 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #555 #000; }
|
||||
.info-intro { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
|
||||
.info-intro h2 { margin: 0; font-size: clamp(28px, 3.5vw, 62px); letter-spacing: -.045em; font-weight: 550; }
|
||||
.information-tabs { display: none; gap: 10px; }
|
||||
.information-tabs button { font-size: 14px; border: 1px solid #484848; background: transparent; padding: 8px 12px; border-radius: 8px; color: #bdbdbd; }
|
||||
.information-tabs button[aria-current='page'] { color: #000; border-color: var(--accent); background: var(--accent); }
|
||||
.info-grid { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
|
||||
.info-card { min-height: 0; border: 1px solid #3b3b3b; border-radius: 18px; padding: clamp(18px, 2vw, 38px); display: flex; flex-direction: column; overflow-y: auto; container-type: size; }
|
||||
.card-icon { color: var(--accent); margin-bottom: 18px; }
|
||||
.card-icon svg { width: 32px; height: 32px; }
|
||||
.info-card h3 { font-size: clamp(23px, 2vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; margin: 0 0 16px; }
|
||||
.info-card p { color: #c8c8c8; font-size: clamp(18px, 1.75vw, 32px); line-height: 1.5; margin: 0 0 20px; }
|
||||
.info-caption { display: flex; align-items: center; gap: 9px; font-size: clamp(14px, 1.3vw, 23px); color: #bdbdbd; margin-top: auto; line-height: 1.4; }
|
||||
.info-caption svg { color: var(--accent); }
|
||||
.route-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
|
||||
.route-cloud > span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 42px; padding: 0 10px; border: 1px solid #555; border-radius: 8px; font-size: clamp(20px, 1.5vw, 28px); font-weight: 550; }
|
||||
.routes-info p { margin: auto 0 0; font-size: clamp(16px, 1.4vw, 25px); }
|
||||
.ridebus-link { display: flex; gap: 10px; align-items: center; color: var(--accent); font-size: clamp(28px, 3vw, 54px); letter-spacing: -.045em; text-decoration: none; margin: auto 0 20px; }
|
||||
.cache-caption { display: flex; gap: 9px; align-items: center; color: var(--accent); font-size: clamp(15px, 1.25vw, 24px); line-height: 1.35; margin-top: auto; }
|
||||
.routes-info .schedule-explanation { margin: 12px 0 0; font-size: clamp(14px, 1.1vw, 21px); line-height: 1.35; }
|
||||
.weather-current { display: flex; align-items: center; gap: 20px; color: var(--accent); }
|
||||
.weather-current strong { font-size: clamp(64px, 5.5vw, 106px); line-height: 1.15; font-weight: 550; }
|
||||
.weather-info .weather-description { margin: 6px 0 12px; font-size: clamp(20px, 1.7vw, 32px); line-height: 1.2; }
|
||||
.weather-details { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #c3c3c3; font-size: clamp(15px, 1.15vw, 23px); }
|
||||
.weather-details > span { display: flex; align-items: center; gap: 6px; }
|
||||
.weather-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
|
||||
.weather-hours > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
|
||||
.weather-hours time { color: #bdbdbd; font-size: clamp(14px, 1vw, 22px); }
|
||||
.weather-hours svg { color: var(--accent); }
|
||||
.weather-hours strong { font-size: clamp(22px, 1.8vw, 34px); font-weight: 550; }
|
||||
.precipitation-chance { font-size: clamp(14px, 1vw, 21px); color: #c3c3c3; margin-top: 14px; line-height: 1.35; }
|
||||
.weather-attribution { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: clamp(12px, .8vw, 17px); color: #aaa; }
|
||||
.weather-attribution a { color: inherit; text-underline-offset: 3px; }
|
||||
.qr-info { align-items: center; text-align: center; }
|
||||
.qr-content { margin: auto 0; min-height: 0; display: flex; align-items: center; flex-direction: column; }
|
||||
.passenger-qr { width: clamp(130px, 23vh, 248px); max-width: 100%; aspect-ratio: 1; }
|
||||
.qr-content p { font-size: clamp(16px, 1.25vw, 24px); line-height: 1.3; margin: 14px 0; }
|
||||
.passenger-link { display: flex; align-items: center; gap: 9px; color: var(--accent); text-decoration: none; font-size: clamp(17px, 1.4vw, 27px); margin-top: auto; }
|
||||
@media (max-height: 850px) {
|
||||
.info-screen { padding: 12px 0; }
|
||||
.info-intro { margin-bottom: 12px; }
|
||||
.info-intro h2 { font-size: 32px; }
|
||||
.info-status { padding-top: 12px; font-size: 16px; }
|
||||
.persistent-next .countdown > span { font-size: 40px; }
|
||||
.routes-info .card-icon { display: none; }
|
||||
.routes-info .route-cloud { gap: 7px; }
|
||||
.routes-info .route-cloud > span { height: 32px; min-width: 40px; padding: 0 7px; font-size: 18px; }
|
||||
.info-card { padding: 20px; }
|
||||
}
|
||||
@container (max-height: 370px) {
|
||||
.info-card h3 { margin-bottom: 12px; font-size: 24px; }
|
||||
.weather-current strong { font-size: 56px; }
|
||||
.weather-current svg { width: 44px; height: 44px; }
|
||||
.weather-info .weather-description { font-size: 20px; margin: 4px 0 10px; }
|
||||
.weather-details { font-size: 14px; }
|
||||
.weather-hours { margin-top: 12px; padding-top: 10px; }
|
||||
.weather-hours > div { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 6px; }
|
||||
.weather-hours time { grid-column: 1 / -1; text-align: center; font-size: 14px; }
|
||||
.weather-hours strong { font-size: 21px; }
|
||||
.precipitation-chance { font-size: 14px; margin-top: 10px; }
|
||||
.weather-attribution { padding-top: 10px; font-size: 11px; }
|
||||
.routes-info .schedule-explanation { display: none; }
|
||||
}
|
||||
.info-status { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #c3c3c3; font-size: clamp(14px, 1.4vw, 25px); padding-top: 16px; line-height: 1.3; }
|
||||
.info-status svg { color: var(--accent); }
|
||||
.info-notices { display: grid; gap: 18px; }
|
||||
.notice { padding: 24px; border: 1px solid #586447; border-radius: 16px; }
|
||||
.notice-warning { border-color: #76603a; }
|
||||
.notice-title { color: var(--accent); display: flex; align-items: center; gap: 10px; font-size: 20px; }
|
||||
.notice-warning .notice-title, .notice-warning .notice-routes { color: var(--warning); }
|
||||
.notice-routes { margin-top: 15px; font-size: 24px; }
|
||||
.notice h3 { font-size: clamp(24px, 2.4vw, 42px); font-weight: 600; line-height: 1.2; margin: 15px 0; }
|
||||
.notice p { font-size: clamp(18px, 1.8vw, 32px); line-height: 1.5; color: #d1d1d1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
|
||||
.persistent-next { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding: 12px 0; flex: 0 0 auto; --row-height: 72px; }
|
||||
.persistent-next .route-badge { width: 78px; height: 48px; font-size: 31px; padding: 0 10px; border-radius: 9px; }
|
||||
.persistent-next strong { min-width: 0; font-weight: 600; font-size: clamp(21px, 2.4vw, 42px); line-height: 1.15; }
|
||||
.persistent-next .countdown { margin-left: auto; }
|
||||
.persistent-next .countdown-future { flex-direction: row; align-items: baseline; }
|
||||
.ad-screen { padding: 4vh 0; height: 100%; overflow-y: auto; }
|
||||
.ad-screen h2 { font-size: clamp(44px, 7vw, 135px); color: var(--accent); line-height: 1.06; letter-spacing: -.055em; font-weight: 550; margin: 4vh 0 3vh; overflow-wrap: anywhere; }
|
||||
.ad-screen p { font-size: clamp(22px, 2.7vw, 50px); color: #ccc; line-height: 1.4; margin: 0; }
|
||||
.ad-signature { display: flex; align-items: center; gap: 15px; color: #bbb; margin-top: 4vh; font-size: 22px; }
|
||||
|
||||
/* Footer is a normal flex item, never an overlay. */
|
||||
.board-footer { flex: 0 0 auto; position: relative; border-top: 1px solid var(--line); view-transition-name: board-footer; }
|
||||
.cycle-progress { position: absolute; top: -1px; width: 100%; height: 1px; }
|
||||
.cycle-progress > span { display: block; width: 100%; height: 1px; background: var(--accent); transform-origin: left; transition: transform 1s linear; }
|
||||
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 8px 0; }
|
||||
.scene-navigation { display: flex; align-items: center; gap: 22px; }
|
||||
.scene-navigation button { border: 0; padding: 4px 0; background: none; color: #bdbdbd; display: flex; align-items: center; gap: 9px; font-size: clamp(13px, 1.05vw, 20px); white-space: nowrap; }
|
||||
.scene-navigation button.active { color: #fff; }
|
||||
.scene-index { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #555; border-radius: 50%; font-size: 13px; }
|
||||
.active .scene-index { color: #000; background: var(--accent); border-color: var(--accent); }
|
||||
.footer-status { display: flex; align-items: center; gap: 8px; color: #aaa; margin-left: auto; font-size: clamp(12px, .95vw, 18px); }
|
||||
.board-controls { display: flex; gap: 6px; flex-shrink: 0; opacity: 1; transition: opacity 250ms ease, transform 250ms ease; }
|
||||
.controls-idle, .controls-idle * { cursor: none; }
|
||||
.controls-idle .board-controls { opacity: 0; transform: translateY(3px); pointer-events: none; }
|
||||
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; color: #c0c0c0; border: 1px solid transparent; border-radius: 9px; background: none; transition: color 180ms, border-color 180ms; }
|
||||
.icon-button:hover { color: #fff; border-color: #555; }
|
||||
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); max-width: 90vw; z-index: 20; padding: 15px 22px; background: #171717; border: 1px solid #555; border-radius: 12px; font-size: 15px; }
|
||||
|
||||
/* Rolling digits keep tabular widths; only changed positions animate. */
|
||||
.numeric-text { display: inline-block; vertical-align: middle; line-height: 1.12; letter-spacing: 0; }
|
||||
.numeric-track { display: inline-flex; align-items: center; height: 1.12em; white-space: nowrap; }
|
||||
.numeric-glyph { position: relative; display: inline-block; width: .62em; height: 1.12em; overflow: hidden; line-height: 1.12; text-align: center; flex-shrink: 0; }
|
||||
.numeric-symbol { display: inline-block; line-height: 1.12; }
|
||||
.numeric-current { display: block; height: 1.12em; }
|
||||
.numeric-old { position: absolute; left: 0; top: 0; width: 100%; height: 1.12em; }
|
||||
.numeric-glyph[data-rolling='true'] .numeric-current { animation: digit-up-in 380ms cubic-bezier(.22,.8,.22,1) both; }
|
||||
.numeric-glyph[data-rolling='true'] .numeric-old { animation: digit-up-out 380ms cubic-bezier(.22,.8,.22,1) both; }
|
||||
.numeric-glyph[data-direction='down'][data-rolling='true'] .numeric-current { animation-name: digit-down-in; }
|
||||
.numeric-glyph[data-direction='down'][data-rolling='true'] .numeric-old { animation-name: digit-down-out; }
|
||||
.numeric-vanish { width: 0; animation: digit-collapse 380ms ease both; }
|
||||
@keyframes digit-up-in { from { transform: translateY(105%); } to { transform: translateY(0); } }
|
||||
@keyframes digit-up-out { from { transform: translateY(0); } to { transform: translateY(-105%); } }
|
||||
@keyframes digit-down-in { from { transform: translateY(-105%); } to { transform: translateY(0); } }
|
||||
@keyframes digit-down-out { from { transform: translateY(0); } to { transform: translateY(105%); } }
|
||||
@keyframes digit-collapse { from { width: .62em; } to { width: 0; } }
|
||||
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
|
||||
|
||||
/* Operator settings may scroll independently of the board. */
|
||||
.settings-dialog { width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 0; color: #eee; background: #0a0a0a; border: 1px solid #444; border-radius: 20px; overflow: auto; box-shadow: 0 25px 90px #000; }
|
||||
.settings-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
|
||||
.settings-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 25px 28px; border-bottom: 1px solid var(--line); }
|
||||
.settings-heading h2 { margin: 8px 0 0; font-size: 27px; font-weight: 600; letter-spacing: -.04em; }
|
||||
.settings-heading .eyebrow { font-size: 11px; }
|
||||
.settings-body { padding: 0 28px 20px; }
|
||||
.settings-body section { border-bottom: 1px solid #303030; padding: 21px 0 14px; }
|
||||
.settings-body h3 { margin: 0 0 17px; font-size: 18px; font-weight: 650; }
|
||||
.settings-note { color: #b5b5b5; font-size: 13px; margin-bottom: 18px; }
|
||||
.settings-body label { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #c8c8c8; margin: 17px 0; }
|
||||
.settings-body select, .settings-body input:not([type='checkbox']):not([type='radio']), .settings-body textarea { width: 100%; color: #f5f5f5; background: #141414; border: 1px solid #555; border-radius: 8px; padding: 12px; font-size: 15px; }
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.settings-body .switch-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; color: #eee; }
|
||||
.switch-row small { display: block; color: #b3b3b3; margin-top: 5px; font-size: 12px; line-height: 1.5; }
|
||||
.switch-row input { appearance: none; position: relative; flex-shrink: 0; margin: 0; width: 40px; height: 24px; background: #303030; border: 1px solid #606060; border-radius: 20px; transition: background 180ms; cursor: pointer; }
|
||||
.switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #ccc; transition: transform 180ms; }
|
||||
.switch-row input:checked { background: var(--accent); border-color: var(--accent); }
|
||||
.switch-row input:checked::after { transform: translateX(16px); background: #000; }
|
||||
.theme-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.settings-body .theme-option { flex-direction: row; align-items: center; gap: 10px; padding: 12px; margin: 0; border: 1px solid #414141; border-radius: 9px; cursor: pointer; }
|
||||
.theme-option:has(input:checked) { border-color: var(--accent); color: #fff; }
|
||||
.theme-option input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
|
||||
.theme-swatch { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
|
||||
.tiny-tag { font-size: 9px; color: var(--accent); border: 1px solid #555; border-radius: 4px; padding: 3px 5px; margin-left: 7px; letter-spacing: .07em; }
|
||||
.text-button { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; color: #c3c3c3; font-size: 14px; padding: 10px 0; }
|
||||
.settings-body > .text-button { margin-top: 15px; }
|
||||
.form-hint { font-size: 12px; color: #b3b3b3; line-height: 1.6; }
|
||||
.settings-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--line); }
|
||||
.primary-button { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; border: 0; border-radius: 9px; padding: 13px 22px; font-size: 15px; font-weight: 650; }
|
||||
|
||||
@media (max-width: 1050px) { .brand-word { display: none; } .header-right { column-gap: 18px; } .row-destination p { display: none; } .footer-status { max-width: 180px; font-size: 12px; } }
|
||||
@media (orientation: portrait), (max-width: 850px) {
|
||||
.board { padding: 16px 22px 0; }
|
||||
h1 { font-size: clamp(30px, 5.7vw, 62px); }
|
||||
.stop-direction { font-size: clamp(16px, 3vw, 28px); }
|
||||
.brand-word { display: none; }
|
||||
.clock { font-size: clamp(35px, 6.2vw, 68px); }
|
||||
.today { font-size: clamp(12px, 2.1vw, 20px); }
|
||||
.hero-destination h2 { font-size: min(6vw, calc(var(--hero-height) * .33)); }
|
||||
.transport-kind { font-size: clamp(14px, 2.5vw, 24px); }
|
||||
.hero-details { font-size: clamp(12px, 2.4vw, 22px); }
|
||||
.hero-departure { gap: 18px; }
|
||||
.countdown-large small { font-size: clamp(17px, 3vw, 28px); }
|
||||
.countdown-large .countdown-now { font-size: min(5.2vw, calc(var(--hero-height) * .4)); }
|
||||
.row-destination h3 { font-size: min(46px, 5.7vw, calc(var(--row-height) * .43)); }
|
||||
.row-time { font-size: min(36px, calc(var(--row-height) * .35)); }
|
||||
.departure-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 18px; }
|
||||
.departure-row .route-badge { width: clamp(68px, 12vw, 126px); }
|
||||
.info-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
|
||||
.information-tabs { display: flex; }
|
||||
.info-grid { grid-template-columns: 1fr; }
|
||||
.info-card:not([data-active='true']) { display: none; }
|
||||
.info-card { padding: 24px; }
|
||||
.info-card h3 { font-size: clamp(26px, 4vw, 40px); }
|
||||
.info-card p { font-size: clamp(20px, 3.2vw, 34px); }
|
||||
.route-cloud > span { height: 44px; min-width: 54px; font-size: 24px; }
|
||||
.info-caption, .info-status { font-size: clamp(15px, 2.4vw, 24px); }
|
||||
.persistent-next { gap: 13px; }
|
||||
.persistent-next > .eyebrow, .persistent-next > .source-label { display: none; }
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.board { padding: 12px 16px 0; }
|
||||
.board-header { gap: 14px; padding-bottom: 12px; }
|
||||
.header-right { column-gap: 10px; }
|
||||
.official-mark { width: 32px; }
|
||||
.clock { font-size: clamp(28px, 6.8vw, 44px); gap: 4px; }
|
||||
h1 { font-size: clamp(27px, 6.5vw, 42px); }
|
||||
.today { font-size: 11px; }
|
||||
.stop-direction { font-size: 15px; margin-top: 7px; gap: 7px; }
|
||||
.stop-direction svg { width: 18px; height: 18px; }
|
||||
.stop-meta { gap: 5px 12px; }
|
||||
.weather-summary { font-size: 13px; gap: 6px; margin-top: 7px; }
|
||||
.weather-summary svg { width: 20px; height: 20px; }
|
||||
.weather-summary > span { display: none; }
|
||||
.source-label { font-size: 12px; gap: 5px; }
|
||||
.eyebrow { font-size: 11px; }
|
||||
.hero-departure { gap: 13px; }
|
||||
.hero-destination h2 { font-size: min(6.3vw, calc(var(--hero-height) * .32)); }
|
||||
.transport-kind { font-size: 12px; gap: 5px; margin-bottom: 4px; }
|
||||
.transport-kind svg { width: 18px; height: 18px; }
|
||||
.hero-details { display: none; }
|
||||
.hero-details .schedule-time { display: none; }
|
||||
.route-badge-large { width: calc(var(--hero-height) * .72); padding: 0 12px; font-size: calc(var(--hero-height) * .55); }
|
||||
.countdown-large > span { font-size: calc(var(--hero-height) * .6); }
|
||||
.countdown-future > span { font-size: min(24px, calc(var(--row-height) * .36)); }
|
||||
.countdown-large.countdown-future > span { font-size: min(28px, calc(var(--hero-height) * .35)); }
|
||||
.countdown-large .countdown-now { font-size: 5vw; }
|
||||
.countdown-large small { font-size: 14px; }
|
||||
.countdown { gap: 5px; }
|
||||
.departure-row { gap: 12px; }
|
||||
.departure-row .route-badge { width: 65px; padding: 0 9px; }
|
||||
.row-time { display: none; }
|
||||
.departure-row { grid-template-columns: auto minmax(0, 1fr) auto; }
|
||||
.row-destination h3 { font-size: min(5.8vw, calc(var(--row-height) * .43)); }
|
||||
.countdown > span { font-size: min(36px, calc(var(--row-height) * .6)); }
|
||||
.countdown small { font-size: min(16px, calc(var(--row-height) * .25)); }
|
||||
.countdown-large > span { font-size: calc(var(--hero-height) * .6); }
|
||||
.scene-navigation { gap: 12px; }
|
||||
.scene-navigation button > span:last-child { display: none; }
|
||||
.footer-main { min-height: 50px; gap: 8px; padding: 6px 0; }
|
||||
.footer-status { font-size: 10px; max-width: 95px; }
|
||||
.board-controls { gap: 3px; }
|
||||
.icon-button { width: 32px; height: 32px; }
|
||||
.board-controls svg { width: 21px; height: 21px; }
|
||||
.persistent-next { --row-height: 54px; gap: 10px; padding: 9px 0; }
|
||||
.persistent-next .route-badge { height: 38px; width: 64px; font-size: 26px; }
|
||||
.persistent-next strong { font-size: 18px; }
|
||||
.persistent-next .countdown > span { font-size: 29px; }
|
||||
.persistent-next .countdown-now { font-size: 19px; }
|
||||
.info-screen { padding: 12px 0; }
|
||||
.info-intro { gap: 10px; margin-bottom: 12px; }
|
||||
.info-intro h2 { font-size: 30px; }
|
||||
.information-tabs { gap: 7px; }
|
||||
.information-tabs button { font-size: 12px; padding: 7px 10px; }
|
||||
.info-card { padding: 18px; }
|
||||
.card-icon { margin-bottom: 10px; }
|
||||
.card-icon svg { width: 25px; height: 25px; }
|
||||
.info-card h3 { font-size: 24px; margin-bottom: 12px; }
|
||||
.info-card p { font-size: 19px; }
|
||||
.weather-current strong { font-size: 68px; }
|
||||
.weather-info .weather-description { font-size: 20px; }
|
||||
.weather-hours { margin-top: 14px; padding-top: 10px; }
|
||||
.weather-attribution { padding-top: 12px; }
|
||||
.routes-info .schedule-explanation { display: none; }
|
||||
.qr-content p { font-size: 16px; margin: 12px 0; }
|
||||
.passenger-qr { width: min(200px, 25vh); }
|
||||
.route-cloud { gap: 7px; }
|
||||
.route-cloud > span { height: 35px; min-width: 43px; padding: 0 7px; font-size: 19px; }
|
||||
.info-status { font-size: 13px; padding-top: 12px; }
|
||||
.transport-notice, .offline-banner { font-size: 12px; }
|
||||
.settings-heading, .settings-body, .settings-actions { padding-left: 20px; padding-right: 20px; }
|
||||
}
|
||||
@media (max-height: 620px) {
|
||||
.board { --hero-height: 90px; padding-top: 10px; }
|
||||
.board[data-row-count='5'], .board[data-row-count='6'] { --hero-height: 76px; }
|
||||
.board-header { padding-bottom: 10px; }
|
||||
.clock { font-size: 37px; }
|
||||
h1 { font-size: 32px; }
|
||||
.stop-direction { font-size: 15px; }
|
||||
.official-mark { width: 35px; }
|
||||
.brand { font-size: 26px; }
|
||||
.today { font-size: 12px; }
|
||||
.info-card { padding: 16px; }
|
||||
.card-icon { display: none; }
|
||||
.info-intro h2 { font-size: 28px; }
|
||||
}
|
||||
@media (orientation: portrait) and (max-height: 850px) {
|
||||
.routes-info .card-icon, .routes-info p { display: none; }
|
||||
.routes-info .route-cloud { margin-bottom: 0; gap: 6px; }
|
||||
.routes-info .route-cloud > span { height: 32px; min-width: 40px; font-size: 18px; }
|
||||
}
|
||||
@media (orientation: portrait) and (max-height: 700px) {
|
||||
.weather-info { padding: 14px; }
|
||||
.info-intro h2 { font-size: 26px; }
|
||||
.info-intro { gap: 8px; }
|
||||
.info-status { font-size: 12px; padding-top: 8px; line-height: 1.25; }
|
||||
.weather-info h3 { margin-bottom: 6px; }
|
||||
.weather-current strong { font-size: 48px; }
|
||||
.weather-current svg { width: 40px; height: 40px; }
|
||||
.weather-info .weather-description { font-size: 18px; margin: 4px 0 8px; }
|
||||
.weather-hours { margin-top: 8px; padding-top: 6px; }
|
||||
.weather-hours > div { gap: 5px; }
|
||||
.precipitation-chance { margin-top: 8px; }
|
||||
.weather-attribution { padding-top: 6px; font-size: 11px; }
|
||||
.passenger-qr { width: 150px; }
|
||||
.qr-info h3 { font-size: 23px; }
|
||||
}
|
||||
::view-transition { pointer-events: none; }
|
||||
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; }
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
|
||||
.numeric-old { visibility: hidden; }
|
||||
.numeric-current { transform: none !important; }
|
||||
}
|
||||
Reference in New Issue
Block a user