2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2018-05-19 18:17:31 +00:00
|
|
|
@import '../../minerva.less/minerva.variables';
|
|
|
|
@import '../../minerva.less/minerva.mixins';
|
2017-07-12 15:12:40 +00:00
|
|
|
|
2018-03-26 17:41:36 +00:00
|
|
|
/**
|
2018-03-28 17:39:58 +00:00
|
|
|
* Note that certain links may not have an href selector.
|
|
|
|
* It is particularly important on wikis for example inside navbox's that these
|
2018-03-26 17:41:36 +00:00
|
|
|
* links can be differentiated from other links. Thus we only apply the linkColor to links with href
|
|
|
|
* attributes.
|
|
|
|
*/
|
2018-03-29 18:43:55 +00:00
|
|
|
/* stylelint-disable no-descending-specificity */
|
|
|
|
a:not( [href] ) {
|
|
|
|
color: @colorGray2;
|
2018-03-26 17:41:36 +00:00
|
|
|
}
|
|
|
|
|
2017-07-12 15:12:40 +00:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2018-03-29 18:43:55 +00:00
|
|
|
color: @linkColor;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: #5a3696;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: #faa700;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.new,
|
|
|
|
&.new:visited,
|
|
|
|
&.new:hover {
|
|
|
|
color: @redLinkColor;
|
|
|
|
// Take care of headings in page lists.
|
|
|
|
> * {
|
|
|
|
color: @redLinkColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-14 16:51:50 +00:00
|
|
|
&.extiw, // internal
|
2017-07-12 15:12:40 +00:00
|
|
|
&.external {
|
2018-06-14 16:51:50 +00:00
|
|
|
// background-image is specified by ResourceLoader.
|
2018-06-21 18:18:20 +00:00
|
|
|
// Force the image size to be 10px.
|
|
|
|
.background-size( 10px, 10px );
|
2017-07-12 15:12:40 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center right;
|
|
|
|
padding-right: 13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generic class name needed
|
2017-12-13 00:48:04 +00:00
|
|
|
.return-link {
|
2017-07-12 15:12:40 +00:00
|
|
|
display: block;
|
|
|
|
font-size: 0.9em;
|
|
|
|
margin-top: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Plainlinks - this can be used to switch
|
|
|
|
* off special external link styling */
|
|
|
|
.plainlinks a {
|
|
|
|
background: none !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
2017-11-10 15:33:55 +00:00
|
|
|
|
|
|
|
// Numbered external links, copied from content.parsoid.less
|
|
|
|
// TODO: Separate theme-agnostic rules from that module
|
|
|
|
// so we can load it here.
|
|
|
|
.mw-parser-output {
|
|
|
|
counter-reset: mw-numbered-ext-link;
|
|
|
|
|
|
|
|
a[rel~='mw:ExtLink']:empty:after {
|
|
|
|
content: '[' counter( mw-numbered-ext-link ) ']';
|
|
|
|
counter-increment: mw-numbered-ext-link;
|
|
|
|
}
|
|
|
|
}
|