Module:Citation/CS1/styles.css: Difference between revisions

Content deleted Content added
sync from sandbox;
sync from sandbox;
Line 36:
 
the .id-lock-... selectors are for use by non-citation templates like
{{Catalog lookup link}} which do not have to handle PDF links
 
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 a, {
.citation .cs1-lock-free a {
background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg)
right 0.1em center/9px no-repeat;
}
 
body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a {
.id-lock-limited a,
background-size: contain;
.id-lock-registration a,
}
.citation .cs1-lock-limited a,
 
.citation .cs1-lock-registration a {
.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;
}
 
body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a,
.id-lock-subscription a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a {
.citation .cs1-lock-subscription a {
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;
}
 
body:not(.skin-timeless):not(.skin-minerva) .id-lock-subscription a {
background-size: contain;
}
 
Line 65 ⟶ 77:
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
right 0.1em center/12px no-repeat;
}
 
body:not(.skin-timeless):not(.skin-minerva) .cs1-ws-icon a {
background-size: contain;
}
 
Line 90 ⟶ 106:
.cs1-maint {
display: none;
color: #3a32C882D;
margin-left: 0.3em;
}
Line 115 ⟶ 131:
.citation .mw-selflink {
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;
}
}