gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit957de51f957de51fTickets conductor: T36 live, #36 review, #50 donemre957de51f/components/styles.hl

1.9 KB

  1. // styles.hl — the app's CSS, served as /__hl/app.css. It INHERITS THE WORLDAPI THEME (theme/theme.hl, copied verbatim from
  2. // layouts.worldapi.org 17e0f03 — never edited here; docs: layouts docs/using-the-theme.md) and adds only what belongs to no component. Every component carries its own Style {} block in its own file (nested rules named after
  3. // its View's elements); here stay the theme inherit, the accent and the few rules for plain page elements and shared classes.
  4. //
  5. // TOKENS: colours only through the named tokens (shared/tokens.hl = layouts' file, byte-equal); the app sets only its accent
  6. // (purple). Corners: radiusSmall (5px: buttons, pills, rows) / radiusLarge (10px: panels, boxes). Borderless — `node
  7. // theme/check-theme.mjs .` must report 0 problems (a deploy gate).
  8. // In a styles file a bare name is a TAG (camelCase → kebab), a quoted name is a selector written verbatim; a selector the theme
  9. // already writes may not be written again (hl:web refuses it) — so the theme's own elements (links, headings, fields, buttons,
  10. // foldables, `.muted`, `p.empty`, the 44 px taps) are NOT repeated here.
  11. // PHONE FIRST (mission 022): every rule outside a media block is the phone's (390 px): nothing makes the page wider than the screen,
  12. // every tap target is at least 44×44 px (the theme's layoutTap), every field 16 px, no text under 14 px (.875rem). The components'
  13. // `@media (min-width: 60rem)` blocks (the theme's breakpoint) only ADD the wide layout.
  14. inherit '../theme/theme.hl'
  15. import { var } from 'hl:web/css'
  16. import { purple, colorTextMuted } from '../shared/tokens.hl'
  17. colorAccent = var(purple) // the app's accent: the only token this app sets
  18. time {
  19. color = colorTextMuted
  20. fontSize = '.875rem'
  21. whiteSpace = 'nowrap'
  22. }
  23. form {
  24. // Keep the combinator as a quoted nested key.
  25. '> label' {
  26. display = 'grid'
  27. gap = '.3rem'
  28. margin = '0'
  29. }
  30. }
  31. // Keep the selector list; there is no bare list form.
  32. 'form > label > input,
  33. form > label > select' {
  34. width = '100%'
  35. boxSizing = 'border-box'
  36. }

Branches

Latest commits

  • 957de51fTickets conductor: T36 live, #36 review, #50 donemre
  • bc2fde32Merge branch 'main' into t36-stylemre
  • b7ca093atests: wait for the new row and normalize editor marker spacesmre
  • 41da3525Tickets conductor: flake cause, T36 deploy stepmre
  • 64c477e6Tickets conductor: deploy waits for Arachnemre
  • 467d7286Tickets conductor: T36 done, deploy questionmre
  • fed5ca81ticket_list: remove repeated selected-state coloursmre
  • 8542fc8aTickets conductor: T36 proof reviewedmre
  • 35980936inbox: preserve desktop columns after list styles were scopedmre
  • 2a5b8b91Tickets conductor: T36 cap stop, resumed for proofmre
  • c077a5cbstyles: format Style with nested language rulesmre
  • ccdde2beticket: format Style with nested language rulesmre
  • d083535bticket_list: nest Style rules and bare media queriesmre
  • c24608ebmarkdown: format Style with nested language rulesmre
  • de964b3bsettings: format Style with nested language rulesmre
  • 03c1de05new_project: format Style with nested language rulesmre
  • bd76cfa6connect: format Style with nested language rulesmre
  • 01fad593inbox: format Style with nested language rulesmre
  • 79dc9392you: format Style with nested language rulesmre
  • 78073baamain: format Style with nested language rulesmre