gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit07ab845b07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre07ab845b/plugins/web/cssvar.hl

930 B

  1. // ONE CSS CUSTOM PROPERTY, declared as a value: `bg = var('#FFF')` in a styles file
  2. // (`import { var } from 'hl:web/css'`). The sheet walker (css.hl) gives it its NAME
  3. // from the member it is bound to, writes `--bg: #FFF` into the sheet's one `:root`,
  4. // and every use — `color = bg`, or inside a composed value `'1px solid ' + rule` —
  5. // becomes `var(--bg)`. Inside a composed value the name is not known yet (the
  6. // string is built when the styles file is constructed, before the walker names
  7. // anything), so the text carries a PLACEHOLDER by id that the walker replaces.
  8. value = null // the declared value, as written
  9. dark = null // the value under prefers-color-scheme: dark, or null
  10. Number id = 0 // minted at construction; the walker maps id → name
  11. name = null // set by the walker from the member that holds it
  12. __toString() {
  13. return 'var(--hlv' + id + ')'
  14. }

Branches

Latest commits

  • 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
  • 71b2fa4blog: hybriel#335mre
  • bd94cc7elog: #25 cause found (run() leak)mre
  • 565cb508log: H25 round 1mre
  • 90a0af84log: H25 startedmre
  • 87bd53b8mission H25mre
  • 71a746cflog: day48 livemre
  • bf568e14log: V48 mergedmre
  • 09955dedMerge v48: Hybriel set-day48, theme layouts ce4a0bamre
  • f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
  • 5d0834e7log: Apollo model rulemre
  • fe8e5bd5log: #25 sample, V48 missionmre
  • 8580c5d9log: theme fix from Atlasmre
  • 46823d93log: Apollo budget correctionmre
  • f6d32341log: Apollo on budget and #25 nextmre
  • d7184f53log: batch live, #25 evidencemre
  • 5e25e816log: W61 mergedmre
  • aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
  • aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
  • 03cb650blog: W61 theme decisionmre