Module:Citation/CS1/styles.css: Difference between revisions
m 1 revision imported |
Jules Carry (talk | contribs) m 1 revision imported |
||
(One intermediate revision by one other user not shown) | |||
Line 33: | Line 33: | ||
for PDF pages. All TemplateStyles pages are hoisted to .mw-parser-output. We need | for PDF pages. All TemplateStyles pages are hoisted to .mw-parser-output. We need | ||
to have specificity equal to a[href$=".pdf"].external for locks to override PDF icon. | to have specificity equal to a[href$=".pdf"].external for locks to override PDF icon. | ||
the .id-lock-... selectors are for use by non-citation templates like {{Catalog lookup link}} | |||
*/ | */ | ||
.id-lock-free a, | |||
.citation .cs1-lock-free a { | .citation .cs1-lock-free a { | ||
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png) no-repeat; | background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png); | ||
background-image: linear-gradient(transparent, transparent), url(//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg); | |||
background-repeat: no-repeat; | |||
background-size: 9px; | |||
background-position: right .1em center; | background-position: right .1em center; | ||
} | } | ||
.id-lock-limited a, | |||
.id-lock-registration a, | |||
.citation .cs1-lock-limited a, | .citation .cs1-lock-limited a, | ||
.citation .cs1-lock-registration a { | .citation .cs1-lock-registration a { | ||
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png) no-repeat; | background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png); | ||
background-image: linear-gradient(transparent, transparent), url(//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg); | |||
background-repeat: no-repeat; | |||
background-size: 9px; | |||
background-position: right .1em center; | background-position: right .1em center; | ||
} | } | ||
.id-lock-subscription a, | |||
.citation .cs1-lock-subscription a { | .citation .cs1-lock-subscription a { | ||
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png) no-repeat; | background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png); | ||
background-position: right .1em center; | background-image: linear-gradient(transparent, transparent), url(//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg); | ||
background-repeat: no-repeat; | |||
background-size: 9px; | |||
background-position: right .1em center; | |||
} | } | ||
Line 66: | Line 82: | ||
*/ | */ | ||
.cs1-ws-icon a { | .cs1-ws-icon a { | ||
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png) no-repeat; | background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png); | ||
background-image: linear-gradient(transparent, transparent), url(//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg); | |||
background-repeat: no-repeat; | |||
background-size: 12px; | |||
background-position: right .1em center; | background-position: right .1em center; | ||
} | } | ||
Line 121: | Line 140: | ||
.cs1-kern-wl-right { | .cs1-kern-wl-right { | ||
padding-right: 0.2em; | padding-right: 0.2em; | ||
} | |||
/* selflinks – avoid bold font style when cs1|2 template links to the current page */ | |||
.citation .mw-selflink { | |||
font-weight: inherit; | |||
} | } |