@graupl/graupl 1.0.0-alpha.12 → 1.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/codeql-analysis.yml +3 -3
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/CHANGELOG.md +65 -0
- package/dist/base/button.css +1 -1
- package/dist/base/button.css.map +1 -1
- package/dist/base/form.css +1 -1
- package/dist/base/form.css.map +1 -1
- package/dist/base/link.css +1 -1
- package/dist/base/link.css.map +1 -1
- package/dist/base/table.css +1 -1
- package/dist/base/table.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/component/alert.css +2 -0
- package/dist/component/alert.css.map +1 -0
- package/dist/component/card.css +2 -0
- package/dist/component/card.css.map +1 -0
- package/dist/component/carousel.css +2 -0
- package/dist/component/carousel.css.map +1 -0
- package/dist/component/input-group.css +1 -1
- package/dist/component/input-group.css.map +1 -1
- package/dist/component/menu.css +2 -0
- package/dist/component/menu.css.map +1 -0
- package/dist/component/navigation.css +2 -0
- package/dist/component/navigation.css.map +1 -0
- package/dist/component.css +1 -1
- package/dist/component.css.map +1 -1
- package/dist/graupl.css +1 -1
- package/dist/graupl.css.map +1 -1
- package/dist/layout/columns.css +1 -1
- package/dist/layout/columns.css.map +1 -1
- package/dist/layout/container.css.map +1 -1
- package/dist/layout/flex-columns.css +2 -0
- package/dist/layout/flex-columns.css.map +1 -0
- package/dist/layout.css +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/normalize.css.map +1 -1
- package/dist/state/focus.css.map +1 -1
- package/dist/state.css.map +1 -1
- package/dist/theme/color.css.map +1 -1
- package/dist/theme/typography.css +1 -1
- package/dist/theme/typography.css.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/theme.css.map +1 -1
- package/dist/utilities/alignment.css.map +1 -1
- package/dist/utilities/color.css.map +1 -1
- package/dist/utilities/display.css +1 -1
- package/dist/utilities/display.css.map +1 -1
- package/dist/utilities/flex.css.map +1 -1
- package/dist/utilities/height.css +2 -0
- package/dist/utilities/height.css.map +1 -0
- package/dist/utilities/inset.css.map +1 -1
- package/dist/utilities/justification.css.map +1 -1
- package/dist/utilities/list.css.map +1 -1
- package/dist/utilities/order.css +2 -0
- package/dist/utilities/order.css.map +1 -0
- package/dist/utilities/postion.css.map +1 -1
- package/dist/utilities/spacing.css +1 -1
- package/dist/utilities/spacing.css.map +1 -1
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities/typography.css.map +1 -1
- package/dist/utilities/visibility.css.map +1 -1
- package/dist/utilities/width.css +2 -0
- package/dist/utilities/width.css.map +1 -0
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/docs/.vitepress/config.js +39 -12
- package/docs/components/alert.md +130 -0
- package/docs/components/button.md +84 -0
- package/docs/components/card.md +369 -0
- package/docs/components/index.md +1 -0
- package/docs/components/inputgroup.md +159 -0
- package/docs/components/menu.md +326 -0
- package/docs/components/navigation.md +158 -0
- package/docs/content.md +237 -0
- package/docs/defaults.md +121 -0
- package/docs/forms.md +79 -0
- package/docs/functions.md +9 -0
- package/docs/getting-started.md +1 -0
- package/docs/index.md +1 -7
- package/docs/introduction.md +22 -2
- package/docs/layout.md +200 -0
- package/docs/mixins.md +47 -0
- package/docs/state.md +67 -0
- package/docs/theme.md +258 -0
- package/docs/utilities.md +357 -0
- package/eslint.config.js +1 -0
- package/index.html +760 -325
- package/package.json +5 -6
- package/scss/component/alert.scss +3 -0
- package/scss/component/card.scss +3 -0
- package/scss/component/carousel.scss +3 -0
- package/scss/component/menu.scss +3 -0
- package/scss/component/navigation.scss +3 -0
- package/scss/layout/flex-columns.scss +3 -0
- package/scss/utilities/height.scss +3 -0
- package/scss/utilities/order.scss +3 -0
- package/scss/utilities/width.scss +3 -0
- package/src/js/alert/Alert.js +511 -0
- package/src/js/alert/index.js +21 -0
- package/src/js/carousel/Carousel.js +1376 -0
- package/src/js/carousel/index.js +20 -0
- package/src/js/domHelpers.js +37 -0
- package/src/js/eventHandlers.js +32 -0
- package/src/js/navigation.js +34 -0
- package/src/js/validate.js +225 -0
- package/src/scss/_defaults.scss +15 -1
- package/src/scss/base/_index.scss +1 -1
- package/src/scss/base/button/_defaults.scss +15 -3
- package/src/scss/base/button/_index.scss +80 -120
- package/src/scss/base/button/_mixins.scss +164 -0
- package/src/scss/base/button/_variables.scss +43 -11
- package/src/scss/base/form/_index.scss +3 -5
- package/src/scss/base/form/_variables.scss +8 -0
- package/src/scss/base/link/_defaults.scss +37 -6
- package/src/scss/base/link/_index.scss +73 -13
- package/src/scss/base/link/_variables.scss +175 -18
- package/src/scss/base/table/_index.scss +3 -5
- package/src/scss/base/table/_variables.scss +8 -0
- package/src/scss/component/_index.scss +6 -1
- package/src/scss/component/alert/_defaults.scss +49 -0
- package/src/scss/component/alert/_index.scss +118 -0
- package/src/scss/component/alert/_variables.scss +170 -0
- package/src/scss/component/card/_defaults.scss +32 -0
- package/src/scss/component/card/_index.scss +177 -0
- package/src/scss/component/card/_variables.scss +185 -0
- package/src/scss/component/carousel/_defaults.scss +43 -0
- package/src/scss/component/carousel/_index.scss +182 -0
- package/src/scss/component/carousel/_variables.scss +104 -0
- package/src/scss/component/input-group/_index.scss +1 -1
- package/src/scss/component/menu/_defaults.scss +66 -0
- package/src/scss/component/menu/_index.scss +305 -0
- package/src/scss/component/menu/_variables.scss +495 -0
- package/src/scss/component/navigation/_defaults.scss +29 -0
- package/src/scss/component/navigation/_index.scss +189 -0
- package/src/scss/component/navigation/_variables.scss +237 -0
- package/src/scss/functions/_theme.scss +16 -0
- package/src/scss/layout/_index.scss +2 -1
- package/src/scss/layout/columns/_index.scss +23 -1
- package/src/scss/layout/container/_index.scss +1 -1
- package/src/scss/layout/flex-columns/_defaults.scss +18 -0
- package/src/scss/layout/flex-columns/_index.scss +77 -0
- package/src/scss/layout/flex-columns/_variables.scss +26 -0
- package/src/scss/mixins/_layer.scss +2 -4
- package/src/scss/mixins/_media-queries.scss +8 -0
- package/src/scss/mixins/_visually-hidden.scss +20 -0
- package/src/scss/state/_index.scss +1 -1
- package/src/scss/state/focus/_index.scss +1 -1
- package/src/scss/theme/_index.scss +1 -1
- package/src/scss/theme/color/_index.scss +1 -1
- package/src/scss/theme/typography/_defaults.scss +1 -1
- package/src/scss/theme/typography/_index.scss +1 -1
- package/src/scss/theme/typography/_variables.scss +5 -2
- package/src/scss/utilities/_index.scss +5 -1
- package/src/scss/utilities/alignment/_index.scss +1 -1
- package/src/scss/utilities/color/_index.scss +1 -1
- package/src/scss/utilities/display/_defaults.scss +2 -0
- package/src/scss/utilities/display/_index.scss +11 -1
- package/src/scss/utilities/flex/_index.scss +1 -1
- package/src/scss/utilities/height/_defaults.scss +38 -0
- package/src/scss/utilities/height/_index.scss +23 -0
- package/src/scss/utilities/height/_variables.scss +6 -0
- package/src/scss/utilities/inset/_index.scss +1 -1
- package/src/scss/utilities/justification/_index.scss +1 -1
- package/src/scss/utilities/list/_index.scss +1 -1
- package/src/scss/utilities/order/_defaults.scss +19 -0
- package/src/scss/utilities/order/_index.scss +35 -0
- package/src/scss/utilities/order/_variables.scss +6 -0
- package/src/scss/utilities/position/_index.scss +1 -1
- package/src/scss/utilities/ratio/_defaults.scss +25 -0
- package/src/scss/utilities/ratio/_index.scss +34 -0
- package/src/scss/utilities/ratio/_variables.scss +9 -0
- package/src/scss/utilities/spacing/_index.scss +34 -17
- package/src/scss/utilities/typography/_index.scss +1 -1
- package/src/scss/utilities/visibility/_index.scss +1 -1
- package/src/scss/utilities/width/_defaults.scss +38 -0
- package/src/scss/utilities/width/_index.scss +23 -0
- package/src/scss/utilities/width/_variables.scss +6 -0
- package/stylelint.config.js +1 -0
|
@@ -14,22 +14,86 @@ $link-text-decoration: var(
|
|
|
14
14
|
--#{root-defaults.$prefix}-link-text-decoration,
|
|
15
15
|
#{defaults.$link-text-decoration}
|
|
16
16
|
);
|
|
17
|
-
$link-text-decoration
|
|
18
|
-
--#{root-defaults.$prefix}-link-text-decoration
|
|
19
|
-
#{
|
|
17
|
+
$link-visited-text-decoration: var(
|
|
18
|
+
--#{root-defaults.$prefix}-link-visited-text-decoration,
|
|
19
|
+
#{defaults.$link-visited-text-decoration}
|
|
20
20
|
);
|
|
21
|
-
$link-
|
|
22
|
-
--#{root-defaults.$prefix}-link-
|
|
23
|
-
#{
|
|
21
|
+
$link-focus-text-decoration: var(
|
|
22
|
+
--#{root-defaults.$prefix}-link-focus-text-decoration,
|
|
23
|
+
#{defaults.$link-focus-text-decoration}
|
|
24
24
|
);
|
|
25
25
|
$link-hover-text-decoration: var(
|
|
26
26
|
--#{root-defaults.$prefix}-link-hover-text-decoration,
|
|
27
27
|
#{defaults.$link-hover-text-decoration}
|
|
28
28
|
);
|
|
29
|
+
$link-active-text-decoration: var(
|
|
30
|
+
--#{root-defaults.$prefix}-link-active-text-decoration,
|
|
31
|
+
#{defaults.$link-active-text-decoration}
|
|
32
|
+
);
|
|
33
|
+
$link-disabled-text-decoration: var(
|
|
34
|
+
--#{root-defaults.$prefix}-link-disabled-text-decoration,
|
|
35
|
+
#{defaults.$link-disabled-text-decoration}
|
|
36
|
+
);
|
|
37
|
+
$link-text-decoration-thickness: var(
|
|
38
|
+
--#{root-defaults.$prefix}-link-text-decoration-thickness,
|
|
39
|
+
#{root-variables.$border-width}
|
|
40
|
+
);
|
|
41
|
+
$link-visited-text-decoration-thickness: var(
|
|
42
|
+
--#{root-defaults.$prefix}-link-visited-text-decoration-thickness,
|
|
43
|
+
#{root-variables.$border-width}
|
|
44
|
+
);
|
|
45
|
+
$link-focus-text-decoration-thickness: var(
|
|
46
|
+
--#{root-defaults.$prefix}-link-focus-text-decoration-thickness,
|
|
47
|
+
#{root-variables.$border-width}
|
|
48
|
+
);
|
|
29
49
|
$link-hover-text-decoration-thickness: var(
|
|
30
50
|
--#{root-defaults.$prefix}-link-hover-text-decoration-thickness,
|
|
31
51
|
#{root-variables.$border-width}
|
|
32
52
|
);
|
|
53
|
+
$link-active-text-decoration-thickness: var(
|
|
54
|
+
--#{root-defaults.$prefix}-link-active-text-decoration-thickness,
|
|
55
|
+
#{root-variables.$border-width}
|
|
56
|
+
);
|
|
57
|
+
$link-disabled-text-decoration-thickness: var(
|
|
58
|
+
--#{root-defaults.$prefix}-link-disabled-text-decoration-thickness,
|
|
59
|
+
#{root-variables.$border-width}
|
|
60
|
+
);
|
|
61
|
+
$link-text-decoration-style: var(
|
|
62
|
+
--#{root-defaults.$prefix}-link-text-decoration-style,
|
|
63
|
+
#{defaults.$link-text-decoration-style}
|
|
64
|
+
);
|
|
65
|
+
$link-visited-text-decoration-style: var(
|
|
66
|
+
--#{root-defaults.$prefix}-link-visited-text-decoration-style,
|
|
67
|
+
#{defaults.$link-visited-text-decoration-style}
|
|
68
|
+
);
|
|
69
|
+
$link-focus-text-decoration-style: var(
|
|
70
|
+
--#{root-defaults.$prefix}-link-focus-text-decoration-style,
|
|
71
|
+
#{defaults.$link-focus-text-decoration-style}
|
|
72
|
+
);
|
|
73
|
+
$link-hover-text-decoration-style: var(
|
|
74
|
+
--#{root-defaults.$prefix}-link-hover-text-decoration-style,
|
|
75
|
+
#{defaults.$link-hover-text-decoration-style}
|
|
76
|
+
);
|
|
77
|
+
$link-active-text-decoration-style: var(
|
|
78
|
+
--#{root-defaults.$prefix}-link-active-text-decoration-style,
|
|
79
|
+
#{defaults.$link-active-text-decoration-style}
|
|
80
|
+
);
|
|
81
|
+
$link-disabled-text-decoration-style: var(
|
|
82
|
+
--#{root-defaults.$prefix}-link-disabled-text-decoration-style,
|
|
83
|
+
#{defaults.$link-disabled-text-decoration-style}
|
|
84
|
+
);
|
|
85
|
+
$link-color: var(
|
|
86
|
+
--#{root-defaults.$prefix}-link-color,
|
|
87
|
+
#{theme.get(primary, 700)}
|
|
88
|
+
);
|
|
89
|
+
$link-visited-color: var(
|
|
90
|
+
--#{root-defaults.$prefix}-link-visited-color,
|
|
91
|
+
#{theme.get(primary, 700)}
|
|
92
|
+
);
|
|
93
|
+
$link-focus-color: var(
|
|
94
|
+
--#{root-defaults.$prefix}-link-focus-color,
|
|
95
|
+
#{theme.get(primary, 700)}
|
|
96
|
+
);
|
|
33
97
|
$link-hover-color: var(
|
|
34
98
|
--#{root-defaults.$prefix}-link-hover-color,
|
|
35
99
|
#{theme.get(tertiary, 700)}
|
|
@@ -38,30 +102,57 @@ $link-active-color: var(
|
|
|
38
102
|
--#{root-defaults.$prefix}-link-active-color,
|
|
39
103
|
#{theme.get(tertiary, 700)}
|
|
40
104
|
);
|
|
41
|
-
$link-visited-color: var(
|
|
42
|
-
--#{root-defaults.$prefix}-link-visited-color,
|
|
43
|
-
#{theme.get(primary, 700)}
|
|
44
|
-
);
|
|
45
105
|
$link-disabled-color: var(
|
|
46
106
|
--#{root-defaults.$prefix}-link-disabled-color,
|
|
47
107
|
#{theme.get(primary, 200)}
|
|
48
108
|
);
|
|
49
|
-
$link-
|
|
109
|
+
$link-text-decoration-color: var(
|
|
110
|
+
--#{root-defaults.$prefix}-link-text-decoration-color,
|
|
111
|
+
#{$link-color}
|
|
112
|
+
);
|
|
113
|
+
$link-visited-text-decoration-color: var(
|
|
114
|
+
--#{root-defaults.$prefix}-link-visited-text-decoration-color,
|
|
115
|
+
#{$link-visited-color}
|
|
116
|
+
);
|
|
117
|
+
$link-focus-text-decoration-color: var(
|
|
118
|
+
--#{root-defaults.$prefix}-link-focus-text-decoration-color,
|
|
119
|
+
#{$link-focus-color}
|
|
120
|
+
);
|
|
121
|
+
$link-hover-text-decoration-color: var(
|
|
122
|
+
--#{root-defaults.$prefix}-link-hover-text-decoration-color,
|
|
123
|
+
#{$link-hover-color}
|
|
124
|
+
);
|
|
125
|
+
$link-active-text-decoration-color: var(
|
|
126
|
+
--#{root-defaults.$prefix}-link-active-text-decoration-color,
|
|
127
|
+
#{$link-active-color}
|
|
128
|
+
);
|
|
129
|
+
$link-disabled-text-decoration-color: var(
|
|
130
|
+
--#{root-defaults.$prefix}-link-disabled-text-decoration-color,
|
|
131
|
+
#{$link-disabled-color}
|
|
132
|
+
);
|
|
133
|
+
$link-background: var(
|
|
134
|
+
--#{root-defaults.$prefix}-link-background,
|
|
135
|
+
#{defaults.$link-background}
|
|
136
|
+
);
|
|
137
|
+
$link-visited-background: var(
|
|
138
|
+
--#{root-defaults.$prefix}-link-visited-background,
|
|
139
|
+
#{defaults.$link-visited-background}
|
|
140
|
+
);
|
|
141
|
+
$link-focus-background: var(
|
|
142
|
+
--#{root-defaults.$prefix}-link-focus-background,
|
|
143
|
+
#{defaults.$link-focus-background}
|
|
144
|
+
);
|
|
50
145
|
$link-hover-background: var(
|
|
51
146
|
--#{root-defaults.$prefix}-link-hover-background,
|
|
52
|
-
|
|
147
|
+
#{defaults.$link-hover-background}
|
|
53
148
|
);
|
|
54
149
|
$link-active-background: var(
|
|
55
150
|
--#{root-defaults.$prefix}-link-active-background,
|
|
56
|
-
|
|
57
|
-
);
|
|
58
|
-
$link-visited-background: var(
|
|
59
|
-
--#{root-defaults.$prefix}-link-visited-background,
|
|
60
|
-
transparent
|
|
151
|
+
#{defaults.$link-active-background}
|
|
61
152
|
);
|
|
62
153
|
$link-disabled-background: var(
|
|
63
154
|
--#{root-defaults.$prefix}-link-disabled-background,
|
|
64
|
-
|
|
155
|
+
#{defaults.$link-disabled-background}
|
|
65
156
|
);
|
|
66
157
|
$link-padding-x: var(
|
|
67
158
|
--#{root-defaults.$prefix}-link-padding-x,
|
|
@@ -90,6 +181,14 @@ $link-transform: var(
|
|
|
90
181
|
--#{root-defaults.$prefix}-link-transform,
|
|
91
182
|
#{defaults.$link-transform}
|
|
92
183
|
);
|
|
184
|
+
$link-visited-transform: var(
|
|
185
|
+
--#{root-defaults.$prefix}-link-visited-transform,
|
|
186
|
+
#{defaults.$link-visited-transform}
|
|
187
|
+
);
|
|
188
|
+
$link-focus-transform: var(
|
|
189
|
+
--#{root-defaults.$prefix}-link-focus-transform,
|
|
190
|
+
#{defaults.$link-focus-transform}
|
|
191
|
+
);
|
|
93
192
|
$link-hover-transform: var(
|
|
94
193
|
--#{root-defaults.$prefix}-link-hover-transform,
|
|
95
194
|
#{defaults.$link-hover-transform}
|
|
@@ -98,3 +197,61 @@ $link-active-transform: var(
|
|
|
98
197
|
--#{root-defaults.$prefix}-link-active-transform,
|
|
99
198
|
#{defaults.$link-active-transform}
|
|
100
199
|
);
|
|
200
|
+
$link-disabled-transform: var(
|
|
201
|
+
--#{root-defaults.$prefix}-link-disabled-transform,
|
|
202
|
+
#{defaults.$link-disabled-transform}
|
|
203
|
+
);
|
|
204
|
+
$link-border-width: var(
|
|
205
|
+
--#{root-defaults.$prefix}-link-border-width,
|
|
206
|
+
#{defaults.$link-border-width}
|
|
207
|
+
);
|
|
208
|
+
$link-border-style: var(
|
|
209
|
+
--#{root-defaults.$prefix}-link-border-style,
|
|
210
|
+
#{root-variables.$border-style}
|
|
211
|
+
);
|
|
212
|
+
$link-border: var(
|
|
213
|
+
--#{root-defaults.$prefix}-link-border,
|
|
214
|
+
#{$link-border-width} #{$link-border-style}
|
|
215
|
+
);
|
|
216
|
+
$link-border-radius: var(
|
|
217
|
+
--#{root-defaults.$prefix}-link-border-radius,
|
|
218
|
+
#{root-variables.$border-radius}
|
|
219
|
+
);
|
|
220
|
+
$link-border-color: var(
|
|
221
|
+
--#{root-defaults.$prefix}-link-border-color,
|
|
222
|
+
#{defaults.$link-border-color}
|
|
223
|
+
);
|
|
224
|
+
$link-visited-border-color: var(
|
|
225
|
+
--#{root-defaults.$prefix}-link-visited-border-color,
|
|
226
|
+
#{defaults.$link-visited-border-color}
|
|
227
|
+
);
|
|
228
|
+
$link-focus-border-color: var(
|
|
229
|
+
--#{root-defaults.$prefix}-link-focus-border-color,
|
|
230
|
+
#{defaults.$link-focus-border-color}
|
|
231
|
+
);
|
|
232
|
+
$link-hover-border-color: var(
|
|
233
|
+
--#{root-defaults.$prefix}-link-hover-border-color,
|
|
234
|
+
#{defaults.$link-hover-border-color}
|
|
235
|
+
);
|
|
236
|
+
$link-active-border-color: var(
|
|
237
|
+
--#{root-defaults.$prefix}-link-active-border-color,
|
|
238
|
+
#{defaults.$link-active-border-color}
|
|
239
|
+
);
|
|
240
|
+
$link-disabled-border-color: var(
|
|
241
|
+
--#{root-defaults.$prefix}-link-disabled-border-color,
|
|
242
|
+
#{defaults.$link-disabled-border-color}
|
|
243
|
+
);
|
|
244
|
+
$link-min-width: var(
|
|
245
|
+
--#{root-defaults.$prefix}-link-min-width,
|
|
246
|
+
defaults.$link-min-width
|
|
247
|
+
);
|
|
248
|
+
$link-min-height: var(
|
|
249
|
+
--#{root-defaults.$prefix}-link-min-height,
|
|
250
|
+
defaults.$link-min-height
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
// Stretched link properties.
|
|
254
|
+
$stretched-link-z-index: var(
|
|
255
|
+
--#{root-defaults.$prefix}-stretched-link-z-index,
|
|
256
|
+
#{defaults.$stretched-link-z-index}
|
|
257
|
+
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @
|
|
1
|
+
// @graupl/graupl table base styles.
|
|
2
2
|
|
|
3
3
|
@use "defaults";
|
|
4
4
|
@use "variables" as *;
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
|
|
30
30
|
&#{defaults.$table-bordered-selector} {
|
|
31
31
|
border-collapse: collapse;
|
|
32
|
-
border
|
|
33
|
-
border-style: $table-border-style;
|
|
32
|
+
border: $table-border;
|
|
34
33
|
|
|
35
34
|
#{defaults.$table-row-selector} > * {
|
|
36
|
-
border
|
|
37
|
-
border-style: $table-cell-border-style;
|
|
35
|
+
border: $table-cell-border;
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
}
|
|
@@ -77,6 +77,10 @@ $table-border-style: var(
|
|
|
77
77
|
--#{root-defaults.$prefix}-table-border-style,
|
|
78
78
|
#{root-variables.$border-style}
|
|
79
79
|
);
|
|
80
|
+
$table-border: var(
|
|
81
|
+
--#{root-defaults.$prefix}-table-border,
|
|
82
|
+
#{$table-border-width} #{$table-border-style}
|
|
83
|
+
);
|
|
80
84
|
$table-border-color: var(
|
|
81
85
|
--#{root-defaults.$prefix}-table-border-color,
|
|
82
86
|
#{theme.get(primary, 900)}
|
|
@@ -91,6 +95,10 @@ $table-cell-border-style: var(
|
|
|
91
95
|
--#{root-defaults.$prefix}-table-cell-border-style,
|
|
92
96
|
#{$table-border-style}
|
|
93
97
|
);
|
|
98
|
+
$table-cell-border: var(
|
|
99
|
+
--#{root-defaults.$prefix}-table-cell-border,
|
|
100
|
+
#{$table-cell-border-width} #{$table-cell-border-style}
|
|
101
|
+
);
|
|
94
102
|
$table-cell-border-color: var(
|
|
95
103
|
--#{root-defaults.$prefix}-table-cell-border-color,
|
|
96
104
|
#{$table-border-color}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// @graupl/graupl alert component default values.
|
|
2
|
+
//
|
|
3
|
+
// Generally, these should not be used directly when styling components unless a static value is needed.
|
|
4
|
+
// They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
|
|
5
|
+
//
|
|
6
|
+
// They should not be used to define direct property values (i.e. font-size, color, etc.).
|
|
7
|
+
// Those should be defined as custom properties in the `_variables.scss` file.
|
|
8
|
+
|
|
9
|
+
@use "sass:map";
|
|
10
|
+
|
|
11
|
+
// Alert selectors.
|
|
12
|
+
$alert-selector: ".alert" !default;
|
|
13
|
+
$alert-theme-selector-prefix: "." !default;
|
|
14
|
+
$alert-body-selector: ".alert-body" !default;
|
|
15
|
+
$alert-header-selector: ".alert-header" !default;
|
|
16
|
+
$alert-footer-selector: ".alert-footer" !default;
|
|
17
|
+
$alert-title-selector: ".alert-title" !default;
|
|
18
|
+
$alert-dismisser-selector: ".alert-dismisser" !default;
|
|
19
|
+
$alert-hidden-selector: ".hide" !default;
|
|
20
|
+
$alert-shown-selector: ".show" !default;
|
|
21
|
+
$alert-transition-selector: ".transitioning" !default;
|
|
22
|
+
|
|
23
|
+
// Alert state theme defaults.
|
|
24
|
+
// This map is used to define the default colour shades for the
|
|
25
|
+
// themed alert components.
|
|
26
|
+
//
|
|
27
|
+
// e.g.
|
|
28
|
+
// Primary alerts will use primary--900 as the text colour, primary--100 as the background
|
|
29
|
+
// and primary--900 as the border colour.
|
|
30
|
+
//
|
|
31
|
+
// Secondary/tertiary alerts will use the same shade for their respective colours.
|
|
32
|
+
$base-alert-state-theme-map: (
|
|
33
|
+
color: 900,
|
|
34
|
+
background: 200,
|
|
35
|
+
border-color: 700,
|
|
36
|
+
title-color: 800,
|
|
37
|
+
button-border-color: transparent,
|
|
38
|
+
link-color: 800,
|
|
39
|
+
link-visited-color: 800,
|
|
40
|
+
link-focus-color: 800,
|
|
41
|
+
link-hover-color: 900,
|
|
42
|
+
link-active-color: 900,
|
|
43
|
+
link-disabled-color: 400,
|
|
44
|
+
);
|
|
45
|
+
$custom-alert-state-theme-map: () !default;
|
|
46
|
+
$alert-state-theme-map: map.merge(
|
|
47
|
+
$base-alert-state-theme-map,
|
|
48
|
+
$custom-alert-state-theme-map
|
|
49
|
+
);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// @graupl/graupl alert component styles.
|
|
2
|
+
|
|
3
|
+
@use "defaults";
|
|
4
|
+
@use "variables" as *;
|
|
5
|
+
@use "../../defaults" as root-defaults;
|
|
6
|
+
@use "../../theme/color/variables" as color;
|
|
7
|
+
@use "../../mixins/layer" as *;
|
|
8
|
+
@use "../../mixins/media-queries" as *;
|
|
9
|
+
@use "../../functions/theme";
|
|
10
|
+
@use "../../base/button/mixins" as button-mixins;
|
|
11
|
+
@use "sass:map";
|
|
12
|
+
|
|
13
|
+
#{defaults.$alert-selector} {
|
|
14
|
+
@include layer(component) {
|
|
15
|
+
--#{root-defaults.$prefix}-button-border: 0;
|
|
16
|
+
|
|
17
|
+
display: grid;
|
|
18
|
+
grid-template-columns: [content-start] 1fr [content-end dismiss-start] auto [dismiss-end];
|
|
19
|
+
grid-template-rows: [header-start] auto [header-end body-start] auto [body-end footer-start] auto [footer-end];
|
|
20
|
+
padding: $alert-padding;
|
|
21
|
+
transition: $alert-transition;
|
|
22
|
+
border: $alert-border;
|
|
23
|
+
border-radius: $alert-border-radius;
|
|
24
|
+
gap: $alert-gap;
|
|
25
|
+
|
|
26
|
+
&#{defaults.$alert-hidden-selector} {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&#{defaults.$alert-transition-selector} {
|
|
31
|
+
display: grid;
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&#{defaults.$alert-shown-selector} {
|
|
36
|
+
display: grid;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include animation-off {
|
|
40
|
+
#{defaults.$alert-selector} {
|
|
41
|
+
--#{root-defaults.$prefix}-alert-transition: #{$alert-transition-reduced-motion};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@include layer(theme) {
|
|
47
|
+
--#{root-defaults.$prefix}-button-background: #{$alert-background};
|
|
48
|
+
--#{root-defaults.$prefix}-button-focus-background: #{$alert-background};
|
|
49
|
+
--#{root-defaults.$prefix}-link-color: #{$alert-link-color};
|
|
50
|
+
--#{root-defaults.$prefix}-link-visited-color: #{$alert-link-visited-color};
|
|
51
|
+
--#{root-defaults.$prefix}-link-focus-color: #{$alert-link-focus-color};
|
|
52
|
+
--#{root-defaults.$prefix}-link-hover-color: #{$alert-link-hover-color};
|
|
53
|
+
--#{root-defaults.$prefix}-link-active-color: #{$alert-link-active-color};
|
|
54
|
+
--#{root-defaults.$prefix}-link-disabled-color: #{$alert-link-disabled-color};
|
|
55
|
+
|
|
56
|
+
border-color: $alert-border-color;
|
|
57
|
+
background-color: $alert-background;
|
|
58
|
+
color: $alert-color;
|
|
59
|
+
|
|
60
|
+
@each $color, $map in color.$theme-active {
|
|
61
|
+
&#{defaults.$alert-theme-selector-prefix}#{$color} {
|
|
62
|
+
@each $prop, $shade in defaults.$alert-state-theme-map {
|
|
63
|
+
--#{root-defaults.$prefix}-alert-#{$prop}: #{theme.get(
|
|
64
|
+
$color,
|
|
65
|
+
$shade
|
|
66
|
+
)};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#{defaults.$alert-header-selector} {
|
|
74
|
+
@include layer(component) {
|
|
75
|
+
grid-column: content;
|
|
76
|
+
grid-row: header;
|
|
77
|
+
padding: $alert-header-padding;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#{defaults.$alert-body-selector} {
|
|
82
|
+
@include layer(component) {
|
|
83
|
+
grid-column: content;
|
|
84
|
+
grid-row: body;
|
|
85
|
+
padding: $alert-body-padding;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#{defaults.$alert-footer-selector} {
|
|
90
|
+
@include layer(component) {
|
|
91
|
+
grid-column: content;
|
|
92
|
+
grid-row: footer;
|
|
93
|
+
padding: $alert-footer-padding;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#{defaults.$alert-dismisser-selector} {
|
|
98
|
+
@include button-mixins.apply-button;
|
|
99
|
+
|
|
100
|
+
@include layer(component) {
|
|
101
|
+
grid-column: dismiss;
|
|
102
|
+
grid-row: 1 / -1;
|
|
103
|
+
align-self: flex-start;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
#{defaults.$alert-title-selector} {
|
|
108
|
+
@include layer(component) {
|
|
109
|
+
margin: $alert-title-margin;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include layer(theme) {
|
|
113
|
+
color: $alert-title-color;
|
|
114
|
+
font-size: $alert-title-font-size;
|
|
115
|
+
font-weight: $alert-title-font-weight;
|
|
116
|
+
line-height: $alert-title-line-height;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// @graupl/graupl alert component variables.
|
|
2
|
+
//
|
|
3
|
+
// These values are to be used to directly style components and provide a
|
|
4
|
+
// cleaner way to reference custom properties.
|
|
5
|
+
|
|
6
|
+
@use "defaults";
|
|
7
|
+
@use "../../defaults" as root-defaults;
|
|
8
|
+
@use "../../variables" as root-variables;
|
|
9
|
+
@use "../../theme/color/variables" as color;
|
|
10
|
+
@use "../../theme/typography/variables" as typography;
|
|
11
|
+
@use "sass:map";
|
|
12
|
+
|
|
13
|
+
// Alert properties.
|
|
14
|
+
$alert-padding-x: var(
|
|
15
|
+
--#{root-defaults.$prefix}-alert-padding-x,
|
|
16
|
+
#{map.get(root-variables.$spacers, 5)}
|
|
17
|
+
);
|
|
18
|
+
$alert-padding-y: var(
|
|
19
|
+
--#{root-defaults.$prefix}-alert-padding-y,
|
|
20
|
+
#{map.get(root-variables.$spacers, 5)}
|
|
21
|
+
);
|
|
22
|
+
$alert-padding: var(
|
|
23
|
+
--#{root-defaults.$prefix}-alert-padding,
|
|
24
|
+
#{$alert-padding-y} #{$alert-padding-x}
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// Alert gap properties.
|
|
28
|
+
$alert-column-gap: var(
|
|
29
|
+
--#{root-defaults.$prefix}-alert-column-gap,
|
|
30
|
+
#{map.get(root-variables.$spacers, 0)}
|
|
31
|
+
);
|
|
32
|
+
$alert-row-gap: var(
|
|
33
|
+
--#{root-defaults.$prefix}-alert-row-gap,
|
|
34
|
+
#{map.get(root-variables.$spacers, 3)}
|
|
35
|
+
);
|
|
36
|
+
$alert-gap: var(
|
|
37
|
+
--#{root-defaults.$prefix}-alert-gap,
|
|
38
|
+
#{$alert-column-gap} #{$alert-row-gap}
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
// Alert color properties.
|
|
42
|
+
$alert-background: var(
|
|
43
|
+
--#{root-defaults.$prefix}-alert-background,
|
|
44
|
+
#{color.$root-background}
|
|
45
|
+
);
|
|
46
|
+
$alert-color: var(--#{root-defaults.$prefix}-alert-color, #{color.$root-color});
|
|
47
|
+
$alert-link-color: var(--#{root-defaults.$prefix}-alert-link-color);
|
|
48
|
+
$alert-link-visited-color: var(
|
|
49
|
+
--#{root-defaults.$prefix}-alert-link-visited-color
|
|
50
|
+
);
|
|
51
|
+
$alert-link-focus-color: var(--#{root-defaults.$prefix}-alert-link-focus-color);
|
|
52
|
+
$alert-link-hover-color: var(--#{root-defaults.$prefix}-alert-link-hover-color);
|
|
53
|
+
$alert-link-active-color: var(
|
|
54
|
+
--#{root-defaults.$prefix}-alert-link-active-color
|
|
55
|
+
);
|
|
56
|
+
$alert-link-disabled-color: var(
|
|
57
|
+
--#{root-defaults.$prefix}-alert-link-disabled-color
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
// Alert border-properties.
|
|
61
|
+
$alert-border-color: var(
|
|
62
|
+
--#{root-defaults.$prefix}-alert-border-color,
|
|
63
|
+
#{$alert-color}
|
|
64
|
+
);
|
|
65
|
+
$alert-top-left-border-radius: var(
|
|
66
|
+
--#{root-defaults.$prefix}-alert-top-left-border-radius,
|
|
67
|
+
#{root-variables.$border-radius}
|
|
68
|
+
);
|
|
69
|
+
$alert-top-right-border-radius: var(
|
|
70
|
+
--#{root-defaults.$prefix}-alert-top-right-border-radius,
|
|
71
|
+
#{root-variables.$border-radius}
|
|
72
|
+
);
|
|
73
|
+
$alert-bottom-left-border-radius: var(
|
|
74
|
+
--#{root-defaults.$prefix}-alert-bottom-left-border-radius,
|
|
75
|
+
#{root-variables.$border-radius}
|
|
76
|
+
);
|
|
77
|
+
$alert-bottom-right-border-radius: var(
|
|
78
|
+
--#{root-defaults.$prefix}-alert-bottom-right-border-radius,
|
|
79
|
+
#{root-variables.$border-radius}
|
|
80
|
+
);
|
|
81
|
+
$alert-border-radius: var(
|
|
82
|
+
--#{root-defaults.$prefix}-alert-border-radius,
|
|
83
|
+
#{$alert-top-left-border-radius} #{$alert-top-right-border-radius} #{$alert-bottom-right-border-radius}
|
|
84
|
+
#{$alert-bottom-left-border-radius}
|
|
85
|
+
);
|
|
86
|
+
$alert-border-style: var(
|
|
87
|
+
--#{root-defaults.$prefix}-alert-border-style,
|
|
88
|
+
#{root-variables.$border-style}
|
|
89
|
+
);
|
|
90
|
+
$alert-border-width: var(
|
|
91
|
+
--#{root-defaults.$prefix}-alert-border-width,
|
|
92
|
+
#{root-variables.$border-width}
|
|
93
|
+
);
|
|
94
|
+
$alert-border: var(
|
|
95
|
+
--#{root-defaults.$prefix}-alert-border,
|
|
96
|
+
#{$alert-border-width} #{$alert-border-style}
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
// Alert transition properties.
|
|
100
|
+
$alert-transition: var(
|
|
101
|
+
--#{root-defaults.$prefix}-alert-transition,
|
|
102
|
+
opacity #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function},
|
|
103
|
+
transform #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function}
|
|
104
|
+
);
|
|
105
|
+
$alert-transition-reduced-motion: var(
|
|
106
|
+
--#{root-defaults.$prefix}-alert-transition-reduced-motion,
|
|
107
|
+
opacity #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function}
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
// Alert header properties.
|
|
111
|
+
$alert-header-padding-x: var(
|
|
112
|
+
--#{root-defaults.$prefix}-alert-header-padding-x,
|
|
113
|
+
0
|
|
114
|
+
);
|
|
115
|
+
$alert-header-padding-y: var(
|
|
116
|
+
--#{root-defaults.$prefix}-alert-header-padding-y,
|
|
117
|
+
0
|
|
118
|
+
);
|
|
119
|
+
$alert-header-padding: var(
|
|
120
|
+
--#{root-defaults.$prefix}-alert-header-padding,
|
|
121
|
+
#{$alert-header-padding-y} #{$alert-header-padding-x}
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
// Alert title properties.
|
|
125
|
+
$alert-title-color: var(
|
|
126
|
+
--#{root-defaults.$prefix}-alert-title-color,
|
|
127
|
+
#{$alert-color}
|
|
128
|
+
);
|
|
129
|
+
$alert-title-font-size: var(
|
|
130
|
+
--#{root-defaults.$prefix}-alert-title-font-size,
|
|
131
|
+
#{typography.$h4-font-size}
|
|
132
|
+
);
|
|
133
|
+
$alert-title-font-weight: var(
|
|
134
|
+
--#{root-defaults.$prefix}-alert-title-font-weight,
|
|
135
|
+
#{typography.$h4-font-weight}
|
|
136
|
+
);
|
|
137
|
+
$alert-title-font-family: var(
|
|
138
|
+
--#{root-defaults.$prefix}-alert-title-font-family,
|
|
139
|
+
#{typography.$h4-font-family}
|
|
140
|
+
);
|
|
141
|
+
$alert-title-line-height: var(
|
|
142
|
+
--#{root-defaults.$prefix}-alert-title-line-height,
|
|
143
|
+
#{typography.$h4-line-height}
|
|
144
|
+
);
|
|
145
|
+
$alert-title-margin: var(
|
|
146
|
+
--#{root-defaults.$prefix}-alert-title-margin,
|
|
147
|
+
0 0 0 0
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
// Alert body properties.
|
|
151
|
+
$alert-body-padding-x: var(--#{root-defaults.$prefix}-alert-body-padding-x, 0);
|
|
152
|
+
$alert-body-padding-y: var(--#{root-defaults.$prefix}-alert-body-padding-y, 0);
|
|
153
|
+
$alert-body-padding: var(
|
|
154
|
+
--#{root-defaults.$prefix}-alert-body-padding,
|
|
155
|
+
#{$alert-body-padding-y} #{$alert-body-padding-x}
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
// Alert footer properties.
|
|
159
|
+
$alert-footer-padding-x: var(
|
|
160
|
+
--#{root-defaults.$prefix}-alert-footer-padding-x,
|
|
161
|
+
0
|
|
162
|
+
);
|
|
163
|
+
$alert-footer-padding-y: var(
|
|
164
|
+
--#{root-defaults.$prefix}-alert-footer-padding-y,
|
|
165
|
+
0
|
|
166
|
+
);
|
|
167
|
+
$alert-footer-padding: var(
|
|
168
|
+
--#{root-defaults.$prefix}-alert-footer-padding,
|
|
169
|
+
#{$alert-footer-padding-y} #{$alert-footer-padding-x}
|
|
170
|
+
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @graupl/graupl card component default values.
|
|
2
|
+
//
|
|
3
|
+
// Generally, these should not be used directly when styling components unless a static value is needed.
|
|
4
|
+
// They are mainly used to provide class selectors, fallbacks for custom properties, or loop values.
|
|
5
|
+
//
|
|
6
|
+
// They should not be used to define direct property values (i.e. font-size, color, etc.).
|
|
7
|
+
// Those should be defined as custom properties in the `_variables.scss` file.
|
|
8
|
+
|
|
9
|
+
// Card selectors.
|
|
10
|
+
$card-selector: ".card" !default;
|
|
11
|
+
$card-image-selector: ".card-image" !default;
|
|
12
|
+
$card-content-selector: ".card-content" !default;
|
|
13
|
+
$card-body-selector: ".card-body" !default;
|
|
14
|
+
$card-header-selector: ".card-header" !default;
|
|
15
|
+
$card-footer-selector: ".card-footer" !default;
|
|
16
|
+
$card-title-selector: ".card-title" !default;
|
|
17
|
+
$horizontal-card-selector: ".horizontal" !default;
|
|
18
|
+
$horizontal-card-left-selector: ".left" !default;
|
|
19
|
+
$horizontal-card-right-selector: ".right" !default;
|
|
20
|
+
$vertical-card-top-selector: ".top" !default;
|
|
21
|
+
$vertical-card-bottom-selector: ".bottom" !default;
|
|
22
|
+
$inverse-card-selector: ".inverse" !default;
|
|
23
|
+
|
|
24
|
+
// Card properties.
|
|
25
|
+
$card-transform: none !default;
|
|
26
|
+
$card-hover-transform: $card-transform !default;
|
|
27
|
+
|
|
28
|
+
// Card layout properties.
|
|
29
|
+
$card-content-ratio: 1fr !default;
|
|
30
|
+
$card-image-ratio: auto !default;
|
|
31
|
+
$horizontal-card-content-ratio: 3fr !default;
|
|
32
|
+
$horizontal-card-image-ratio: 2fr !default;
|