Template:Seealso/styles.css: Difference between revisions
Template page
More actions
Rebuild as an inline See-also hatnote with typed slots that group same-platform links under one shared suffix |
m Move italics from wikitext to CSS so internal links can be un-italicised; increase indent |
||
| Line 1: | Line 1: | ||
.loka-seealso { | .loka-seealso { | ||
margin: 0 0 .5em; | margin: 0 0 .5em; | ||
padding-left: . | padding-left: 1.8em; | ||
font-style: italic; | font-style: italic; | ||
font-size: .85em; | font-size: .85em; | ||
} | |||
/* Italic comes from the parent rule above (inherited by everything, | |||
links included, since the wikitext itself no longer wraps the line in | |||
''...'') -- this un-italicises specifically the plain/internal wiki | |||
links (domestic d1-d6 items, and the trailing [[Loka Forums]] link in | |||
the forum group's suffix), while leaving the external, quoted-title | |||
platform links (Forums threads, Wikipedia, MCwiki) italic. Internal | |||
links get no special class from MediaWiki, external ones always get | |||
class="external" -- :not(.external) is what tells them apart. */ | |||
.loka-seealso a:not(.external) { | |||
font-style: normal; | |||
} | } | ||
Latest revision as of 22:25, 19 August 2026
.loka-seealso {
margin: 0 0 .5em;
padding-left: 1.8em;
font-style: italic;
font-size: .85em;
}
/* Italic comes from the parent rule above (inherited by everything,
links included, since the wikitext itself no longer wraps the line in
''...'') -- this un-italicises specifically the plain/internal wiki
links (domestic d1-d6 items, and the trailing [[Loka Forums]] link in
the forum group's suffix), while leaving the external, quoted-title
platform links (Forums threads, Wikipedia, MCwiki) italic. Internal
links get no special class from MediaWiki, external ones always get
class="external" -- :not(.external) is what tells them apart. */
.loka-seealso a:not(.external) {
font-style: normal;
}
.loka-seealso-forum-icon img,
.loka-seealso-wiki-icon img,
.loka-seealso-mc-icon img {
vertical-align: -1.5px;
}
/* Same reasoning as Template:Wikipedia's own icon -- solid black glyph,
inverted to white by default since the wiki defaults to dark mode. */
.loka-seealso-wiki-icon img {
filter: invert(1);
}
@media (prefers-color-scheme: light) {
.loka-seealso-wiki-icon img {
filter: none;
}
}