2026-06-16 10:31:41 +02:00

267 lines
4.6 KiB
CSS

:root {
--page-background: #eef4e9;
--surface: #ffffff;
--primary: #315d3a;
--primary-dark: #24462b;
--text: #1f3022;
--muted: #526258;
--notice: #fff8d6;
--notice-border: #d4a72c;
--focus: #1e6fba;
}
html, body {
min-height: 100%;
background: var(--page-background);
color: var(--text);
}
body {
margin: 0;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, audio {
font: inherit;
}
[hidden] {
display: none !important;
}
#app-shell {
min-height: 100vh;
}
.app-page {
min-height: 100vh;
background: var(--page-background);
}
.app-header {
position: sticky;
top: 0;
z-index: 20;
display: grid;
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-header h1 {
margin: 0;
padding: .85rem 0;
font-size: 1.25rem;
line-height: 1.2;
text-align: center;
}
.app-header-with-back {
grid-template-columns: auto minmax(0, 1fr) auto;
gap: .5rem;
}
.app-header-with-back::after {
content: "";
width: 5.5rem;
}
.app-header .back-button.ui-button {
width: 5.5rem;
margin: 0;
border-color: rgba(255, 255, 255, .45);
background: rgba(255, 255, 255, .12);
color: #fff;
}
.app-header .back-button.ui-button:hover,
.app-header .back-button.ui-button:focus {
border-color: #fff;
background: rgba(255, 255, 255, .22);
color: #fff;
}
.app-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));
}
.app-footer {
padding: .85rem max(1rem, env(safe-area-inset-right)) calc(.85rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
background: var(--primary);
color: #fff;
text-align: center;
}
.notice {
margin: 0 0 1rem;
padding: .75rem;
border-left: .35rem solid var(--notice-border);
border-radius: .25rem;
background: var(--notice);
}
.card-list {
display: grid;
gap: .75rem;
margin: 0;
padding: 0;
list-style: none;
}
.card-link {
display: grid;
width: 100%;
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;
}
.card-link:hover {
border-color: var(--primary);
box-shadow: 0 .2rem .55rem rgba(0, 0, 0, .13);
}
.card-link:focus-visible {
outline: .2rem solid var(--focus);
outline-offset: .15rem;
}
.card-link:disabled {
cursor: progress;
opacity: .65;
}
.card-title {
font-size: 1.05rem;
font-weight: 700;
}
.card-description,
.route-distance {
color: var(--muted);
}
.route-distance {
margin-top: .25rem;
font-size: .9rem;
font-weight: 600;
}
.empty-list {
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;
}
#start-tracking.ui-button {
width: 100%;
margin: 0 0 1rem;
border-color: var(--primary-dark);
background: var(--primary);
color: #fff;
}
#start-tracking.ui-button:hover,
#start-tracking.ui-button:focus {
background: var(--primary-dark);
color: #fff;
}
.slideshow {
overflow: hidden;
border-radius: .75rem;
background: #172019;
color: #fff;
}
.slideshow figure {
margin: 0;
}
.slideshow img {
display: block;
width: 100%;
height: min(55vh, 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-position {
display: grid;
align-items: center;
min-height: 2.2rem;
}
#poi-audio {
width: 100%;
margin-top: 1rem;
}
.ui-button:focus-visible {
outline: .2rem solid var(--focus);
outline-offset: .12rem;
}
@media (max-width: 420px) {
.route-facts {
grid-template-columns: 1fr;
}
}