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}} which do not have to handle PDF links
{{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 a,
.id-lock-free.id-lock-free a {
.citation .cs1-lock-free a {
background: url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg)
background: linear-gradient(transparent, transparent),
url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg)
right 0.1em center/9px no-repeat;
right 0.1em center/9px no-repeat;
}
}


.id-lock-limited a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-free a {
.id-lock-registration a,
background-size: contain;
.citation .cs1-lock-limited a,
}
.citation .cs1-lock-registration a {
 
background: linear-gradient(transparent, transparent),
.id-lock-limited.id-lock-limited a,
url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg)
.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-subscription a,
body:not(.skin-timeless):not(.skin-minerva) .id-lock-limited a,
.citation .cs1-lock-subscription a {
body:not(.skin-timeless):not(.skin-minerva) .id-lock-registration a {
background: linear-gradient(transparent, transparent),
background-size: contain;
url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg)
}
 
.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: linear-gradient(transparent, transparent),
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
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: #3a3;
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;
}
}
}