Skip to main content

8 posts tagged with "CSS"

Stylesheets, the cascade, and the generated CSS the framework emits

View All Tags

Why named classes sit on top of the presets, and how "where it comes from" is worked out

· 3 min read
Jon-Michael Lastimosa
Senior Web Developer

The question: Roadmap 8f: "Style through named classes in the Live Editor: give an element a class, and styling the class restyles every element that has it. Combo classes, a 'where it comes from' view and a count of where else the class is used. It sits on top of the presets rather than beside them." Where do classes live, what wins when a class and a preset disagree, and how can the editor tell which one set a value?

Why Colour Modes re-bind the palette's CSS variables, and which mode wins

· 3 min read
Jon-Michael Lastimosa
Senior Web Developer

The question: Roadmap 8d: "Give the Theme Settings colours (and sizes) more than one set of values (Light, Dark, a second brand) and switch a section, a page or the whole site between them; a visitor's dark-mode preference can pick the mode." How should a mode reach everything on the page, and when two apply, which one wins?

Why menu item styles split into a base treatment plus stackable modifiers

· 4 min read
Jon-Michael Lastimosa
Senior Web Developer

The question: The Menu Item Style control offered ten treatments, but Box and Highlight rendered from the identical fill rule, Pill was just Box with a rounder radius, and Fade only changed the resting opacity — something that would happily sit on top of any other style. We wanted to add premium treatments (a gliding indicator, a gradient underline, a marker swipe). Do we keep appending tiles to one flat picker, or is the list itself the wrong shape?

Why converted styles keep getting overruled — and why we re-assert the source instead of building an overrule detector

· 5 min read
Jon-Michael Lastimosa
Senior Web Developer

The question: The Site Converter kept producing pages where a shortcode's own CSS or a unysonplus-theme default silently overruled the styles we mapped from the source — headings rendered bold when the source was regular, service-card icons came out green instead of grey, footer address text went black. Each was fixed one property at a time. Should we build a general "checker/detector" that stops shortcode and parent-theme styles from overruling the source?