Debian Codegraph @

skins/Vector/resources/skins.vector.styles/links.less

raw
1 a {
2 .cdx-mixin-link-base();
3 /* T373989 */
4 border-radius: 0;
5 }
6
7 // Red links
8 a.new {
9 .cdx-mixin-link-red();
10 }
11
12 // External links
13 // Use of `a` element selector for limiting generic class scope due to `.external` widespread usage.
14 .mw-parser-output {
15 a {
16 // Deal with long links (T327334, inspired by Minerva solution T62387)
17 word-wrap: break-word;
18 }
19
20 a.external {
21 // Use copy of Codex/OOUI WikimediaUI theme's 'linkExternal' icon in progressive color.
22 // Note that CSSJanus is flipping the `ltr` in the URL to `rtl`.
23 // Therefore make sure that both icons are available and up-to-date.
24 background-image: url( images/link-external-small-ltr-progressive.svg );
25 background-position: center right;
26 background-repeat: no-repeat;
27 // Equivalent of `12px` at calculation base of `14px` is `0.857em`.
28 background-size: 0.857em;
29 padding-right: 1em;
30
31 // See T330712 for better understanding of this class and any future changes.
32 &.free {
33 word-break: break-all;
34 }
35 }
36 }
37
38 /**
39 * The following styles are copied from content.links.less
40 */
41
42 /* self links */
43 a.mw-selflink {
44 color: inherit;
45 font-weight: bold;
46 text-decoration: inherit;
47
48 &:hover {
49 cursor: inherit;
50 }
51 }
52
53 /* Underline preference */
54 .mw-underline-always a {
55 text-decoration: underline;
56 }
57
58 .mw-underline-never a {
59 text-decoration: none;
60 }
61
62 /* Plainlinks - this can be used to switch
63 * off special external link styling */
64 .plainlinks a.external {
65 background: none !important; /* stylelint-disable-line declaration-no-important */
66 padding: 0 !important; /* stylelint-disable-line declaration-no-important */
67 }