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

sync from sandbox;
(username removed)
m (1 revision imported)
WordPress>Trappist the monk
(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: 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 {
 
.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)
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-size: contain;
}
 
.id-lock-subscription.id-lock-subscription a {
background: url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg)
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 65: Line 77:
background: url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg)
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 90: Line 106:
.cs1-maint {
.cs1-maint {
display: none;
display: none;
color: #3a3;
color: #2C882D;
margin-left: 0.3em;
margin-left: 0.3em;
}
}
Line 115: 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;
}
}
}