components
All repositories: gitoria
3.7 KB
// 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). Tokens: shared/tokens.hl (verbatim copy of loreana worldapi-tokens/tokens.hl);// the site sets only its accent. 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 { blueLight, colorText, colorBackground, colorTextStrong, colorTextMuted, colorBackgroundSunken, colorSurface, colorBorder, colorAccentText } from './shared/tokens.hl'colorAccent = var(blueLight) // the site's accent: the only token it sets'*,*::before,*::after' { boxSizing = 'border-box' }html { colorScheme = 'dark' }body { margin = '0' font = '16px/1.5 system-ui, sans-serif' color = colorText background = colorBackground }a { color = colorAccent textDecoration = 'none' }'a:hover' { textDecoration = 'underline' }h1 { margin = '0 0 1rem' fontSize = '1.3rem' lineHeight = '1.3' color = colorTextStrong }h2 { margin = '0' fontSize = '1.1rem' color = colorTextStrong }'.muted' { color = colorTextMuted }button { font = 'inherit' fontWeight = '600' padding = '.4rem .9rem' color = colorAccentText background = colorAccent border = '0' borderRadius = '.4rem' cursor = 'pointer' }'button:hover' { filter = 'brightness(1.1)' }'button.quiet' { color = colorText background = 'transparent' border = '1px solid ' + colorBorder }'button.quiet:hover' { background = colorSurface filter = 'none' }applicationHeader { position = 'sticky' top = '0' zIndex = '5' display = 'flex' flexWrap = 'wrap' alignItems = 'baseline' gap = '.2rem 1rem' padding = '.6rem 1rem' background = colorBackgroundSunken borderBottom = '1px solid ' + colorBorder }'application-header .brand' { fontWeight = '800' fontSize = '1.15rem' color = colorAccent }'application-header p' { margin = '0' color = colorTextMuted 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 = colorTextStrong background = colorSurface }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 = colorSurface border = '1px solid ' + colorBorder borderRadius = '.5rem' }'#components p' { margin = '0' color = colorTextMuted }// ---- 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 = colorText background = colorBackgroundSunken border = '1px solid ' + colorBorder borderRadius = '.4rem' }
Branches
- mainmain branch
Latest commits
- 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