diff options
Diffstat (limited to 'src/objects/_navbar.vars.scss')
-rw-r--r-- | src/objects/_navbar.vars.scss | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/objects/_navbar.vars.scss b/src/objects/_navbar.vars.scss new file mode 100644 index 0000000..dfd683a --- /dev/null +++ b/src/objects/_navbar.vars.scss | |||
@@ -0,0 +1,83 @@ | |||
1 | @use 'sass:map'; | ||
2 | @use 'sass:string'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | @use '../core.vars' as core; | ||
5 | |||
6 | $block-size: props.def(--o-navbar--block-size, props.get(core.$size--700)) !default; | ||
7 | $spacing: props.def(--o-tabs--spacing, props.get(core.$size--400)) !default; | ||
8 | |||
9 | $item--pad-i: props.def(--o-navbar--item--pad-i, props.get(core.$size--175)) !default; | ||
10 | $item--pad-b: props.def(--o-navbar--item--pad-b, props.get(core.$size--40)) !default; | ||
11 | $item--font-size: props.def(--o-navbar--item--font-size, props.get(core.$font-size--75)) !default; | ||
12 | |||
13 | $key-focus--border-width: props.def(--o-navbar--key-focus--border-width, props.get(core.$key-focus--border-width)) !default; | ||
14 | $key-focus--border-offset: props.def(--o-navbar--key-focus--border-offset, props.get(core.$key-focus--border-offset)) !default; | ||
15 | $key-focus--outline-width: props.def(--o-navbar--key-focus--outline-width, props.get(core.$key-focus--outline-width)) !default; | ||
16 | |||
17 | $default-theme-override: () !default; | ||
18 | $default-theme: map.deep-merge(( | ||
19 | --label-color: props.get(core.$theme, --text), | ||
20 | |||
21 | --hover: ( | ||
22 | --bg-color: props.get(core.$theme, --border-mute), | ||
23 | --label-color: props.get(core.$theme, --heading), | ||
24 | ), | ||
25 | |||
26 | --active: ( | ||
27 | --bg-color: props.get(core.$theme, --border), | ||
28 | --label-color: props.get(core.$theme, --heading), | ||
29 | ), | ||
30 | |||
31 | --disabled: ( | ||
32 | --label-color: props.get(core.$theme, --border-strong), | ||
33 | ), | ||
34 | |||
35 | --key-focus: ( | ||
36 | --label: props.get(core.$theme, --focus, --text), | ||
37 | --border: props.get(core.$theme, --focus, --border), | ||
38 | --outline: props.get(core.$theme, --focus, --outline), | ||
39 | ), | ||
40 | |||
41 | --selected: ( | ||
42 | --bg-color: props.get(core.$theme, --heading), | ||
43 | --label-color: props.get(core.$theme, --base, --50), | ||
44 | |||
45 | --hover: ( | ||
46 | --bg-color: props.get(core.$theme, --text), | ||
47 | --label-color: props.get(core.$theme, --base, --50), | ||
48 | ), | ||
49 | |||
50 | --active: ( | ||
51 | --bg-color: props.get(core.$theme, --text-mute), | ||
52 | --label-color: props.get(core.$theme, --base, --50), | ||
53 | ), | ||
54 | |||
55 | --disabled: ( | ||
56 | --bg-color: props.get(core.$theme, --border-mute), | ||
57 | --label-color: props.get(core.$theme, --border-strong), | ||
58 | ), | ||
59 | ), | ||
60 | |||
61 | --quiet: ( | ||
62 | --selected: ( | ||
63 | --bg-color: props.get(core.$theme, --accent, --200), | ||
64 | --label-color: props.get(core.$theme, --accent, --1100), | ||
65 | |||
66 | --hover: ( | ||
67 | --bg-color: props.get(core.$theme, --accent, --300), | ||
68 | --label-color: props.get(core.$theme, --accent, --1200), | ||
69 | ), | ||
70 | |||
71 | --active: ( | ||
72 | --bg-color: props.get(core.$theme, --accent, --400), | ||
73 | --label-color: props.get(core.$theme, --accent, --1300), | ||
74 | ), | ||
75 | |||
76 | --disabled: ( | ||
77 | --bg-color: props.get(core.$theme, --accent, --200), | ||
78 | --label-color: props.get(core.$theme, --accent, --800), | ||
79 | ), | ||
80 | ) | ||
81 | ) | ||
82 | ), $default-theme-override) !default; | ||
83 | $default-theme: props.def(--o-navbar, $default-theme, 'color'); | ||