MediaWiki:Common.less/links.less

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
// <pre>
/* =================
      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: @internal-link-color;

    &:visited,
    &:active {
        color: @internal-link-color;
    }

	// redlinks
	&.new {
		color: @redlink-color;

		&:visited {
			color: @redlink-color;
		}

	}

}

div.vectorTabs li, /* top tabs */
div.vectorMenu li, /* top tabs dropdown */
#mw-panel .portal .body li /* sidebar */ {

    a,
    a:visited,
    a:active {
        color: @internal-link-color;
    }

    // redlinks
    &.new a,
    &.new a:visited,
    &.new a:active {
        color: @redlink-color;
    }

}

/* --------------------
      external links
   -------------------- */
.mw-body-content a.external,
.mw-body-content a.extiw, /* interwiki link */ {
    color: @external-link-color;

    &:visited,
    &:active {
        color: @external-link-color;
    }

}

// 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 {{Purge}} links classified as external
.jsPurgeLink a.external {
    color: @internal-link-color;
}