diff options
Diffstat (limited to 'src/scopes/_links.vars.scss')
-rw-r--r-- | src/scopes/_links.vars.scss | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/scopes/_links.vars.scss b/src/scopes/_links.vars.scss new file mode 100644 index 0000000..7880204 --- /dev/null +++ b/src/scopes/_links.vars.scss | |||
@@ -0,0 +1,47 @@ | |||
1 | @use 'sass:map'; | ||
2 | @use '../props'; | ||
3 | @use '../vars'; | ||
4 | |||
5 | $rounding: props.def(--s-links--rounding, props.get(vars.$rounding)) !default; | ||
6 | $underline-width: props.def(--s-links--underline-width, props.get(vars.$border-width--thin)) !default; | ||
7 | $hover--underline-width: props.def(--s-links--hover--underline-width, props.get(vars.$border-width--medium)) !default; | ||
8 | |||
9 | $key-focus--border-width: props.def(--s-links--key-focus--border-width, props.get(vars.$key-focus--border-width)) !default; | ||
10 | $key-focus--border-offset: props.def(--s-links--key-focus--border-offset, props.get(vars.$key-focus--border-offset)) !default; | ||
11 | $key-focus--outline-width: props.def(--s-links--key-focus--outline-width, props.get(vars.$key-focus--outline-width)) !default; | ||
12 | |||
13 | $underline-color: props.def(--s-links--underline-color, props.get(vars.$theme, --text-mute-more)) !default; | ||
14 | |||
15 | $colored--text-color: props.def(--s-links--colored--text-color, props.get(vars.$theme, --accent, --1100)) !default; | ||
16 | $colored--underline-color: props.def(--s-links--colored--underline-color, props.get(vars.$theme, --accent, --600)) !default; | ||
17 | $colored--hover--text-color: props.def(--s-links--colored--hover--text-color, props.get(vars.$theme, --accent, --1300)) !default; | ||
18 | |||
19 | $colored--visited--text-color: props.def(--s-links--colored--visited--text-color, props.get(vars.$theme, --purple, --1100)) !default; | ||
20 | $colored--visited--underline-color: props.def(--s-links--colored--visited--underline-color, props.get(vars.$theme, --purple, --600)) !default; | ||
21 | $colored--visited--hover--text-color: props.def(--s-links--colored--visited--hover--text-color, props.get(vars.$theme, --purple, --1300)) !default; | ||
22 | |||
23 | $key-focus--text-color: props.def(--s-links--key-focus--text-color, props.get(vars.$theme, --focus, --text)) !default; | ||
24 | $key-focus--border-color: props.def(--s-links--key-focus--border-color, props.get(vars.$theme, --focus, --border)) !default; | ||
25 | $key-focus--outline-color: props.def(--s-links--key-focus--outline-color, props.get(vars.$theme, --focus, --outline)) !default; | ||
26 | |||
27 | $static-themes: props.def(--s-links); | ||
28 | @each $theme in map.keys(props.get(vars.$transparent-colors)) { | ||
29 | $link-theme: #{$theme}-static; | ||
30 | |||
31 | $static-themes: props.merge($static-themes, ( | ||
32 | $link-theme: ( | ||
33 | --text-color: props.get(vars.$transparent-colors, $theme, --800), | ||
34 | --underline-color: props.get(vars.$transparent-colors, $theme, --500), | ||
35 | |||
36 | --hover: ( | ||
37 | --text-color: props.get(vars.$transparent-colors, $theme, --900), | ||
38 | ), | ||
39 | |||
40 | --key-focus: ( | ||
41 | --text-color: props.get(vars.$transparent-colors, $theme, --900), | ||
42 | --border-color: props.get(vars.$transparent-colors, $theme, --900), | ||
43 | --outline-color: props.get(vars.$transparent-colors, $theme, --300), | ||
44 | ), | ||
45 | ) | ||
46 | )); | ||
47 | } | ||