gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd083535bd083535bticket_list: nest Style rules and bare media queriesmred083535b/components/styles.hl

2.0 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 dbe3de7 — 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 { color = colorTextMuted fontSize = '.875rem' whiteSpace = 'nowrap' }
  19. // a label with its field: the caption above, the field the full width (the field stood beside the caption, at its own width)
  20. 'form > label' { display = 'grid' gap = '.3rem' margin = '0' }
  21. 'form > label > input,
  22. form > label > select' { width = '100%' boxSizing = 'border-box' }

Branches

Latest commits

  • 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
  • 5499c290Sync theme unchanged from layouts 17e0f03mre
  • fd33ee21Sync reviewed components from 8176eb1mre
  • 93348453Re-vendor tickets to Hybriel set day35mre
  • a4123831tickets#42: the /connect and /login/callback error pages are app pages: the function routes redirect to /connect/failed/<code> and /login/failed/<code> (components/problem.hl, sentences in lib/problems.hl), htmlPage and its hand-written stylesheet are gone; gate tests/error-pages.mjsmre
  • cefc7b4atickets: a startup error prints its message before exit 1 (hybriel#247)mre
  • 99bd6570tickets: lib/migrate.hl writes no table of another topic any more: projects.hl rewriteSlug / addProjectNamed / hasMembers, tickets.hl moveToProject / ticketRecords / ticketRecordsOf, events.hl renameStates / eventRecords / eventRecordsOf; the migration calls them (tickets#47)mre
  • b57161e3tickets: the markup names its own rules (Style.pMessage, Style.olTickets, ...) instead of hand-written class strings that copy a stylesheet rule; the shared bodies sit in lib/looks.hl (tickets#38)mre
  • f767b24dtickets: 111 needless let became plain declarations (3 in ticket.hl, ticket_list.hl, comments.hl and 108 never-reassigned, not captured loop-body ones); the 212 really reassigned lets stay (tickets#44)mre
  • 16c0d3b5tickets: the modal window is phone first: the full-screen sheet is the base rule, the centred window sits in the min-width 60rem block (tickets#39)mre
  • 090ee809tickets: every component's styles in its own nested Style {} block; styles.hl keeps only the theme inherit, the accent and the site-wide rules (tickets#36)mre
  • d395763ftickets: ident-access gate ports 8769/8768 (8797 is taken on loreana)mre
  • afb9a403tickets: an ident access key (Authorization: Bearer idt_…) works in the API (ident#27 app side): lib/ident-access.hl copied from components, read keys GET only, ident down 503; gate tests/ident-access-tickets.mjsmre