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
|
|
|
|
2024-10-03 18:12:18 +00:00
|
|
|
/* This not does apply to links with role button per discussion on T373989 */
|
|
|
|
a:where( :not( [ role='button' ] ) ) {
|
|
|
|
.cdx-mixin-link-base();
|
|
|
|
}
|
|
|
|
|
|
|
|
a:where( .new:not( [ role='button' ] ) ) {
|
|
|
|
.cdx-mixin-link-red();
|
|
|
|
}
|
|
|
|
|
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
|
|
|
*/
|
2024-09-17 18:03:37 +00:00
|
|
|
a.mw-selflink,
|
2018-09-11 13:13:41 +00:00
|
|
|
a:not( [ href ] ) {
|
2024-06-10 20:52:01 +00:00
|
|
|
color: @color-base;
|
2024-09-17 18:03:37 +00:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: inherit;
|
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
|
|
|
}
|
|
|
|
|
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.
|
2024-09-17 18:03:37 +00:00
|
|
|
a.external {
|
2021-11-09 07:13:02 +00:00
|
|
|
// 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;
|
2024-09-17 18:03:37 +00:00
|
|
|
/* Plainlinks - this can be used to switch
|
|
|
|
* off special external link styling - copied from content-links SkinModule feature. */
|
|
|
|
.plainlinks & {
|
|
|
|
background: none !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
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;
|
2024-09-28 00:03:22 +00:00
|
|
|
.cdx-mixin-link-base();
|
2017-07-12 15:12:40 +00:00
|
|
|
}
|