Ignore:
Timestamp:
06/20/2026 08:11:45 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
1c6d61c
Parents:
6eeb459
Message:

fix(agenda): robust grey-on-calendar (htmx-proof) via source rule + element classes

The body.class-override CSS didn't take effect after htmx nav. Now:

  • Timeline/Grid: style.css active rule excluded on .on-shows/.on-downloads (same rule that does react to htmx) → grey there, normal on the feed.
  • Solo/Circle + grid-cols: not rendered as 'active' on non-feed pages in the template (server-rendered in the OOB chrome → htmx-proof).
  • Calendar active via element class .vs-agenda.is-active (not body class).

style.css?v=19.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/shared-styles.ejs

    r6eeb459 r4dcefa1  
    5050}
    5151.vs-agenda:hover { color: var(--ink); }
    52 /* Op de agendapagina = helder/wit (geen pilletje, past bij de losse-link-look). */
    53 body.on-shows .vs-agenda { color: var(--ink); font-weight: 600; }
     52/* Actief (op de agendapagina) = helder/wit. Element-class (in de OOB-gerenderde
     53   chrome) i.p.v. body-class-CSS → werkt betrouwbaar ook na htmx-navigatie. */
     54.vs-agenda.is-active { color: var(--ink); font-weight: 600; }
    5455
    5556.grid-cols-picker {
     
    9798}
    9899
    99 /* Op de agenda- én downloads-pagina is ALLES behalve de Agenda-pill neutraal/grijs
    100    (je bent daar niet in een feed-weergave). !important + body.on-X (betrouwbaar
    101    gezet/gestript via PAGE_CLASSES) → overrult de feed-active-regel ZONDER naar de
    102    feed te lekken (de selector matcht alleen op die pagina's). */
    103 body.on-shows .view-switch-btn,
    104 body.on-downloads .view-switch-btn {
    105   background: transparent !important;
    106   color: var(--ink-muted, var(--ink-soft)) !important;
    107   border-color: var(--rule) !important;
    108 }
    109 body.on-shows .feed-scope-btn.is-active,
    110 body.on-downloads .feed-scope-btn.is-active {
    111   background: transparent !important;
    112   color: var(--ink-muted, var(--ink-soft)) !important;
    113 }
    114 body.on-shows .grid-cols-btn.is-active,
    115 body.on-downloads .grid-cols-btn.is-active {
    116   background: var(--paper-2) !important;
    117   color: var(--ink-muted, var(--ink-soft)) !important;
    118   border-color: var(--rule) !important;
    119 }
    120100
    121101/* Spacing between switcher-bar and the page content below.
Note: See TracChangeset for help on using the changeset viewer.