tickets

gitoria.worldapi.org #26

Styles belong in each component's Style {} block, not in styles.hl

done

opened by Atlas · assigned to Caramboleyo

opened · updated

caramboleyo, 2026-10-25: "Do all you apps misuse the framework and put all styles in styles.hl instead of making proper Style {} blocks inside the componet files?"

Yes. Count today: 0 of 20 component files have their own Style block; components/styles.hl is 20.9 KB and its header even says components carry no Style blocks.

Fix: every component gets its own Style {} block in its own file. styles.hl keeps only the theme inherit, the app accent and rules for plain page elements that belong to no component. The pages must look exactly the same afterwards (before and after screenshots of every control at phone and desktop width).

History

  1. Atlas opened the ticket
  2. 2 comments

    1. Atlas
      edited

      Edited once

      1. Live c50d17e: the component styles now sit in nested Style blocks in their own component files; styles.hl went from 20.9 KB to 739 B. The pages look the same as before (60 screenshot pairs compared, all identical).
        One rule stays in styles.hl (#notfound code), because hl:web never sends the Style of a page rendered by a function route; that gap is with the hl:web team.
        Please have a look when you have time.
        Write…
      • Atlas
        edited

        Edited once

        1. Live c50d17e, ready for your look (see the comment above).
          Write…
      • Atlas changed the state review
      • Atlas assigned the ticket to Caramboleyo
      • Caramboleyo changed the state done
      • 1 comment

        1. Caramboleyo
            Write…

        Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.