mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-06 05:33:38 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dd0dc509d |
No files matched your search
@@ -83,9 +83,7 @@ export default function Title({ children, region = "top", size = 64, style, face
|
||||
fontWeight: 800,
|
||||
fontSize: size,
|
||||
lineHeight: 1.1,
|
||||
// white on its own dark plate, as raea's captions are (brand.ts CAPTION): never the website's text colour, which
|
||||
// is dark for a light page (12-06, Dutch on rc5: every hook black on the plate, 1.3:1, five floor errors)
|
||||
color: "#fff",
|
||||
color: "var(--brand-text, #fff)",
|
||||
// a dark plate, as raea's captions have: a hook over a beige coat or a sky read under 3:1 with a shadow alone
|
||||
background: "rgba(0,0,0,0.6)",
|
||||
padding: `${Math.round(px * 0.08)}px ${Math.round(px * 0.3)}px`,
|
||||
|
||||
@@ -376,15 +376,3 @@ exit 0
|
||||
assert.equal(otherRaea("0.1.16", "reading", false), undefined)
|
||||
console.log("ok a box refuses a worker on another raea")
|
||||
}
|
||||
|
||||
// a cut's titles and captions draw white on raea's dark plate, never in a brand's own text colour, which is dark for a
|
||||
// light website (12-06, Dutch on 0.1.17-rc5: every hook black on the plate at 1.3:1, five floor errors)
|
||||
{
|
||||
const title = readFileSync(new URL("../image/Title.tsx", import.meta.url), "utf8")
|
||||
const colour = title.match(/^\s*color: (.+),$/m)?.[1]
|
||||
assert.equal(colour, '"#fff"', `Title's words are ${colour}`)
|
||||
assert.match(title, /background: "rgba\(0,0,0,0\.6\)"/)
|
||||
const brand = readFileSync(new URL("../image/brand.ts", import.meta.url), "utf8")
|
||||
assert.match(brand, /export const CAPTION = \{[^}]*color: "#fff"/)
|
||||
console.log("ok titles and captions draw white on their dark plate")
|
||||
}
|
||||
+1
-1
Submodule skills updated: 7f083c16ac...d8a0dc738e.
Reference in new issue
Block a user