2017-07-12 15:12:40 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
2021-04-29 01:01:54 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
|
|
|
@import '../../../minerva.less/minerva.mixins.less';
|
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.
|
2021-08-26 21:27:00 +00:00
|
|
|
* This can be removed when Minerva uses ResourceLoaderSkinModule `elements` feature.
|
2018-03-26 17:41:36 +00:00
|
|
|
*/
|
2018-09-11 13:13:41 +00:00
|
|
|
a:not( [ href ] ) {
|
2024-02-01 17:33:08 +00:00
|
|
|
color: var( --color-base );
|
2018-12-17 22:20:25 +00:00
|
|
|
/* The anchor is functionally a link so show a hand cursor. */
|
|
|
|
cursor: pointer;
|
2018-03-26 17:41:36 +00:00
|
|
|
}
|
|
|
|
|
2020-02-28 20:28:59 +00:00
|
|
|
/* stylelint-disable-next-line no-descending-specificity */
|
2017-07-12 15:12:40 +00:00
|
|
|
a {
|
2021-08-26 21:27:00 +00:00
|
|
|
/* `a` element code block can be removed
|
|
|
|
* when Minerva uses ResourceLoaderSkinModule `elements` feature. */
|
2020-06-12 02:35:10 +00:00
|
|
|
color: @color-link;
|
2017-07-12 15:12:40 +00:00
|
|
|
text-decoration: none;
|
2021-08-26 21:27:00 +00:00
|
|
|
background: none;
|
2017-07-12 15:12:40 +00:00
|
|
|
|
2021-08-26 21:27:00 +00:00
|
|
|
/* :visited code block can be removed
|
|
|
|
* when Minerva uses ResourceLoaderSkinModule `elements` feature. */
|
2017-07-12 15:12:40 +00:00
|
|
|
&:visited {
|
2024-03-06 01:05:46 +00:00
|
|
|
color: var( --color-visited );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 21:27:00 +00:00
|
|
|
/* :active code block can be removed
|
|
|
|
* when Minerva uses ResourceLoaderSkinModule `elements` feature. */
|
2017-07-12 15:12:40 +00:00
|
|
|
&:active {
|
2024-03-06 01:05:46 +00:00
|
|
|
color: var( --color-progressive--active );
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
2021-08-26 21:27:00 +00:00
|
|
|
/* :hover code block can be removed
|
|
|
|
* when Minerva uses ResourceLoaderSkinModule `elements` feature. */
|
2017-07-12 15:12:40 +00:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2021-11-09 07:13:02 +00:00
|
|
|
}
|
2017-07-12 15:12:40 +00:00
|
|
|
|
2021-11-09 07:13:02 +00:00
|
|
|
// External links
|
|
|
|
// Use of `a` element selector due to its widespread usage and for limiting generic class scope.
|
|
|
|
// `a.external` is for footer's “Creative Commons” license link only.
|
|
|
|
a.external,
|
|
|
|
.mw-parser-output a.external {
|
|
|
|
// background-image is specified by ResourceLoader via skin.json.
|
|
|
|
background-position: center right;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
// Force the image size to be 10px.
|
|
|
|
background-size: 10px;
|
|
|
|
padding-right: 13px;
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Generic class name needed
|
2017-12-13 00:48:04 +00:00
|
|
|
.return-link {
|
2017-07-12 15:12:40 +00:00
|
|
|
display: block;
|
2019-07-31 17:59:52 +00:00
|
|
|
font-size: @font-size-minerva-small;
|
2017-07-12 15:12:40 +00:00
|
|
|
margin-top: 1.5em;
|
|
|
|
}
|