Module:Citation/CS1/sandbox/styles.css explained

/*History of changes since last sync: 2024-08-02

/* Protection iconthe following line controls the page-protection icon in the upper right cornerit must remain within this comment

/* OverridesSome wikis do not override user agent default styles for HTML and ,unlike en.wp. On en.wp, keep these the same as .

The word-wrap and :target styles were moved here from Common.css.On en.wp, keep these the same as .

cite.citation

.citation q

/* Highlight linked elements (such as clicked references) in blue */.citation:target

/* ID and URL accessBoth core and Common.css have selector .mw-parser-output a[href$=".pdf"].externalfor PDF pages. All TemplateStyles pages are hoisted to .mw-parser-output. We needto have specificity equal to a[href$=".pdf"].external for locks to override PDF icon.That's essentially 2 classes and 1 element.

the .id-lock-... selectors are for use by non-citation templates like

bg-size `contain` in Minerva and Timeless is too large, so we set a size for themand then exclude them later

.id-lock-free.id-lock-free a

.id-lock-limited.id-lock-limited a,.id-lock-registration.id-lock-registration a

.id-lock-subscription.id-lock-subscription a

/* WikisourceWikisource icon when |chapter= or |title= is wikilinked to Wikisourceas in cite wikisource

.cs1-ws-icon a

body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .cs1-ws-icon a

/* Errors and maintenance */.cs1-code

.cs1-hidden-error

.cs1-visible-error

.cs1-maint

/* kerning */.cs1-kern-left

.cs1-kern-right

/* selflinks – avoid bold font style when cs1|2 template links to the current page */.citation .mw-selflink

@media screen

@media screen and (prefers-color-scheme: dark)