diff --git a/whitepaper/inject-whitepaper-css.py b/whitepaper/inject-whitepaper-css.py index 056e9c8..9d0fe61 100644 --- a/whitepaper/inject-whitepaper-css.py +++ b/whitepaper/inject-whitepaper-css.py @@ -33,6 +33,11 @@ main > h1, main > h2, section > h2 {{ font-weight: normal; letter-spacing: 0.01em; }} +/* Declarative period on the whitepaper title picks up the same brand + green (#227842) as the homepage "lumbda." period. */ +h1.title .period {{ + color: #227842; +}} /* docutils's responsive.css blanket-pads every `body > *`, which explodes the uncloseai floating button to nearly half the viewport. Revert the cascade inside that button so its own stylesheet wins. */ @@ -65,6 +70,14 @@ def main(argv): sys.stderr.write("inject-whitepaper-css: no found\n") return 1 html = html.replace("", style_block + "", 1) + # Wrap the trailing period on the `

lumbda.

` + # heading in a span so CSS can color just the period green. Docutils + # emits exactly this markup for the top-level RST title. + html = html.replace( + '

lumbda.

', + '

lumbda

', + 1, + ) with open(html_path, "w") as f: f.write(html) print(f"inject-whitepaper-css: injected {len(style_block)} bytes into {html_path}") diff --git a/whitepaper/lumbda-whitepaper.html b/whitepaper/lumbda-whitepaper.html index b3058e8..98041c4 100644 --- a/whitepaper/lumbda-whitepaper.html +++ b/whitepaper/lumbda-whitepaper.html @@ -4,7 +4,7 @@ -Lumbda +lumbda.