2026-06-16 16:45:59 +02:00

463 lines
8.2 KiB
CSS

:root {
--page-background: #eef4e9;
--surface: #fff;
--primary: #315d3a;
--primary-dark: #24462b;
--text: #1f3022;
--muted: #526258;
--notice: #fff8d6;
--notice-border: #d4a72c;
--focus: #1e6fba;
--footer-height: 5.25rem;
}
html,
body {
min-height: 100%;
background: var(--page-background);
color: var(--text);
overscroll-behavior-y: contain;
}
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
-webkit-tap-highlight-color: transparent;
}
button,
input,
audio {
font: inherit;
}
button,
[data-page-target] {
touch-action: manipulation;
}
[hidden] {
display: none !important;
}
#app-shell,
.app-page {
min-height: 100dvh;
}
.app-page {
background: var(--page-background);
}
#app-shell.has-navigation .app-page {
padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
}
.app-page > header {
position: sticky;
top: 0;
z-index: 20;
display: grid;
grid-template-columns: minmax(0, 1fr);
align-items: center;
min-height: 3.5rem;
padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
background: var(--primary);
color: #fff;
box-shadow: 0 .15rem .5rem rgba(0, 0, 0, .2);
}
.app-page > header:has(.back-button) {
grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem;
gap: .5rem;
}
.app-page > header:has(.back-button)::after {
content: "";
}
.app-page > header h1 {
min-width: 0;
margin: 0;
padding: .85rem 0;
overflow: hidden;
font-size: 1.25rem;
line-height: 1.2;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.app-page > header .back-button.ui-button {
width: 5.5rem;
min-height: 2.75rem;
margin: 0;
border-color: rgba(255, 255, 255, .45);
background: rgba(255, 255, 255, .12);
color: #fff;
}
.content {
width: min(48rem, 100%);
box-sizing: border-box;
margin: 0 auto;
padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.notice {
margin: 0 0 1rem;
padding: .75rem;
border-left: .35rem solid var(--notice-border);
border-radius: .25rem;
background: var(--notice);
}
#routes-page .content > section + section {
margin-top: 2rem;
padding-top: 1.25rem;
border-top: 1px solid #c8d3ca;
}
#routes-page h2 {
margin-bottom: .75rem;
}
#routes-page label {
display: block;
margin-bottom: .35rem;
color: var(--muted);
font-size: .9rem;
font-weight: 600;
}
.search-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: .35rem;
}
#route-search {
width: 100%;
min-height: 3rem;
box-sizing: border-box;
padding: .65rem .75rem;
border: 1px solid #aebcaf;
border-radius: .3rem;
background: var(--surface);
color: var(--text);
font-size: 1rem;
}
#route-search:focus {
outline: .2rem solid var(--focus);
outline-offset: .1rem;
}
#clear-route-search.ui-button {
min-width: 3rem;
min-height: 3rem;
margin: 0;
}
#all-routes-summary {
margin: .75rem 0;
color: var(--muted);
font-size: .9rem;
}
.ui-autocomplete {
max-height: min(16rem, 45dvh);
overflow: auto;
}
.route-list {
display: grid;
gap: .75rem;
margin: 0;
padding: 0;
list-style: none;
}
.route-list button {
display: grid;
width: 100%;
min-height: 3.5rem;
box-sizing: border-box;
gap: .25rem;
padding: 1rem;
border: 1px solid #c8d3ca;
border-radius: .65rem;
background: var(--surface);
color: var(--text);
box-shadow: 0 .12rem .35rem rgba(0, 0, 0, .08);
text-align: left;
cursor: pointer;
}
.route-list button > strong {
font-size: 1.05rem;
}
.route-list button > span,
.route-list button > small {
color: var(--muted);
}
.route-list button > small {
margin-top: .25rem;
font-weight: 600;
}
.route-list button:focus-visible,
.ui-button:focus-visible {
outline: .2rem solid var(--focus);
outline-offset: .15rem;
}
.route-list button:disabled {
cursor: progress;
opacity: .65;
}
.route-list > li > p {
margin: 0;
padding: 1rem;
border-radius: .5rem;
background: var(--surface);
color: var(--muted);
}
.route-facts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .5rem;
margin: 1rem 0;
}
.route-facts div {
padding: .75rem;
border-radius: .5rem;
background: var(--surface);
text-align: center;
}
.route-facts dt {
color: var(--muted);
font-size: .8rem;
}
.route-facts dd {
margin: .25rem 0 0;
font-weight: 700;
}
.route-controls {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: .5rem;
margin: 0 0 1rem;
}
.route-controls button {
display: grid;
place-items: center;
min-width: 0;
min-height: 3.25rem;
box-sizing: border-box;
padding: .55rem;
border: 1px solid transparent;
border-radius: .55rem;
box-shadow: 0 .12rem .35rem rgba(0, 0, 0, .12);
cursor: pointer;
touch-action: manipulation;
}
.route-controls button:focus-visible {
outline: .2rem solid var(--focus);
outline-offset: .15rem;
}
.route-controls button:disabled {
cursor: default;
filter: grayscale(.65);
opacity: .42;
}
.route-controls img {
width: 2rem;
height: 2rem;
pointer-events: none;
}
#start-route {
background: var(--primary);
border-color: var(--primary-dark);
}
#pause-route {
background: #9a6500;
border-color: #704a00;
}
#stop-route {
background: #9b2c2c;
border-color: #701f1f;
}
#slideshow {
overflow: hidden;
border-radius: .75rem;
background: #172019;
color: #fff;
touch-action: pan-y;
}
#slideshow figure {
margin: 0;
}
#slideshow img {
display: block;
width: 100%;
height: min(55dvh, 28rem);
object-fit: contain;
background: #111;
}
#slideshow figcaption {
min-height: 1.4rem;
padding: .5rem .75rem;
}
#slide-controls {
display: grid;
grid-template-columns: auto minmax(4rem, 1fr) auto;
align-items: center;
width: 100%;
box-sizing: border-box;
padding: .5rem;
text-align: center;
}
#slide-controls.ui-controlgroup-horizontal .ui-controlgroup-item {
float: none;
}
#slide-controls .ui-button {
min-width: 3rem;
min-height: 3rem;
}
#slide-position {
display: grid;
align-items: center;
min-height: 2.75rem;
}
#poi-audio {
width: 100%;
margin-top: 1rem;
}
#navigation-footer {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 40;
display: grid;
grid-template-columns: 3.75rem minmax(0, 1fr);
align-items: center;
min-height: var(--footer-height);
box-sizing: border-box;
gap: .85rem;
padding: .6rem max(1rem, env(safe-area-inset-right)) calc(.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
border-top: 1px solid rgba(255, 255, 255, .35);
background: rgba(36, 70, 43, .96);
color: #fff;
box-shadow: 0 -.25rem .8rem rgba(0, 0, 0, .2);
backdrop-filter: blur(.4rem);
}
#navigation-arrow {
width: 3.5rem;
height: 3.5rem;
fill: currentColor;
transform: rotate(0deg);
transform-origin: 50% 50%;
transition: transform 180ms linear;
will-change: transform;
}
#navigation-footer p {
display: grid;
gap: .15rem;
margin: 0;
}
#navigation-mode {
overflow: hidden;
font-size: .78rem;
text-overflow: ellipsis;
white-space: nowrap;
}
#navigation-distance {
font-size: 1.5rem;
line-height: 1.1;
}
@media (hover: hover) {
.route-list button:hover {
border-color: var(--primary);
box-shadow: 0 .2rem .55rem rgba(0, 0, 0, .13);
}
.app-page > header .back-button.ui-button:hover,
.app-page > header .back-button.ui-button:focus,
#start-route:not(:disabled):hover,
#start-route:not(:disabled):focus {
background: var(--primary-dark);
color: #fff;
}
#pause-route:not(:disabled):hover,
#pause-route:not(:disabled):focus {
background: #704a00;
}
#stop-route:not(:disabled):hover,
#stop-route:not(:disabled):focus {
background: #701f1f;
}
}
@media (max-width: 32rem) {
.search-row {
grid-template-columns: minmax(0, 1fr) 3rem;
}
.route-facts {
gap: .35rem;
}
.route-facts div {
padding: .6rem .25rem;
}
}
@media (max-width: 22rem) {
.route-facts {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: .01ms !important;
}
}