summaryrefslogtreecommitdiffstats
path: root/src/scopes/_colored-links.scss
blob: d44dffc32dc16c30dc91ec872b3da5c6786e6595 (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
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;

@include iro.props-namespace('colored-links') {
    @include iro.props-store((
        --colors: (
            --link: (
                --idle:    fn.global-color(--accent --link-idle --obj-lo),
                --visited: fn.global-color(--accent --link-visited --obj-lo),
            )
        )
    ), 'colors');

    @include iro.bem-scope(iro.props-namespace()) {
        :link {
            color:           fn.color(--link --idle);
            text-decoration: underline;
        }

        :visited {
            color:           fn.color(--link --visited);
            text-decoration: underline;
        }
    }
}