sirius/js/theme.js
Local Dev 890af362b8 sites: Ubuntu everywhere; opaque bottom rail on mobile
Fraunces/Ubuntu font picker is gone. theme.js used to persist the
choice in localStorage and paint a pill in the corner; now it just
sets data-font-cmp="ubuntu" on <html> so every page that already
carries the html[data-font-cmp="ubuntu"] rules in its stylesheet
switches to Ubuntu — the Bitcoin Cash brand face — on load. Same
one-line runtime on both sirius-x and hephaestus.x theme.js.

Mobile bottom nav rail was rgba(11,14,20,.52) with no blur, so
whatever body text was scrolled behind it bled straight through the
half-transparent bar — first sentence of How it works ended up
visually merged with the sidebar icons on hephaestus.x, section
headings ran under the Sirius.x rail. Bumped to rgba(...,.94) and
added backdrop-filter:blur(12px); content underneath is now covered
instead of showing through. Same tweak on all six Sirius.X pages
plus Hephaestus.X home.
2026-09-22 19:47:52 +02:00

16 lines
748 B
JavaScript

// Sirius.X font — Ubuntu, always. The Fraunces/Ubuntu toggle was
// removed 2026-09-22; readers on every page get the Bitcoin Cash brand
// font without a picker in the corner. The runtime attribute goes on
// <html> so the same `html[data-font-cmp="ubuntu"]` rules already
// embedded in every page's stylesheet take effect on load.
//
// This file stays in place (rather than being deleted) so pages that
// still reference it via <script src="js/theme.js"> keep loading a
// valid module. Delete the include from a page and the attribute is
// no longer set, and Fraunces returns.
(function () {
try {
document.documentElement.setAttribute("data-font-cmp", "ubuntu");
} catch (e) { /* prehistoric browser; give up quietly */ }
})();