From 02fc666661203af6a2d4bbefb7a69200b3b56130 Mon Sep 17 00:00:00 2001 From: Mischa Date: Sun, 21 Jun 2026 23:09:52 +0200 Subject: [PATCH] feat(trip): pill radius on panel toggles, slide animation, mobile close button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Radius: trip-panel-toggle now uses --radius-full, consistent with filter pills - Animation: stats/cycling blocks use CSS grid-template-rows 0fr→1fr transition (inner trip-panel-inner div carries decoration so border/padding don't peek out when collapsed; display:none removed) - Close button: ↑ Close stats / ↑ Close cycling at bottom of each panel, hidden ≥769px, triggers the header toggle via data-toggle attribute Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr --- themes/intotheeast/css/style.css | 55 +++++-- themes/intotheeast/templates/trip.html.twig | 172 ++++++++++---------- 2 files changed, 132 insertions(+), 95 deletions(-) diff --git a/themes/intotheeast/css/style.css b/themes/intotheeast/css/style.css index 9f1d895..70b6d10 100644 --- a/themes/intotheeast/css/style.css +++ b/themes/intotheeast/css/style.css @@ -968,7 +968,7 @@ body::after { .trip-panel-toggle { background: transparent; border: 1px solid var(--color-border); - border-radius: var(--radius-sm); + border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); font-family: var(--font-ui); font-size: var(--text-sm); @@ -1149,12 +1149,54 @@ body::after { /* ── Trip page inline stats block ───────────────────────────────────────────── */ -.trip-stats-block { +.trip-stats-block, +.trip-cycling-block { + display: grid; + grid-template-rows: 0fr; + overflow: hidden; + margin-bottom: 0; + transition: grid-template-rows 0.35s ease, margin-bottom 0.35s ease; +} + +.trip-stats-block.is-open, +.trip-cycling-block.is-open { + grid-template-rows: 1fr; + margin-bottom: var(--space-6); +} + +.trip-panel-inner { + min-height: 0; + overflow: hidden; background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); - margin-bottom: var(--space-6); +} + +.trip-panel-close { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + margin-top: var(--space-6); + padding: var(--space-2) var(--space-4); + background: transparent; + border: 1px solid var(--color-border); + border-radius: var(--radius-full); + font-family: var(--font-ui); + font-size: var(--text-sm); + color: var(--color-ink-muted); + cursor: pointer; + transition: color 0.15s, border-color 0.15s; +} + +.trip-panel-close:hover { + color: var(--color-ink); + border-color: var(--color-ink-muted); +} + +@media (min-width: 769px) { + .trip-panel-close { display: none; } } .trip-stats-grid { @@ -1181,13 +1223,6 @@ body::after { /* ── Trip page cycling panel ─────────────────────────────────────────────────── */ -.trip-cycling-block { - background: var(--color-canvas); - border: 1px solid var(--color-border); - border-radius: var(--radius-md); - padding: var(--space-6); - margin-bottom: var(--space-6); -} .trip-cycling-header { display: flex; diff --git a/themes/intotheeast/templates/trip.html.twig b/themes/intotheeast/templates/trip.html.twig index 486f482..e1bcb8e 100644 --- a/themes/intotheeast/templates/trip.html.twig +++ b/themes/intotheeast/templates/trip.html.twig @@ -137,78 +137,84 @@ -