1104 lines
32 KiB
CSS
1104 lines
32 KiB
CSS
:root {
|
|
/* Colors from Tailwind CSS: https://github.com/tailwindlabs/tailwindcss
|
|
|
|
MIT License
|
|
|
|
Copyright (c) Tailwind Labs, Inc.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
*/
|
|
--color-black: #000;
|
|
--color-white: #fff;
|
|
--color-slate-50: #f8fafc;
|
|
--color-slate-100: #f1f5f9;
|
|
--color-slate-200: #e2e8f0;
|
|
--color-slate-300: #cbd5e1;
|
|
--color-slate-400: #94a3b8;
|
|
--color-slate-500: #64748b;
|
|
--color-slate-600: #475569;
|
|
--color-slate-700: #334155;
|
|
--color-slate-800: #1e293b;
|
|
--color-slate-900: #0f172a;
|
|
--color-slate-950: #020617;
|
|
--color-gray-50: #f9fafb;
|
|
--color-gray-100: #f3f4f6;
|
|
--color-gray-200: #e5e7eb;
|
|
--color-gray-300: #d1d5db;
|
|
--color-gray-400: #9ca3af;
|
|
--color-gray-500: #6b7280;
|
|
--color-gray-600: #4b5563;
|
|
--color-gray-700: #374151;
|
|
--color-gray-800: #1f2937;
|
|
--color-gray-900: #111827;
|
|
--color-gray-950: #030712;
|
|
--color-zinc-50: #fafafa;
|
|
--color-zinc-100: #f4f4f5;
|
|
--color-zinc-200: #e4e4e7;
|
|
--color-zinc-300: #d4d4d8;
|
|
--color-zinc-400: #a1a1aa;
|
|
--color-zinc-500: #71717a;
|
|
--color-zinc-600: #52525b;
|
|
--color-zinc-700: #3f3f46;
|
|
--color-zinc-800: #27272a;
|
|
--color-zinc-900: #18181b;
|
|
--color-zinc-950: #09090b;
|
|
--color-neutral-50: #fafafa;
|
|
--color-neutral-100: #f5f5f5;
|
|
--color-neutral-200: #e5e5e5;
|
|
--color-neutral-300: #d4d4d4;
|
|
--color-neutral-400: #a3a3a3;
|
|
--color-neutral-500: #737373;
|
|
--color-neutral-600: #525252;
|
|
--color-neutral-700: #404040;
|
|
--color-neutral-800: #262626;
|
|
--color-neutral-900: #171717;
|
|
--color-neutral-950: #0a0a0a;
|
|
--color-stone-50: #fafaf9;
|
|
--color-stone-100: #f5f5f4;
|
|
--color-stone-200: #e7e5e4;
|
|
--color-stone-300: #d6d3d1;
|
|
--color-stone-400: #a8a29e;
|
|
--color-stone-500: #78716c;
|
|
--color-stone-600: #57534e;
|
|
--color-stone-700: #44403c;
|
|
--color-stone-800: #292524;
|
|
--color-stone-900: #1c1917;
|
|
--color-stone-950: #0c0a09;
|
|
--color-red-50: #fef2f2;
|
|
--color-red-100: #fee2e2;
|
|
--color-red-200: #fecaca;
|
|
--color-red-300: #fca5a5;
|
|
--color-red-400: #f87171;
|
|
--color-red-500: #ef4444;
|
|
--color-red-600: #dc2626;
|
|
--color-red-700: #b91c1c;
|
|
--color-red-800: #991b1b;
|
|
--color-red-900: #7f1d1d;
|
|
--color-red-950: #450a0a;
|
|
--color-orange-50: #fff7ed;
|
|
--color-orange-100: #ffedd5;
|
|
--color-orange-200: #fed7aa;
|
|
--color-orange-300: #fdba74;
|
|
--color-orange-400: #fb923c;
|
|
--color-orange-500: #f97316;
|
|
--color-orange-600: #ea580c;
|
|
--color-orange-700: #c2410c;
|
|
--color-orange-800: #9a3412;
|
|
--color-orange-900: #7c2d12;
|
|
--color-orange-950: #431407;
|
|
--color-amber-50: #fffbeb;
|
|
--color-amber-100: #fef3c7;
|
|
--color-amber-200: #fde68a;
|
|
--color-amber-300: #fcd34d;
|
|
--color-amber-400: #fbbf24;
|
|
--color-amber-500: #f59e0b;
|
|
--color-amber-600: #d97706;
|
|
--color-amber-700: #b45309;
|
|
--color-amber-800: #92400e;
|
|
--color-amber-900: #78350f;
|
|
--color-amber-950: #451a03;
|
|
--color-yellow-50: #fefce8;
|
|
--color-yellow-100: #fef9c3;
|
|
--color-yellow-200: #fef08a;
|
|
--color-yellow-300: #fde047;
|
|
--color-yellow-400: #facc15;
|
|
--color-yellow-500: #eab308;
|
|
--color-yellow-600: #ca8a04;
|
|
--color-yellow-700: #a16207;
|
|
--color-yellow-800: #854d0e;
|
|
--color-yellow-900: #713f12;
|
|
--color-yellow-950: #422006;
|
|
--color-lime-50: #f7fee7;
|
|
--color-lime-100: #ecfccb;
|
|
--color-lime-200: #d9f99d;
|
|
--color-lime-300: #bef264;
|
|
--color-lime-400: #a3e635;
|
|
--color-lime-500: #84cc16;
|
|
--color-lime-600: #65a30d;
|
|
--color-lime-700: #4d7c0f;
|
|
--color-lime-800: #3f6212;
|
|
--color-lime-900: #365314;
|
|
--color-lime-950: #1a2e05;
|
|
--color-green-50: #f0fdf4;
|
|
--color-green-100: #dcfce7;
|
|
--color-green-200: #bbf7d0;
|
|
--color-green-300: #86efac;
|
|
--color-green-400: #4ade80;
|
|
--color-green-500: #22c55e;
|
|
--color-green-600: #16a34a;
|
|
--color-green-700: #15803d;
|
|
--color-green-800: #166534;
|
|
--color-green-900: #14532d;
|
|
--color-green-950: #052e16;
|
|
--color-emerald-50: #ecfdf5;
|
|
--color-emerald-100: #d1fae5;
|
|
--color-emerald-200: #a7f3d0;
|
|
--color-emerald-300: #6ee7b7;
|
|
--color-emerald-400: #34d399;
|
|
--color-emerald-500: #10b981;
|
|
--color-emerald-600: #059669;
|
|
--color-emerald-700: #047857;
|
|
--color-emerald-800: #065f46;
|
|
--color-emerald-900: #064e3b;
|
|
--color-emerald-950: #022c22;
|
|
--color-teal-50: #f0fdfa;
|
|
--color-teal-100: #ccfbf1;
|
|
--color-teal-200: #99f6e4;
|
|
--color-teal-300: #5eead4;
|
|
--color-teal-400: #2dd4bf;
|
|
--color-teal-500: #14b8a6;
|
|
--color-teal-600: #0d9488;
|
|
--color-teal-700: #0f766e;
|
|
--color-teal-800: #115e59;
|
|
--color-teal-900: #134e4a;
|
|
--color-teal-950: #042f2e;
|
|
--color-cyan-50: #ecfeff;
|
|
--color-cyan-100: #cffafe;
|
|
--color-cyan-200: #a5f3fc;
|
|
--color-cyan-300: #67e8f9;
|
|
--color-cyan-400: #22d3ee;
|
|
--color-cyan-500: #06b6d4;
|
|
--color-cyan-600: #0891b2;
|
|
--color-cyan-700: #0e7490;
|
|
--color-cyan-800: #155e75;
|
|
--color-cyan-900: #164e63;
|
|
--color-cyan-950: #083344;
|
|
--color-sky-50: #f0f9ff;
|
|
--color-sky-100: #e0f2fe;
|
|
--color-sky-200: #bae6fd;
|
|
--color-sky-300: #7dd3fc;
|
|
--color-sky-400: #38bdf8;
|
|
--color-sky-500: #0ea5e9;
|
|
--color-sky-600: #0284c7;
|
|
--color-sky-700: #0369a1;
|
|
--color-sky-800: #075985;
|
|
--color-sky-900: #0c4a6e;
|
|
--color-sky-950: #082f49;
|
|
--color-blue-50: #eff6ff;
|
|
--color-blue-100: #dbeafe;
|
|
--color-blue-200: #bfdbfe;
|
|
--color-blue-300: #93c5fd;
|
|
--color-blue-400: #60a5fa;
|
|
--color-blue-500: #3b82f6;
|
|
--color-blue-600: #2563eb;
|
|
--color-blue-700: #1d4ed8;
|
|
--color-blue-800: #1e40af;
|
|
--color-blue-900: #1e3a8a;
|
|
--color-blue-950: #172554;
|
|
--color-indigo-50: #eef2ff;
|
|
--color-indigo-100: #e0e7ff;
|
|
--color-indigo-200: #c7d2fe;
|
|
--color-indigo-300: #a5b4fc;
|
|
--color-indigo-400: #818cf8;
|
|
--color-indigo-500: #6366f1;
|
|
--color-indigo-600: #4f46e5;
|
|
--color-indigo-700: #4338ca;
|
|
--color-indigo-800: #3730a3;
|
|
--color-indigo-900: #312e81;
|
|
--color-indigo-950: #1e1b4b;
|
|
--color-violet-50: #f5f3ff;
|
|
--color-violet-100: #ede9fe;
|
|
--color-violet-200: #ddd6fe;
|
|
--color-violet-300: #c4b5fd;
|
|
--color-violet-400: #a78bfa;
|
|
--color-violet-500: #8b5cf6;
|
|
--color-violet-600: #7c3aed;
|
|
--color-violet-700: #6d28d9;
|
|
--color-violet-800: #5b21b6;
|
|
--color-violet-900: #4c1d95;
|
|
--color-violet-950: #2e1065;
|
|
--color-purple-50: #faf5ff;
|
|
--color-purple-100: #f3e8ff;
|
|
--color-purple-200: #e9d5ff;
|
|
--color-purple-300: #d8b4fe;
|
|
--color-purple-400: #c084fc;
|
|
--color-purple-500: #a855f7;
|
|
--color-purple-600: #9333ea;
|
|
--color-purple-700: #7e22ce;
|
|
--color-purple-800: #6b21a8;
|
|
--color-purple-900: #581c87;
|
|
--color-purple-950: #3b0764;
|
|
--color-fuchsia-50: #fdf4ff;
|
|
--color-fuchsia-100: #fae8ff;
|
|
--color-fuchsia-200: #f5d0fe;
|
|
--color-fuchsia-300: #f0abfc;
|
|
--color-fuchsia-400: #e879f9;
|
|
--color-fuchsia-500: #d946ef;
|
|
--color-fuchsia-600: #c026d3;
|
|
--color-fuchsia-700: #a21caf;
|
|
--color-fuchsia-800: #86198f;
|
|
--color-fuchsia-900: #701a75;
|
|
--color-fuchsia-950: #4a044e;
|
|
--color-pink-50: #fdf2f8;
|
|
--color-pink-100: #fce7f3;
|
|
--color-pink-200: #fbcfe8;
|
|
--color-pink-300: #f9a8d4;
|
|
--color-pink-400: #f472b6;
|
|
--color-pink-500: #ec4899;
|
|
--color-pink-600: #db2777;
|
|
--color-pink-700: #be185d;
|
|
--color-pink-800: #9d174d;
|
|
--color-pink-900: #831843;
|
|
--color-pink-950: #500724;
|
|
--color-rose-50: #fff1f2;
|
|
--color-rose-100: #ffe4e6;
|
|
--color-rose-200: #fecdd3;
|
|
--color-rose-300: #fda4af;
|
|
--color-rose-400: #fb7185;
|
|
--color-rose-500: #f43f5e;
|
|
--color-rose-600: #e11d48;
|
|
--color-rose-700: #be123c;
|
|
--color-rose-800: #9f1239;
|
|
--color-rose-900: #881337;
|
|
--color-rose-950: #4c0519;
|
|
/* End: Colors from Tailwind CSS */
|
|
--bg-type-u: #006ab3;
|
|
--bg-type-s: #1a962b;
|
|
--bg-type-a: #f39100;
|
|
--bg-type-r: #000000;
|
|
--bg-type-u-disabled: #c3cfd7;
|
|
--bg-type-s-disabled: #c6d4c8;
|
|
--bg-type-a-disabled: #dfd8cf;
|
|
--bg-type-r-disabled: #b3b3b3;
|
|
--color-type-disabled: var(--color-gray-400);
|
|
--color-line-U1: #006ab3;
|
|
--color-line-U2: #e2001a;
|
|
--color-line-U3: #ffdd00;
|
|
--color-line-U4: #0098a1;
|
|
--color-line-S1: #1a962b;
|
|
--color-line-S2: #b51143;
|
|
--color-line-S3: #622181;
|
|
--color-line-S4: #be148e;
|
|
--color-line-S5: #0089bb;
|
|
--color-line-S6: #d3da00;
|
|
--bg: var(--color-gray-50);
|
|
--text: var(--color-gray-950);
|
|
--text-secondary: var(--color-gray-700);
|
|
--nav-bg: var(--color-indigo-400);
|
|
--nav-bg-hover: var(--color-indigo-200);
|
|
--nav-bg-visited: var(--color-purple-400);
|
|
--link: var(--color-indigo-600);
|
|
--link-hover: var(--color-indigo-800);
|
|
--link-visited: var(--color-purple-600);
|
|
--station-bg: var(--color-gray-50);
|
|
--station-bg-hover: var(--color-gray-400);
|
|
--station-border: var(--color-gray-400);
|
|
--station-border-hover: var(--color-gray-600);
|
|
--elevator-bg: var(--color-gray-100);
|
|
--backdrop: rgb(0 0 0 / 20%);
|
|
--elevator-list-gap: 3rem;
|
|
--item-radius: 1.5rem;
|
|
--btn-radius: 0.8rem;
|
|
--type-icon-size: 3.2rem;
|
|
--space-s: 0.25rem;
|
|
--space-m: 0.5rem;
|
|
--space-l: 1rem;
|
|
--space-xl: 2rem;
|
|
--space-2xl: 3rem;
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg-type-u-disabled: #627f93;
|
|
--bg-type-s-disabled: #688b6d;
|
|
--bg-type-a-disabled: #aa987f;
|
|
--bg-type-r-disabled: #333333;
|
|
--color-type-disabled: var(--color-gray-200);
|
|
--bg: var(--color-gray-950);
|
|
--text: var(--color-gray-50);
|
|
--text-secondary: var(--color-gray-400);
|
|
--nav-bg: var(--color-indigo-800);
|
|
--nav-bg-hover: var(--color-indigo-950);
|
|
--nav-bg-visited: var(--color-purple-800);
|
|
--link: var(--color-indigo-400);
|
|
--link-hover: var(--color-indigo-200);
|
|
--link-visited: var(--color-purple-400);
|
|
--station-bg: var(--color-gray-950);
|
|
--station-bg-hover: var(--color-gray-600);
|
|
--station-border: var(--color-gray-600);
|
|
--station-border-hover: var(--color-gray-400);
|
|
--elevator-bg: var(--color-gray-900);
|
|
--backdrop: rgb(100% 100% 100% / 20%);
|
|
}
|
|
}
|
|
|
|
body.has-dialog {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dialogs {
|
|
display: none;
|
|
position: fixed;
|
|
overflow-y: auto;
|
|
max-width: 100vw;
|
|
padding: 1em;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 99;
|
|
background: var(--backdrop);
|
|
}
|
|
.dialogs.active {
|
|
display: block;
|
|
}
|
|
.dialogs [role=dialog] {
|
|
box-sizing: border-box;
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: var(--space-xl);
|
|
padding-bottom: var(--space-2xl);
|
|
background-color: var(--bg);
|
|
color: var(--text);
|
|
overflow: hidden;
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
border-radius: var(--item-radius) var(--item-radius) 0 0;
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
.dialogs [role=dialog] {
|
|
position: relative;
|
|
border-radius: var(--item-radius);
|
|
}
|
|
}
|
|
.dialogs [role=dialog] button.close-modal {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
border-radius: 0 0 0 var(--btn-radius);
|
|
border: none;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.text-red {
|
|
color: var(--color-red-800);
|
|
}
|
|
|
|
.text-orange {
|
|
color: var(--color-orange-500);
|
|
}
|
|
|
|
.text-green {
|
|
color: var(--color-green-600);
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, ui-sans-serif, sans-serif;
|
|
font-size: 1rem;
|
|
background-color: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
a:hover, a:visited:hover {
|
|
text-decoration: underline;
|
|
color: var(--link-hover);
|
|
}
|
|
a:visited {
|
|
color: var(--link-visited);
|
|
}
|
|
|
|
nav ul {
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
gap: var(--space-m);
|
|
}
|
|
nav ul li a {
|
|
font-weight: bold;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
background-color: var(--nav-bg);
|
|
padding: var(--space-m) var(--space-l);
|
|
cursor: pointer;
|
|
}
|
|
nav ul li a:hover, nav ul li a:visited:hover {
|
|
text-decoration: underline;
|
|
background-color: var(--nav-bg-hover);
|
|
}
|
|
nav ul li a:visited {
|
|
color: var(--text);
|
|
background-color: var(--nav-bg-visited);
|
|
}
|
|
|
|
main {
|
|
margin: 4em auto;
|
|
max-width: 960px;
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 1em auto;
|
|
max-width: 960px;
|
|
}
|
|
|
|
button, input {
|
|
background-color: var(--station-bg);
|
|
color: var(--text);
|
|
padding: var(--space-m) var(--space-l);
|
|
border-radius: var(--item-radius);
|
|
border: solid 2px var(--station-border);
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-m);
|
|
}
|
|
button:hover {
|
|
background-color: var(--station-bg-hover);
|
|
border-color: var(--station-border-hover);
|
|
}
|
|
button[aria-pressed=true] {
|
|
background-color: var(--nav-bg-visited);
|
|
}
|
|
button.size-s {
|
|
font-size: 0.8rem;
|
|
padding: var(--space-s) var(--space-m);
|
|
}
|
|
button.size-m {
|
|
padding: var(--space-m) var(--space-l);
|
|
}
|
|
button.size-l {
|
|
font-size: 1.5rem;
|
|
padding: var(--space-m) var(--space-l);
|
|
}
|
|
|
|
div#updateInfo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-m);
|
|
justify-content: end;
|
|
flex-direction: column;
|
|
margin-bottom: var(--space-l);
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
div#updateInfo {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
div#updateInfo #oldDataWarning {
|
|
color: var(--color-red-600);
|
|
font-weight: bold;
|
|
}
|
|
|
|
div#filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-m);
|
|
justify-content: center;
|
|
}
|
|
div#filters > * {
|
|
width: 100%;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
div#filters > * {
|
|
width: auto;
|
|
min-width: 0;
|
|
}
|
|
}
|
|
div#filters input#searchStation {
|
|
flex-grow: 1;
|
|
font-size: 1.5rem;
|
|
min-width: 10ch;
|
|
}
|
|
div#filters button#stationsNearMe {
|
|
font-size: 1.5rem;
|
|
}
|
|
div#filters div#typeFilter {
|
|
font-size: 1.5rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
min-height: var(--space-2xl);
|
|
gap: var(--space-m);
|
|
}
|
|
div#filters div#typeFilter button.typeChip {
|
|
flex-shrink: 0;
|
|
padding: 0;
|
|
height: var(--space-2xl);
|
|
aspect-ratio: 1/1;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: 9999px;
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U], div#filters div#typeFilter button.typeChip[data-type=S], div#filters div#typeFilter button.typeChip[data-type=A], div#filters div#typeFilter button.typeChip[data-type=R] {
|
|
border: solid 2px var(--text);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false], div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false], div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false], div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false] {
|
|
background-color: var(--color-gray-500);
|
|
color: var(--color-type-disabled);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false][data-type=U], div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false][data-type=U], div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false][data-type=U], div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false][data-type=U] {
|
|
background-color: var(--bg-type-u-disabled);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false][data-type=S], div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false][data-type=S], div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false][data-type=S], div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false][data-type=S] {
|
|
background-color: var(--bg-type-s-disabled);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false][data-type=A], div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false][data-type=A], div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false][data-type=A], div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false][data-type=A] {
|
|
background-color: var(--bg-type-a-disabled);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false][data-type=R], div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false][data-type=R], div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false][data-type=R], div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false][data-type=R] {
|
|
background-color: var(--bg-type-r-disabled);
|
|
}
|
|
div#filters div#typeFilter button.typeChip[data-type=U][data-pressed=false]::after, div#filters div#typeFilter button.typeChip[data-type=S][data-pressed=false]::after, div#filters div#typeFilter button.typeChip[data-type=A][data-pressed=false]::after, div#filters div#typeFilter button.typeChip[data-type=R][data-pressed=false]::after {
|
|
position: absolute;
|
|
content: "";
|
|
width: 144%;
|
|
height: 0.4rem;
|
|
background-color: var(--color-gray-700);
|
|
transform: rotate(-45deg);
|
|
}
|
|
|
|
button#initialLoad {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
button.loadOSM {
|
|
width: fit-content;
|
|
}
|
|
|
|
div#errorMessage {
|
|
border: solid 2px var(--color-red-600);
|
|
border-radius: var(--item-radius);
|
|
padding: var(--space-xl) var(--space-xl);
|
|
margin-top: var(--space-l);
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
ul#stationList {
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-m);
|
|
}
|
|
ul#stationList li#filterInfo {
|
|
text-align: center;
|
|
padding: var(--space-l) var(--space-xl);
|
|
font-style: italic;
|
|
}
|
|
ul#stationList > li.station {
|
|
background-color: var(--station-bg);
|
|
border-radius: var(--item-radius);
|
|
border: solid 0.2rem var(--station-border);
|
|
overflow: hidden;
|
|
position: relative;
|
|
padding: var(--space-m);
|
|
}
|
|
ul#stationList > li.station > div.stationSummary {
|
|
display: flex;
|
|
gap: var(--space-m);
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.symbol {
|
|
position: relative;
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.symbol div.typeList {
|
|
flex-shrink: 0;
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.symbol div.distance {
|
|
position: absolute;
|
|
width: 100%;
|
|
bottom: -2lh;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9em;
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.stationTitle {
|
|
align-self: stretch;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.stationTitle > h3 {
|
|
font-size: 1.5rem;
|
|
line-height: var(--type-icon-size);
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > div.stationSummary div.stationTitle > h3 {
|
|
width: auto;
|
|
}
|
|
}
|
|
ul#stationList > li.station > div.stationSummary div.stationTitle > div.elevator-preview {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: start;
|
|
width: 100%;
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > div.stationSummary div.stationTitle > div.elevator-preview {
|
|
max-width: 10rem;
|
|
justify-content: end;
|
|
width: auto;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
ul#stationList > li.station > details summary {
|
|
width: 100%;
|
|
list-style: none;
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
margin-left: calc(var(--space-m) + var(--type-icon-size));
|
|
}
|
|
ul#stationList > li.station > details summary > span {
|
|
border: solid 2px var(--station-border);
|
|
display: inline-flex;
|
|
padding: var(--space-m) var(--space-l);
|
|
border-radius: var(--btn-radius);
|
|
}
|
|
ul#stationList > li.station > details summary:hover > span {
|
|
background-color: var(--station-bg-hover);
|
|
border-color: var(--station-border-hover);
|
|
}
|
|
ul#stationList > li.station > details summary::after {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
pointer-events: auto;
|
|
content: "";
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
ul#stationList > li.station > details summary {
|
|
transition: margin 150ms ease-out;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details[open] summary {
|
|
margin-bottom: 1rem;
|
|
}
|
|
ul#stationList > li.station > details > div.comment {
|
|
position: relative;
|
|
z-index: 20;
|
|
display: inline-flex;
|
|
margin-left: calc(var(--space-m) + var(--type-icon-size));
|
|
padding-bottom: var(--space-m);
|
|
border-bottom: solid 2px var(--station-border);
|
|
}
|
|
ul#stationList > li.station > details > div.comment > p {
|
|
display: block;
|
|
border: solid 2px var(--nav-bg);
|
|
border-radius: var(--btn-radius);
|
|
padding: var(--space-l);
|
|
}
|
|
ul#stationList > li.station > details > ul {
|
|
padding: 0;
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--elevator-list-gap);
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 20;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator {
|
|
display: flex;
|
|
align-items: start;
|
|
flex-wrap: nowrap;
|
|
gap: var(--space-m);
|
|
position: relative;
|
|
margin: 0 var(--space-s) var(--space-s);
|
|
padding: var(--space-s);
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > details > ul > li.elevator {
|
|
margin: 0 var(--space-2xl) 1rem;
|
|
padding: var(--space-m);
|
|
padding-right: var(--space-2xl);
|
|
}
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > .stateIcon {
|
|
flex-shrink: 0;
|
|
display: none;
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > .stateIcon {
|
|
display: inline;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator:first-child {
|
|
padding-top: var(--space-l);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator:not(:first-child):before {
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
top: calc(var(--elevator-list-gap) / -2);
|
|
height: 2px;
|
|
width: 100%;
|
|
background: var(--station-border);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData {
|
|
width: 100%;
|
|
display: grid;
|
|
flex-direction: column;
|
|
gap: var(--space-l);
|
|
align-items: start;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
@media screen and (min-width: 800px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData .elevatorInfo {
|
|
font-weight: bold;
|
|
grid-column: 1/-1;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData div.firstRow {
|
|
grid-column: 1/-1;
|
|
display: flex;
|
|
gap: var(--space-m);
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData div.firstRow.hiddenOnDesktop {
|
|
display: none;
|
|
}
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData div.firstRow .stateIcon {
|
|
display: none;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData div.firstRow .lineList {
|
|
display: flex;
|
|
gap: var(--space-m);
|
|
align-items: center;
|
|
min-height: var(--space-2xl);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData hr {
|
|
grid-column: 1/-1;
|
|
width: 100%;
|
|
margin: 0;
|
|
border: none;
|
|
border-bottom: dashed 2px var(--station-border);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData .osm {
|
|
grid-column: 1/-1;
|
|
color: var(--text-secondary);
|
|
border: dashed 2px var(--station-border);
|
|
border-radius: var(--item-radius);
|
|
padding: var(--space-l);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData .osm .osmHeading {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-l);
|
|
margin-bottom: var(--space-l);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData .osm .osmHeading h4 {
|
|
margin: 0;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData .osm dl div dt {
|
|
min-width: 18ch;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList {
|
|
--dot-size: 0.8rem;
|
|
--line-width: 0.3rem;
|
|
--left-space: 1.4rem;
|
|
list-style: none;
|
|
padding-left: var(--left-space);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList > li {
|
|
position: relative;
|
|
line-height: 1.8em;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList > li:before {
|
|
background-color: currentColor;
|
|
width: var(--line-width);
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: calc(var(--left-space) * -1 + var(--dot-size) / 2 - var(--line-width) / 2);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList > li:first-child:before {
|
|
top: 0.5lh;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList > li:last-child:before {
|
|
bottom: calc(100% - 0.5lh);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData ol.levelList > li:after {
|
|
background-color: currentColor;
|
|
width: var(--dot-size);
|
|
height: var(--dot-size);
|
|
border-radius: 100%;
|
|
content: "";
|
|
position: absolute;
|
|
top: calc(0.5lh - var(--dot-size) / 2);
|
|
left: calc(var(--left-space) * -1);
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
gap: 0.2rem;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl div {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl div dt {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
gap: var(--space-m);
|
|
align-items: center;
|
|
font-weight: bold;
|
|
min-width: 15ch;
|
|
}
|
|
@media (max-width: 400px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl div dt {
|
|
width: 100%;
|
|
}
|
|
}
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl div dd {
|
|
width: 0;
|
|
flex-grow: 1;
|
|
margin-left: var(--space-2xl);
|
|
}
|
|
@media screen and (min-width: 576px) {
|
|
ul#stationList > li.station > details > ul > li.elevator > div.elevatorData dl div dd {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
span.lineChip, span.typeChip, button.typeChip {
|
|
font-weight: bold;
|
|
font-size: 0.8em;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
}
|
|
span.lineChip[data-type=U], span.typeChip[data-type=U], button.typeChip[data-type=U] {
|
|
background-color: var(--bg-type-u);
|
|
color: var(--color-white);
|
|
}
|
|
span.lineChip[data-type=U][data-line=U1], span.typeChip[data-type=U][data-line=U1], button.typeChip[data-type=U][data-line=U1] {
|
|
background-color: var(--color-line-U1);
|
|
}
|
|
span.lineChip[data-type=U][data-line=U2], span.typeChip[data-type=U][data-line=U2], button.typeChip[data-type=U][data-line=U2] {
|
|
background-color: var(--color-line-U2);
|
|
}
|
|
span.lineChip[data-type=U][data-line=U3], span.typeChip[data-type=U][data-line=U3], button.typeChip[data-type=U][data-line=U3] {
|
|
background-color: var(--color-line-U3);
|
|
color: var(--color-black);
|
|
}
|
|
span.lineChip[data-type=U][data-line=U4], span.typeChip[data-type=U][data-line=U4], button.typeChip[data-type=U][data-line=U4] {
|
|
background-color: var(--color-line-U4);
|
|
}
|
|
span.lineChip[data-type=U][data-line=U5], span.typeChip[data-type=U][data-line=U5], button.typeChip[data-type=U][data-line=U5] {
|
|
background-color: var(--color-line-U5);
|
|
}
|
|
span.lineChip[data-type=S], span.typeChip[data-type=S], button.typeChip[data-type=S] {
|
|
background-color: var(--bg-type-s);
|
|
color: var(--color-white);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S1], span.typeChip[data-type=S][data-line=S1], button.typeChip[data-type=S][data-line=S1] {
|
|
background-color: var(--color-line-S1);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S2], span.typeChip[data-type=S][data-line=S2], button.typeChip[data-type=S][data-line=S2] {
|
|
background-color: var(--color-line-S2);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S3], span.typeChip[data-type=S][data-line=S3], button.typeChip[data-type=S][data-line=S3] {
|
|
background-color: var(--color-line-S3);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S4], span.typeChip[data-type=S][data-line=S4], button.typeChip[data-type=S][data-line=S4] {
|
|
background-color: var(--color-line-S4);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S5], span.typeChip[data-type=S][data-line=S5], button.typeChip[data-type=S][data-line=S5] {
|
|
background-color: var(--color-line-S5);
|
|
}
|
|
span.lineChip[data-type=S][data-line=S6], span.typeChip[data-type=S][data-line=S6], button.typeChip[data-type=S][data-line=S6] {
|
|
background-color: var(--color-line-S6);
|
|
color: var(--color-black);
|
|
}
|
|
span.lineChip[data-type=A], span.typeChip[data-type=A], button.typeChip[data-type=A] {
|
|
background-color: var(--bg-type-a);
|
|
color: var(--color-white);
|
|
}
|
|
span.lineChip[data-type=R], span.typeChip[data-type=R], button.typeChip[data-type=R] {
|
|
background-color: var(--bg-type-r);
|
|
color: var(--color-white);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
span.lineChip[data-type=R], span.typeChip[data-type=R], button.typeChip[data-type=R] {
|
|
border: solid 2px var(--color-white);
|
|
}
|
|
}
|
|
|
|
span.lineChip {
|
|
padding: 0.3em 0.6em;
|
|
min-width: 4ch;
|
|
}
|
|
span.lineChip[data-type=U] {
|
|
padding: 0.3em 0.1em;
|
|
}
|
|
span.lineChip[data-type=S] {
|
|
border-radius: 2em;
|
|
min-width: 6ch;
|
|
}
|
|
span.lineChip[data-type=A] {
|
|
padding: 0.3em 0.1em;
|
|
border-radius: 2em;
|
|
}
|
|
|
|
.typeList {
|
|
width: var(--type-icon-size);
|
|
height: var(--type-icon-size);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.2rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
span.typeChip {
|
|
--chip-size: 1.5;
|
|
width: calc(1rem * var(--chip-size));
|
|
min-width: calc(1rem * var(--chip-size));
|
|
height: calc(1rem * var(--chip-size));
|
|
font-size: calc(0.5rem * var(--chip-size));
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
span.typeChip:only-child {
|
|
--chip-size: 3;
|
|
}
|
|
span.typeChip[data-type=U], span.typeChip[data-type=A], span.typeChip[data-type=R], span.typeChip[data-type=S] {
|
|
border-radius: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
span[data-icon] {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
width: 1em;
|
|
height: 1em;
|
|
mask-size: contain;
|
|
mask-position: center;
|
|
mask-repeat: no-repeat;
|
|
background-color: currentColor;
|
|
flex-shrink: 0;
|
|
}
|
|
span[data-icon].size-s {
|
|
font-size: 1rem;
|
|
}
|
|
span[data-icon].size-m {
|
|
font-size: 1.5rem;
|
|
}
|
|
span[data-icon].size-l {
|
|
font-size: 2rem;
|
|
}
|
|
span[data-icon].size-xl {
|
|
font-size: 3rem;
|
|
}
|
|
span[data-icon][data-icon=location] {
|
|
mask-image: url(/md_icons/location.svg);
|
|
}
|
|
span[data-icon][data-icon=elevator] {
|
|
mask-image: url(/md_icons/elevator.svg);
|
|
}
|
|
span[data-icon][data-icon=elevator-slash] {
|
|
mask-image: url(/md_icons/elevator-slash.svg);
|
|
}
|
|
span[data-icon][data-icon=fit-width] {
|
|
mask-image: url(/md_icons/fit_width.svg);
|
|
}
|
|
span[data-icon][data-icon=width] {
|
|
mask-image: url(/md_icons/width.svg);
|
|
}
|
|
span[data-icon][data-icon=length] {
|
|
mask-image: url(/md_icons/height.svg);
|
|
}
|
|
span[data-icon][data-icon=braille] {
|
|
mask-image: url(/md_icons/braille.svg);
|
|
}
|
|
span[data-icon][data-icon=speaker] {
|
|
mask-image: url(/md_icons/speaker.svg);
|
|
}
|
|
span[data-icon][data-icon=wheelchair] {
|
|
mask-image: url(/md_icons/wheelchair.svg);
|
|
}
|
|
span[data-icon][data-icon=bicycle] {
|
|
mask-image: url(/md_icons/bicycle.svg);
|
|
}
|
|
span[data-icon][data-icon=info] {
|
|
mask-image: url(/md_icons/info.svg);
|
|
}
|
|
span[data-icon][data-icon=up-down] {
|
|
mask-image: url(/md_icons/up-down.svg);
|
|
}
|
|
span[data-icon][data-icon=location-searching] {
|
|
mask-image: url(/md_icons/location-searching.svg);
|
|
}
|
|
span[data-icon][data-icon=load] {
|
|
mask-image: url(/md_icons/load.svg);
|
|
}
|
|
span[data-icon][data-icon=close] {
|
|
mask-image: url(/md_icons/close.svg);
|
|
}
|
|
span[data-icon].spinner {
|
|
animation-delay: 0s;
|
|
animation-direction: normal;
|
|
animation-duration: 1s;
|
|
animation-fill-mode: none;
|
|
animation-iteration-count: infinite;
|
|
animation-name: spinner;
|
|
animation-play-state: running;
|
|
animation-timing-function: linear;
|
|
}
|
|
|
|
@keyframes spinner {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/*# sourceMappingURL=style.css.map */
|