Difference between revisions of "Module:Citation/CS1/styles.css"
sync from sandbox;
m (1 revision imported: Content from Template:Reflist on Wikipedia) |
(sync from sandbox;) |
||
Line 36: | Line 36: | ||
the .id-lock-... selectors are for use by non-citation templates like | the .id-lock-... selectors are for use by non-citation templates like | ||
{{Catalog lookup link}} | {{Catalog lookup link}} | ||
bg-size `contain` in Minerva and Timeless is too large, so we set a size for them | |||
and then exclude them later | |||
*/ | */ | ||
.id-lock-free | .id-lock-free.id-lock-free a { | ||
. | background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg) | ||
background: | |||
right 0.1em center/9px no-repeat; | right 0.1em center/9px no-repeat; | ||
} | } | ||
.id-lock- | body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a { | ||
.id-lock- | background-size: contain; | ||
. | } | ||
. | |||
background: | .id-lock-limited.id-lock-limited a, | ||
.id-lock-registration.id-lock-registration a { | |||
background: url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg) | |||
right 0.1em center/9px no-repeat; | right 0.1em center/9px no-repeat; | ||
} | } | ||
.id-lock- | body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a, | ||
. | body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a { | ||
background: | background-size: contain; | ||
} | |||
.id-lock-subscription.id-lock-subscription a { | |||
background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg) | |||
right 0.1em center/9px no-repeat; | right 0.1em center/9px no-repeat; | ||
} | |||
body:not(.skin-timeless):not(.skin-minerva) .id-lock-subscription a { | |||
background-size: contain; | |||
} | } | ||
Line 66: | Line 75: | ||
*/ | */ | ||
.cs1-ws-icon a { | .cs1-ws-icon a { | ||
background: | background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg) | ||
right 0.1em center/12px no-repeat; | right 0.1em center/12px no-repeat; | ||
} | |||
body:not(.skin-timeless):not(.skin-minerva) .cs1-ws-icon a { | |||
background-size: contain; | |||
} | } | ||
Line 94: | Line 106: | ||
.cs1-maint { | .cs1-maint { | ||
display: none; | display: none; | ||
color: # | color: #2C882D; | ||
margin-left: 0.3em; | margin-left: 0.3em; | ||
} | } | ||
Line 119: | Line 131: | ||
.citation .mw-selflink { | .citation .mw-selflink { | ||
font-weight: inherit; | font-weight: inherit; | ||
} | |||
html.skin-theme-clientpref-night .cs1-maint { | |||
color: #18911F; | |||
} | |||
/* Remove next rule when [[phab:T360562]] is fixed and adjust above usual colors */ | |||
html.skin-theme-clientpref-night .cs1-visible-error, | |||
html.skin-theme-clientpref-night .cs1-hidden-error { | |||
color: #f8a397; | |||
} | |||
@media (prefers-color-scheme: dark) { | |||
/* Remove next rule when [[phab:T360562]] is fixed and adjust above usual colors */ | |||
html.skin-theme-clientpref-os .cs1-visible-error, | |||
html.skin-theme-clientpref-os .cs1-hidden-error { | |||
color: #f8a397; | |||
} | |||
html.skin-theme-clientpref-os .cs1-maint { | |||
color: #18911F; | |||
} | |||
} | } |