|
3 | 3 |
|
4 | 4 | .elm-link { |
5 | 5 | display: inline-block; |
6 | | - border-radius: to-rem($pxValue: 4); |
| 6 | + border-radius: to-rem($pxValue: 6); |
7 | 7 |
|
8 | 8 | // Link underline |
9 | | - text-underline-offset: to-rem($pxValue: 3); |
| 9 | + text-underline-offset: to-rem($pxValue: 1); |
10 | 10 | text-underline-position: under; |
| 11 | + text-decoration-thickness: to-rem($pxValue: 1); |
11 | 12 | @supports (text-underline-offset: 3px) { |
12 | 13 | text-underline-position: auto; |
13 | 14 | } |
14 | 15 |
|
15 | 16 | &:active { |
16 | | - color: initial; |
| 17 | + font-size: to-em($pxValue: 14); |
17 | 18 | } |
18 | 19 |
|
19 | 20 | // "disabled" links |
|
26 | 27 | color: initial; |
27 | 28 | } |
28 | 29 | } |
| 30 | + &[data-variant="internal"] { |
| 31 | + @include icon(glyph(link), 20, "outline", "after"); |
| 32 | + } |
| 33 | + &[data-variant="external"] { |
| 34 | + @include icon(glyph(link-external), 20, "outline", "after"); |
| 35 | + } |
29 | 36 |
|
| 37 | + &[data-variant="internal"], |
| 38 | + &[data-variant="external"] { |
| 39 | + color: #282d37; |
| 40 | + &::after { |
| 41 | + margin-top: -3px; |
| 42 | + --icon-margin-before: #{to-rem($pxValue: 4)}; |
| 43 | + } |
| 44 | + &:focus-visible { |
| 45 | + outline-offset: -1px; |
| 46 | + padding: 0 2px 0 2px; |
| 47 | + } |
| 48 | + } |
30 | 49 | // Sizes |
31 | 50 | &%size-Small { |
32 | 51 | &:not(.is-icon-text-replace) { |
33 | | - font-size: to-rem($pxValue: 14); |
34 | | - } |
35 | | - &[rel], |
36 | | - &[data-icon], |
37 | | - &[data-icon-before] { |
38 | | - @include iconMeta(20); |
| 52 | + font-size: to-em($pxValue: 12); |
39 | 53 | } |
40 | | - &[data-icon-after]::after { |
41 | | - @include iconMeta($size: 20, $position: "after"); |
| 54 | + &:active { |
| 55 | + font-size: to-em($pxValue: 10); |
42 | 56 | } |
43 | 57 | } |
44 | 58 |
|
45 | 59 | &[data-size="small"] { |
| 60 | + color: #42464f; |
46 | 61 | @extend %size-Small; |
47 | | - } |
48 | | - |
49 | | - // Define the available icons |
50 | | - &[rel="configuration"] { |
51 | | - @include icon(glyph(settings), 24, "outline", $partial: $partial); |
52 | | - } |
53 | | - &[rel="messages"] { |
54 | | - @include icon(glyph(chat), 24, "outline", $partial: $partial); |
55 | | - } |
56 | | - &[rel="account"] { |
57 | | - @include icon(glyph(account), 24, "outline", $partial: $partial); |
58 | | - } |
59 | | - &[rel="configuration"], |
60 | | - &[rel="messages"], |
61 | | - &[rel="account"] { |
62 | | - &::before { |
63 | | - // preventing an underlined icon on click |
64 | | - display: inline-block; |
| 62 | + &::after { |
| 63 | + --icon-font-size: #{to-rem($pxValue: 16)}; |
65 | 64 | } |
66 | 65 | } |
67 | 66 | } |
0 commit comments