components
All repositories: gitoria
2.8 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' }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' }
Branches
- mainmain branch
Latest commits
- 4b4dabe5State of 2026-09-27, before the move to gitoriamre