blob: cdd3ed4712ed4f05599e9c257cd90d4307beb6d7 (
plain) (
blame)
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
34
35
36
37
38
39
40
41
|
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@include iro.props-namespace('colored-links') {
@include iro.props-store((
--colors: (
--idle: fn.global-color(--accent --link-idle --obj-lo),
--visited: fn.global-color(--accent --link-visited --obj-lo),
--key-focus: (
--border: fn.global-color(--focus --fill),
--shadow: fn.global-color(--focus --shadow),
),
)
), 'colors');
@include iro.bem-scope(iro.props-namespace()) {
:link {
color: fn.color(--idle);
text-decoration: underline;
}
:visited {
color: fn.color(--visited);
text-decoration: underline;
}
:link,
:visited {
margin: -2px;
border: 2px solid transparent;
border-radius: 2px;
@include iro.bem-at-theme('keyboard') {
&:focus {
border-color: fn.color(--key-focus --border);
box-shadow: fn.color(--key-focus --shadow);
}
}
}
}
}
|