Changeset 834bcc3 in Klonkt for src/views/partials/shared-styles.ejs
- Timestamp:
- 06/23/2026 06:14:27 PM (3 months ago)
- Branches:
- main
- Children:
- d774679
- Parents:
- bb42dfb
- File:
-
- 1 edited
-
src/views/partials/shared-styles.ejs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/views/partials/shared-styles.ejs
rbb42dfb r834bcc3 6 6 border-bottom: 1px solid var(--rule); 7 7 background: var(--paper); 8 /* Geen extra margin-top: de pill wordt zo gecentreerd tussen de profielkop-9 streep (boven) en de eigen border (onder). De gelijke lucht boven/onder de10 pill komt uit de symmetrische container-padding hieronder. De margin-bottom11 (1.5rem in style.css) blijft lucht naar de feed. */8 /* No extra margin-top: this centres the pill between the profile-header 9 rule (above) and the own border (below). Equal space above/below the 10 pill comes from the symmetric container padding below. The margin-bottom 11 (1.5rem in style.css) keeps breathing room toward the feed. */ 12 12 margin-top: 0; 13 13 } 14 14 .view-switcher-wrap .container { 15 15 display: flex; align-items: center; justify-content: center; gap: 0.75rem; 16 /* Symmetri sche padding → even veel lucht boven als onder de pill (≈8px),17 gecentreerd tussen de twee lijnen. */16 /* Symmetric padding → equal space above and below the pill (≈8px), 17 centred between the two dividing lines. */ 18 18 padding: 0.5rem 1rem; 19 19 max-width: 1200px; margin: 0 auto; … … 36 36 } 37 37 .view-switch-btn:hover { color: var(--ink); } 38 /* Acti ef = wit (lichte achtergrond, donkere tekst). Via aria-selected (element-39 attribu ut, door syncAria gezet + op htmx:afterSettle) → htmx-robuust. Op niet-40 feed -pagina's zet syncAria aria-selected=false → beide grijs. */38 /* Active = white (light background, dark text). Via aria-selected (element 39 attribute, set by syncAria + on htmx:afterSettle) → htmx-robust. On non- 40 feed pages syncAria sets aria-selected=false → both grey. */ 41 41 .view-switch-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); } 42 42 43 /* Agenda = een EIGEN pill (los van Tijdlijn/Grid, zodat de feed-toggle nooit44 verstoord raakt). Zelfde look als de view-switcher-pill. Zichtbaar in alle modi. */45 .agenda-pill { display: inline-flex; align-items: center; } /* geen box — losse icoon+tekst link */43 /* Agenda = its OWN pill (separate from Timeline/Grid, so the feed-toggle is never 44 disturbed). Same look as the view-switcher pill. Visible in all modes. */ 45 .agenda-pill { display: inline-flex; align-items: center; } /* no box — standalone icon+text link */ 46 46 .vs-agenda { 47 47 display: inline-flex; align-items: center; gap: 0.4rem; … … 53 53 } 54 54 .vs-agenda:hover { color: var(--ink); } 55 /* Acti ef (op de agendapagina) = helder/wit. Element-class (in de OOB-gerenderde56 chrome) i.p.v. body-class-CSS → werkt betrouwbaar ook na htmx-navigatie. */55 /* Active (on the agenda page) = bright/white. Element-class (in the OOB-rendered 56 chrome) rather than body-class CSS → stays reliable after htmx navigation. */ 57 57 .vs-agenda.is-active { color: var(--ink); font-weight: 600; } 58 58 59 /* Mobi el: Agenda op een eigen rij bovenaan, en Solo/Cirkel + Tijdlijn/Grid samen60 o p de rij eronder (samen ~330px → past binnen een telefoon, i.p.v. de oude61 onevenwichtige split Agenda+Solo / Tijdlijn). */59 /* Mobile: Agenda on its own row at the top, Solo/Circle + Timeline/Grid together 60 on the row below (together ~330px → fits within a phone, instead of the old 61 unbalanced split Agenda+Solo / Timeline). */ 62 62 @media (max-width: 520px) { 63 63 .view-switcher-wrap .agenda-pill { flex: 0 0 100%; justify-content: center; } … … 92 92 .on-admin .view-switcher-wrap { display: none; } 93 93 94 /* O p een losse post is er geen feed om te schakelen, dus geen knop hoort "actief"95 ( gekleurd) te ogen. De actieve staat zit in style.css opbody[data-feed-view]96 / body[data-grid-cols] (background:var(--ink)); we overr ulen die SPECIFIEKER97 via body.on-post zodat de knoppen neutraal/grijs worden — maar wél klikbaar98 blijven (de klik-handler navigeert dan naar de feed in die weergave). De99 body-class wisselt client-side bij HTMX-nav, dus dit werkt ook zonder reload. */94 /* On a standalone post there is no feed to switch, so no button should look "active" 95 (coloured). The active state lives in style.css on body[data-feed-view] 96 / body[data-grid-cols] (background:var(--ink)); we override that MORE SPECIFICALLY 97 via body.on-post so the buttons become neutral/grey — but remain clickable 98 (the click-handler then navigates to the feed in that view). The 99 body-class switches client-side on HTMX-nav, so this works without a reload too. */ 100 100 body.on-post[data-feed-view="timeline"] .view-switch-btn[data-view="timeline"], 101 101 body.on-post[data-feed-view="grid"] .view-switch-btn[data-view="grid"],
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)