MediaWiki:Common.less
Revision as of 13:32, 10 August 2020 by Part Time Hero (talk | contribs)
//
/* =================
link colors
================= */
@internal-link-color: saturate( darken( @steel-blue, 6% ), 8% );
@external-link-color: lighten( spin( @internal-link-color, 15% ), 5% );
@redlink-color: #ba0000;
/* --------------------
internal links
-------------------- */
a,
image a {
color: FFFFFF;
&:visited,
&:active {
color: FFFFFF;
}
// redlinks
&.new {
color: FFFFFF;
&:visited {
color: FFFFFF;
}
}
}
div.vectorTabs li, /* top tabs */
div.vectorMenu li, /* top tabs dropdown */
#mw-panel .portal .body li /* sidebar */ {
a,
a:visited,
a:active {
color: FFFFFF;
}
// redlinks
&.new a,
&.new a:visited,
&.new a:active {
color: FFFFFF;
}
}
/* --------------------
external links
-------------------- */
.mw-body-content a.external,
.mw-body-content a.extiw, /* interwiki link */ {
color: FFFFFF;
&:visited,
&:active {
color: FFFFFF;
}
}
// recolor internal links classified by MediaWiki as external (eg. "Last edited" links on RS:AD)
// actually don't do this, it's too specific and overrides other colored links
// .mw-body-content a[href^="//runescape.wiki"].external,
// recolor
links classified as external
.jsPurgeLink a.external {
color: @internal-link-color;
}