CSS

Definition and stakes

Page styles

“ The following bare CSS in the work's page content is bad form:
Avast, ye, Long John Silver! This is to say: the classes defined in CSS (including work-specific CSS) should nearly always be invoked via a template, not directly. It is much easier to reason about and maintain templates than HTML/CSS, even if the template itself constructs HTML/CSS.
CSS vs templates Some things are suitable to be handled by work-specific CSS, and other things are more suitable for a template.
”
Source: Wikisource

Page styles

“ A CSS "stylesheet" can be applied to a Index page, which will allow every Page: namespace page within it to share the same styling. This CSS is automatically included when pages are transcluded using the tag.
You do not need to use CSS for a work if you don't want to. It is provided to make life easier, not harder.
How to apply CSS The CSS is read from the /styles.css subpage of the Index page. If this page does not exist, no styles will be applied by default by the ProofreadPage extension.
”
Source: Wikisource

Xover/Archives/2021

“ I don't want to encourage end-user use of any CSS class directly (in fact I want to very very emphatically prevent it) .
can't be tracked, can't be sensibly adjusted, can't... Ugh! If we don't let end users use classes directly, where to store the associated style rules (or even whether they are CSS at all!) becomes a technical consideration. In principle, specifying |class=foo could make the template spit out an XML processing instruction, that an extension transformed into an event sent to a Gadget, that triggered an embedded Flash player that displayed the... ”
Source: Wikisource

Get perspective with Kwize: daily news enlightened by great literature