components
All repositories: gitoria
3.6 KB
// components/styles.hl — the SITE's own CSS (page layout: header, main, the home list), served as /__hl/app.css. Every component// carries its own Style in its file (components/*/*.hl). The site shows the library's BASE LOOK (ticket #15): black, white and the greys of// shared/base.hl — it declares none of the WorldAPI tokens (--color-…), so every component shows its own base fallbacks, as in a bare app.// Light: white page, black text; the header is the one black block. No frames. In a styles file a bare name is a TAG (camelCase → kebab), a quoted name is a// selector written verbatim. MOBILE FIRST: every rule is the phone's; the min-width block adds the wide layout.import { var } from 'hl:web/css'import { black, greyDark, grey, greyLight, greyLighter, white } from '../shared/base.hl''*,*::before,*::after' { boxSizing = 'border-box' }html { colorScheme = 'light' }body { margin = '0' font = '16px/1.5 system-ui, sans-serif' color = black background = white }a { color = black textDecoration = 'underline' textUnderlineOffset = '.2em' }'a:hover' { textDecorationThickness = '2px' }h1 { margin = '0 0 1rem' fontSize = '1.3rem' lineHeight = '1.3' color = black }h2 { margin = '0' fontSize = '1.1rem' color = black }'.muted' { color = greyDark }button { font = 'inherit' fontWeight = '600' padding = '.4rem .9rem' color = white background = black border = '0' borderRadius = '.4rem' cursor = 'pointer' }'button:hover' { background = greyDark }'button.quiet' { color = black background = greyLighter }'button.quiet:hover' { background = greyLight }applicationHeader { position = 'sticky' top = '0' zIndex = '5' display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem 1rem' padding = '.6rem 1rem' color = white background = black }'application-header .brand' { fontWeight = '800' fontSize = '1.15rem' color = white textDecoration = 'none' }'application-header p' { margin = '0' color = grey fontSize = '.9rem' }// ---- offline (mission 046, components/main.hl): the note under the header, and the probe whose endless animation is// the shell's 1 s tick (it must be rendered for the animation to run — not display none — so: invisible)offlineNote { display = 'block' padding = '.5rem 1rem' color = black background = greyLight }netProbe { position = 'fixed' left = '0' top = '0' width = '1px' height = '1px' opacity = '0' pointerEvents = 'none' animation = 'components-net-tick 1s linear infinite' }'@keyframes components-net-tick' = {'from' = { opacity = '0' }to = { opacity = '0' }}main { display = 'block' maxWidth = '40rem' margin = '0 auto' padding = '1rem' }// ---- the home ---------------------------------------------------------------------------------'#components' { display = 'grid' gap = '.5rem' margin = '0' padding = '0' listStyle = 'none' }'#components li' { display = 'grid' gap = '.15rem' padding = '.7rem 1rem' background = greyLighter borderRadius = '.5rem' }'#components p' { margin = '0' color = greyDark }// ---- the Markdown editor demo ------------------------------------------------------------------'md-editor-demo h2' { margin = '1rem 0 .3rem' fontSize = '1rem' }'md-editor-demo pre' { margin = '0 0 1rem' whiteSpace = 'pre-wrap' overflowWrap = 'anywhere' }'md-editor-demo form > md-editor' { margin = '0 0 1rem' }// ---- the modal demo --------------------------------------------------------------------------------'.modal-openers' { display = 'flex' flexWrap = 'wrap' gap = '.5rem' }'modal-demo input' { font = 'inherit' padding = '.35rem .6rem' color = black background = greyLighter border = '0' borderRadius = '.4rem' }
Branches
- mainmain branch
Latest commits
- 5a98d77ecomponents #15 (mission 003) 1/2: black/white base look — greys for nuances, no WorldAPI fallbacks, no decorative frames; site + icon black/white; gate 230/0mre
- 3f93d716components code order (mission 002) 4/4: docs, tests/letcount.py, tests/same-output*, reportmre
- e747cfa0components code order (mission 002) 3/4: let only where reassigned (257 dropped, 0 never-reassigned left); gate 220/0, layouts gate 73/0, same outputmre
- 172914a3components code order (mission 002) 2/4: lib/uploads.hl (demo upload storage), thin demo handlers, project.hl map; gate 220/0, same outputmre
- d29f35b1components code order (mission 002) 1/4: styles.hl -> components/styles.hl; gate 220/0, same outputmre
- 09945750components: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, http1 773de63e); gate 220/0mre
- ede4d19acomponents: Hybriel master 190aa11d (fc838894 GC correctness, #126 closure scopes, #127); gate 220/0mre
- 2bb9a935components: Hybriel master 8efba065 (re-vendor round 069: #126 memory, #48 lambda copy)mre
- e4f01768antcolony#40: mission references point to the moved missionsmre
- d32b44e2antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
- 0fb80b57components: Hybriel master ff51cf46 (re-vendor round)mre
- 57408b6ecomponents#14: installable app (manifest, service worker, offline index), own iconmre
- 317bd09fdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- becbd59bcomponents#13: modal dialog (<dialog> based, focus wrap, backdrop/Esc/x close with reason, scroll lock, footer buttons)mre
- 367dd19adeploy.sh: never send .git or .gitignore to Byrodinmre
- 4b4dabe5State of 2026-09-27, before the move to gitoriamre