init
This commit is contained in:
commit
28a45440aa
18 changed files with 4276 additions and 0 deletions
153
public/style.css
Normal file
153
public/style.css
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
:root {
|
||||
color-scheme: light dark;
|
||||
--bg: #fafafa;
|
||||
--card: #ffffff;
|
||||
--text: #1a1a1a;
|
||||
--muted: #666;
|
||||
--accent: #c8102e;
|
||||
--border: #ddd;
|
||||
--warning-bg: #fff6e0;
|
||||
--error-bg: #ffe5e5;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #16181c;
|
||||
--card: #1f2228;
|
||||
--text: #eceff4;
|
||||
--muted: #9aa2ad;
|
||||
--accent: #ff5a70;
|
||||
--border: #34383f;
|
||||
--warning-bg: #3a3323;
|
||||
--error-bg: #40272b;
|
||||
}
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: system-ui, sans-serif;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 44rem;
|
||||
margin: 0 auto;
|
||||
padding: 1.5rem 1rem 4rem;
|
||||
}
|
||||
|
||||
h1 { margin-bottom: 0.2rem; }
|
||||
.subtitle { margin-top: 0; color: var(--muted); }
|
||||
|
||||
.stations {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 38rem) {
|
||||
.stations { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.75rem;
|
||||
background: var(--card);
|
||||
}
|
||||
|
||||
.station-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.station-row input[type="text"] { flex: 1; min-width: 0; }
|
||||
|
||||
input, select, button {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 0.45rem 0.6rem;
|
||||
}
|
||||
|
||||
.penalty { width: 4.2rem; }
|
||||
.unit { color: var(--muted); font-size: 0.85rem; }
|
||||
|
||||
button { cursor: pointer; }
|
||||
button.add { background: none; border: 1px dashed var(--border); width: 100%; color: var(--muted); }
|
||||
button.remove { padding: 0.2rem 0.55rem; color: var(--muted); }
|
||||
|
||||
.time-row {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-top: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#search-button {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
padding: 0.45rem 1.4rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
#search-button:disabled { opacity: 0.6; }
|
||||
|
||||
#feedback { border-radius: 8px; padding: 0.6rem 0.9rem; margin-top: 1rem; }
|
||||
#feedback.warning { background: var(--warning-bg); }
|
||||
#feedback.error { background: var(--error-bg); }
|
||||
#feedback p { margin: 0.2rem 0; }
|
||||
|
||||
.results-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.results-header label { color: var(--muted); font-size: 0.9rem; }
|
||||
|
||||
#results { list-style: none; padding: 0; margin: 0; }
|
||||
|
||||
.journey {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 0.8rem 1rem;
|
||||
margin-bottom: 0.7rem;
|
||||
}
|
||||
|
||||
.journey-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.3rem;
|
||||
}
|
||||
|
||||
.times { font-weight: 700; font-variant-numeric: tabular-nums; }
|
||||
.meta { color: var(--muted); font-size: 0.9rem; }
|
||||
.route { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
|
||||
|
||||
.lines { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
|
||||
|
||||
.line {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
padding: 0.1rem 0.45rem;
|
||||
}
|
||||
|
||||
details { margin-top: 0.5rem; }
|
||||
summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
|
||||
.leg { margin: 0.25rem 0 0.25rem 1rem; font-size: 0.9rem; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue