-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathlink.scss
More file actions
33 lines (27 loc) · 775 Bytes
/
link.scss
File metadata and controls
33 lines (27 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@use './to-rem' as *;
@mixin kol-link($block-classname) {
.#{$block-classname} {
color: var(--color-primary);
font-weight: 400;
font-style: normal;
&:focus {
// Outline für Fokus wurde entfernt, ein focus-visible ist aber trotzdem für Tastatursteuerung berücksichtigt
outline: none;
.#{$block-classname}__text {
outline: var(--border-width) solid;
outline-offset: to-rem(0.05);
border-radius: var(--border-radius);
position: relative; // make sure focus outline is visible and not covered by adjacent element
}
}
&:focus:not([aria-disabled], [disabled]),
&:hover:not([aria-disabled], [disabled]) {
.kol-span__label {
text-decoration-thickness: 0.25em;
}
}
&:visited {
color: var(--color-visited);
}
}
}