Files
tina-barcelona-picker/public/style.css
T
robertoandClaude Sonnet 5 ddd2db2a52 Initial commit: Tina Barcelona trip picker
Static Cloudflare Pages site + KV-backed Pages Function for jointly
planning Tina's Barcelona visit (7 Jul - 18 Aug 2026). List and calendar
views share one client state; dated evening events are radio groups to
prevent double-booking, multi-night shows live once in TRIP_DATA.spanning
instead of being duplicated per day, and undated collections get
optionally date-tagged when picked from the calendar view.

Includes a client-side-only password gate and an instructions page.
Live at https://summeroffun.hortal.me.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 22:58:15 +02:00

321 lines
6.9 KiB
CSS

:root {
--bg: #ffffff;
--fg: #1a1a1a;
--muted: #6b6b6b;
--card-bg: #f7f7f8;
--card-border: #e3e3e6;
--accent: #2563eb;
--accent-bg: #eaf0fe;
--locked-bg: #fff7e6;
--locked-border: #f0d78c;
--warn: #b45309;
--radius: 10px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #15161a;
--fg: #ececec;
--muted: #9a9a9a;
--card-bg: #1e1f24;
--card-border: #2c2d33;
--accent: #5b8def;
--accent-bg: #1c2740;
--locked-bg: #2a2312;
--locked-border: #6b5417;
}
}
:root[data-theme="dark"] {
--bg: #15161a; --fg: #ececec; --muted: #9a9a9a;
--card-bg: #1e1f24; --card-border: #2c2d33;
--accent: #5b8def; --accent-bg: #1c2740;
--locked-bg: #2a2312; --locked-border: #6b5417;
}
:root[data-theme="light"] {
--bg: #ffffff; --fg: #1a1a1a; --muted: #6b6b6b;
--card-bg: #f7f7f8; --card-border: #e3e3e6;
--accent: #2563eb; --accent-bg: #eaf0fe;
--locked-bg: #fff7e6; --locked-border: #f0d78c;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: var(--bg);
color: var(--fg);
line-height: 1.4;
padding: 1.25rem;
max-width: 720px;
margin: 0 auto;
}
.gate {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.gate-hidden { display: none; }
.gate-box {
border: 1px solid var(--card-border);
background: var(--card-bg);
border-radius: var(--radius);
padding: 2rem 1.5rem;
max-width: 320px;
width: 100%;
}
.gate-box h1 { font-size: 1.2rem; }
.gate-input {
width: 100%;
margin: 1rem 0 0.6rem;
padding: 0.6rem 0.7rem;
border-radius: 8px;
border: 1px solid var(--card-border);
background: var(--bg);
color: var(--fg);
font-size: 1rem;
}
.gate-submit {
width: 100%;
padding: 0.6rem;
border-radius: 8px;
border: none;
background: var(--accent);
color: #fff;
font-size: 0.95rem;
cursor: pointer;
}
.gate-error {
color: #b91c1c;
font-size: 0.85rem;
min-height: 1.2rem;
margin: 0.6rem 0 0;
}
.page-header { margin-bottom: 1.5rem; }
h1 { font-size: 1.4rem; margin: 0 0 0.25rem; }
.subtitle { color: var(--muted); margin: 0; font-size: 0.95rem; }
.status {
min-height: 1.2rem;
font-size: 0.85rem;
color: var(--accent);
margin-top: 0.5rem;
}
.how-it-works {
display: inline-block;
margin-top: 0.6rem;
font-size: 0.85rem;
color: var(--accent);
text-decoration: none;
}
.how-it-works:hover { text-decoration: underline; }
.instr-section {
margin-bottom: 1.75rem;
}
.instr-section h2 {
font-size: 1.05rem;
margin: 0 0 0.5rem;
}
.instr-section p { margin: 0 0 0.6rem; }
.instr-section ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.instr-section li { margin-bottom: 0.4rem; }
section.day, section.collection {
margin-bottom: 1.25rem;
border: 1px solid var(--card-border);
border-radius: var(--radius);
background: var(--card-bg);
padding: 0.9rem 1rem;
}
section.collection { margin-top: 2rem; }
.day-label {
font-weight: 600;
margin-bottom: 0.5rem;
font-size: 0.95rem;
}
.collection-title {
font-weight: 600;
margin: 0 0 0.6rem;
font-size: 1rem;
}
.locked-card {
display: flex;
gap: 0.6rem;
align-items: flex-start;
background: var(--locked-bg);
border: 1px solid var(--locked-border);
border-radius: 8px;
padding: 0.5rem 0.7rem;
margin-bottom: 0.6rem;
font-size: 0.9rem;
}
.locked-card .badge { flex-shrink: 0; }
.locked-card .locked-body { flex: 1; }
.note {
font-size: 0.85rem;
color: var(--warn);
margin: 0 0 0.6rem;
}
.option-row {
display: flex;
align-items: center;
gap: 0.2rem;
}
label.option {
display: flex;
gap: 0.6rem;
align-items: flex-start;
padding: 0.45rem 0.4rem;
border-radius: 8px;
cursor: pointer;
flex: 1;
min-width: 0;
}
label.option:hover { background: var(--accent-bg); }
label.option input { margin-top: 0.2rem; flex-shrink: 0; }
.option-body { flex: 1; }
.option-title { font-size: 0.92rem; }
.option-meta { font-size: 0.8rem; color: var(--muted); }
/* Standalone info icon, sibling of the label — never nested inside it,
so tapping it can't also toggle the radio/checkbox. */
.info-icon {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 1.8rem;
height: 1.8rem;
border-radius: 50%;
color: var(--muted);
text-decoration: none;
font-size: 1rem;
}
.info-icon:hover { background: var(--accent-bg); color: var(--accent); }
.muted { color: var(--muted); font-size: 0.9rem; }
.date-tag {
font-size: 0.78rem;
color: var(--accent);
font-weight: 500;
}
/* A row standing in for an option that's already been picked on a different
date — same shape as a normal option row, but not interactive. */
.status-row {
cursor: default;
opacity: 0.7;
}
.status-row:hover { background: none; }
.status-row .badge { flex-shrink: 0; margin-right: 0.6rem; color: var(--accent); }
.view-toggle {
display: flex;
gap: 0.4rem;
margin-top: 0.75rem;
}
.view-btn {
border: 1px solid var(--card-border);
background: var(--card-bg);
color: var(--fg);
border-radius: 8px;
padding: 0.4rem 0.9rem;
font-size: 0.85rem;
cursor: pointer;
}
.view-btn-active {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.cal-nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
.cal-current-label { font-weight: 600; }
.cal-nav-btn {
border: 1px solid var(--card-border);
background: var(--card-bg);
color: var(--fg);
border-radius: 8px;
padding: 0.4rem 0.8rem;
font-size: 0.85rem;
cursor: pointer;
}
.cal-nav-btn:disabled { opacity: 0.4; cursor: default; }
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.2rem;
margin-bottom: 1.25rem;
}
.cal-weekday {
text-align: center;
font-size: 0.72rem;
color: var(--muted);
padding-bottom: 0.3rem;
}
.cal-cell {
height: 34px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0.3rem;
border-radius: 8px;
cursor: pointer;
border: 1px solid transparent;
}
.cal-cell:hover { background: var(--accent-bg); }
.cal-cell-outside { visibility: hidden; cursor: default; }
.cal-cell-outside:hover { background: none; }
.cal-cell-current {
border-color: var(--accent);
background: var(--accent-bg);
}
.cal-daynum { font-size: 0.78rem; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.cal-dot-filled { background: var(--accent); }
.cal-dot-empty { background: var(--card-border); }
.cal-anytime-heading {
font-weight: 600;
font-size: 0.95rem;
margin: 1.5rem 0 0.75rem;
color: var(--muted);
}
.shortlist {
margin-top: 2.5rem;
border-top: 2px solid var(--card-border);
padding-top: 1rem;
}
.shortlist h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
#shortlist-list { list-style: none; padding: 0; margin: 0; }
#shortlist-list li {
padding: 0.4rem 0;
border-bottom: 1px solid var(--card-border);
font-size: 0.9rem;
}
#shortlist-list li .when { color: var(--muted); margin-right: 0.4rem; }