Debian Codegraph @

skins/MinervaNeue/resources/skins.minerva.base.styles/content/links.less

raw
1 @import 'mediawiki.mixins.less';
2 @import '../../../minerva.less/minerva.variables.less';
3 @import '../../../minerva.less/minerva.mixins.less';
4
5 /* This not does apply to links with role button per discussion on T373989 */
6 a:where( :not( [ role='button' ] ) ) {
7 .cdx-mixin-link-base();
8 }
9
10 a:where( .new:not( [ role='button' ] ) ) {
11 .cdx-mixin-link-red();
12 }
13
14 /**
15 * Note that certain links may not have an href selector.
16 * It is particularly important on wikis for example inside navbox's that these
17 * links can be differentiated from other links. Thus we only apply the linkColor to links with href
18 * attributes.
19 * This can be removed when Minerva uses ResourceLoaderSkinModule `elements` feature.
20 */
21 a.mw-selflink,
22 a:not( [ href ] ) {
23 color: @color-base;
24 font-weight: bold;
25 text-decoration: inherit;
26 /* The anchor is functionally a link so show a hand cursor. */
27 cursor: pointer;
28 }
29
30 // External links
31 // Use of `a` element selector due to its widespread usage and for limiting generic class scope.
32 // `a.external` is for footer's “Creative Commons” license link only.
33 a.external {
34 // background-image is specified by ResourceLoader via skin.json.
35 background-position: center right;
36 background-repeat: no-repeat;
37 // Force the image size to be 10px.
38 background-size: 10px;
39 padding-right: 13px;
40 /* Plainlinks - this can be used to switch
41 * off special external link styling - copied from content-links SkinModule feature. */
42 .plainlinks & {
43 background: none !important;
44 padding: 0 !important;
45 }
46 }
47
48 // Generic class name needed
49 .return-link {
50 display: block;
51 font-size: @font-size-minerva-small;
52 margin-top: 1.5em;
53 .cdx-mixin-link-base();
54 }