@graupl/graupl 1.0.0-alpha.11 → 1.0.0-alpha.13
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/CHANGELOG.md +54 -0
- package/dist/base/button.css +2 -0
- package/dist/base/button.css.map +1 -0
- 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/card.css +2 -0
- package/dist/component/card.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/init.css +2 -0
- package/dist/init.css.map +1 -0
- 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 +2 -0
- package/dist/normalize.css.map +1 -0
- 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/order.css +2 -0
- package/dist/utilities/order.css.map +1 -0
- 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.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/eslint.config.js +1 -0
- package/index.html +619 -326
- package/package.json +2 -1
- package/scss/base/button.scss +3 -0
- package/scss/base/form.scss +1 -1
- package/scss/base/link.scss +1 -1
- package/scss/base/table.scss +1 -1
- package/scss/base.scss +1 -1
- package/scss/component/card.scss +3 -0
- package/scss/component/input-group.scss +1 -1
- package/scss/component/menu.scss +3 -0
- package/scss/component/navigation.scss +3 -0
- package/scss/component.scss +1 -1
- package/scss/graupl.scss +1 -3
- package/scss/init.scss +3 -0
- package/scss/layout/columns.scss +1 -1
- package/scss/layout/container.scss +1 -1
- package/scss/layout/flex-columns.scss +3 -0
- package/scss/layout.scss +1 -1
- package/scss/normalize.scss +3 -0
- package/scss/state/focus.scss +1 -1
- package/scss/state.scss +1 -1
- package/scss/theme/color.scss +1 -1
- package/scss/theme/typography.scss +1 -1
- package/scss/theme.scss +1 -1
- package/scss/utilities/alignment.scss +1 -1
- package/scss/utilities/color.scss +1 -1
- package/scss/utilities/display.scss +1 -1
- package/scss/utilities/flex.scss +1 -1
- package/scss/utilities/inset.scss +1 -1
- package/scss/utilities/justification.scss +1 -1
- package/scss/utilities/list.scss +1 -1
- package/scss/utilities/order.scss +3 -0
- package/scss/utilities/postion.scss +1 -1
- package/scss/utilities/spacing.scss +1 -1
- package/scss/utilities/typography.scss +1 -1
- package/scss/utilities/visibility.scss +1 -1
- package/scss/utilities.scss +1 -1
- package/src/js/navigation.js +34 -0
- package/src/scss/_defaults.scss +21 -5
- package/src/scss/_index.scss +4 -3
- package/src/scss/_init.scss +2 -2
- package/src/scss/_normalize.scss +197 -0
- package/src/scss/_variables.scss +4 -1
- package/src/scss/base/_index.scss +2 -1
- package/src/scss/base/button/_defaults.scss +53 -0
- package/src/scss/base/button/_index.scss +210 -0
- package/src/scss/{component → base}/button/_variables.scss +51 -12
- package/src/scss/base/form/_defaults.scss +14 -4
- package/src/scss/base/form/_index.scss +23 -20
- package/src/scss/base/form/_variables.scss +12 -1
- package/src/scss/base/link/_defaults.scss +48 -5
- package/src/scss/base/link/_index.scss +101 -17
- package/src/scss/base/link/_variables.scss +226 -5
- package/src/scss/base/table/_defaults.scss +49 -4
- package/src/scss/base/table/_index.scss +102 -8
- package/src/scss/base/table/_variables.scss +71 -1
- package/src/scss/component/_index.scss +4 -3
- package/src/scss/component/card/_defaults.scss +29 -0
- package/src/scss/component/card/_index.scss +143 -0
- package/src/scss/component/card/_variables.scss +185 -0
- package/src/scss/component/input-group/_defaults.scss +11 -4
- package/src/scss/component/input-group/_index.scss +11 -9
- package/src/scss/component/input-group/_variables.scss +4 -1
- package/src/scss/component/menu/_defaults.scss +65 -0
- package/src/scss/component/menu/_index.scss +304 -0
- package/src/scss/component/menu/_variables.scss +491 -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/_important.scss +2 -0
- package/src/scss/functions/_theme.scss +18 -0
- package/src/scss/layout/_index.scss +2 -1
- package/src/scss/layout/columns/_defaults.scss +12 -4
- package/src/scss/layout/columns/_index.scss +27 -5
- package/src/scss/layout/columns/_variables.scss +4 -1
- package/src/scss/layout/container/_defaults.scss +13 -4
- package/src/scss/layout/container/_index.scss +12 -7
- package/src/scss/layout/container/_variables.scss +4 -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 +1 -1
- package/src/scss/mixins/_media-queries.scss +10 -1
- package/src/scss/state/_index.scss +1 -1
- package/src/scss/state/focus/_defaults.scss +6 -4
- package/src/scss/state/focus/_index.scss +1 -1
- package/src/scss/state/focus/_variables.scss +4 -1
- package/src/scss/theme/_index.scss +1 -1
- package/src/scss/theme/color/_defaults.scss +6 -4
- package/src/scss/theme/color/_index.scss +1 -1
- package/src/scss/theme/color/_variables.scss +4 -1
- package/src/scss/theme/typography/_defaults.scss +7 -5
- package/src/scss/theme/typography/_index.scss +1 -1
- package/src/scss/theme/typography/_variables.scss +9 -3
- package/src/scss/utilities/_index.scss +3 -1
- package/src/scss/utilities/alignment/_defaults.scss +6 -4
- package/src/scss/utilities/alignment/_index.scss +1 -1
- package/src/scss/utilities/alignment/_variables.scss +4 -1
- package/src/scss/utilities/color/_defaults.scss +6 -4
- package/src/scss/utilities/color/_index.scss +1 -1
- package/src/scss/utilities/color/_variables.scss +4 -1
- package/src/scss/utilities/display/_defaults.scss +6 -4
- package/src/scss/utilities/display/_index.scss +1 -1
- package/src/scss/utilities/display/_variables.scss +4 -1
- package/src/scss/utilities/flex/_defaults.scss +6 -4
- package/src/scss/utilities/flex/_index.scss +1 -1
- package/src/scss/utilities/flex/_variables.scss +4 -1
- package/src/scss/utilities/inset/_defaults.scss +6 -4
- package/src/scss/utilities/inset/_index.scss +1 -1
- package/src/scss/utilities/inset/_variables.scss +4 -1
- package/src/scss/utilities/justification/_defaults.scss +6 -4
- package/src/scss/utilities/justification/_index.scss +1 -1
- package/src/scss/utilities/justification/_variables.scss +4 -1
- package/src/scss/utilities/list/_defaults.scss +6 -4
- package/src/scss/utilities/list/_index.scss +1 -1
- package/src/scss/utilities/list/_variables.scss +4 -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/_defaults.scss +6 -4
- package/src/scss/utilities/position/_index.scss +1 -1
- package/src/scss/utilities/position/_variables.scss +4 -1
- package/src/scss/utilities/ratio/_defaults.scss +24 -0
- package/src/scss/utilities/ratio/_index.scss +26 -0
- package/src/scss/utilities/ratio/_variables.scss +9 -0
- package/src/scss/utilities/spacing/_defaults.scss +6 -4
- package/src/scss/utilities/spacing/_index.scss +41 -17
- package/src/scss/utilities/spacing/_variables.scss +4 -1
- package/src/scss/utilities/typography/_defaults.scss +6 -4
- package/src/scss/utilities/typography/_index.scss +1 -1
- package/src/scss/utilities/typography/_variables.scss +4 -1
- package/src/scss/utilities/visibility/_defaults.scss +6 -4
- package/src/scss/utilities/visibility/_index.scss +1 -1
- package/src/scss/utilities/visibility/_variables.scss +4 -1
- package/dist/component/button.css +0 -2
- package/dist/component/button.css.map +0 -1
- package/dist/component/table.css +0 -2
- package/dist/component/table.css.map +0 -1
- package/scss/component/button.scss +0 -3
- package/scss/component/table.scss +0 -3
- package/src/scss/component/button/_defaults.scss +0 -39
- package/src/scss/component/button/_index.scss +0 -134
- package/src/scss/component/table/_defaults.scss +0 -30
- package/src/scss/component/table/_index.scss +0 -77
- package/src/scss/component/table/_variables.scss +0 -64
|
@@ -1,23 +1,99 @@
|
|
|
1
|
-
//
|
|
1
|
+
// @graupl/graupl link base variables.
|
|
2
|
+
//
|
|
3
|
+
// These values are to be used to directly style bases and provide a
|
|
4
|
+
// cleaner way to reference custom properties.
|
|
2
5
|
|
|
3
6
|
@use "defaults";
|
|
4
7
|
@use "../../variables" as root-variables;
|
|
5
8
|
@use "../../defaults" as root-defaults;
|
|
6
9
|
@use "../../functions/theme";
|
|
10
|
+
@use "sass:map";
|
|
7
11
|
|
|
8
12
|
// Link properties.
|
|
9
13
|
$link-text-decoration: var(
|
|
10
14
|
--#{root-defaults.$prefix}-link-text-decoration,
|
|
11
15
|
#{defaults.$link-text-decoration}
|
|
12
16
|
);
|
|
17
|
+
$link-visited-text-decoration: var(
|
|
18
|
+
--#{root-defaults.$prefix}-link-visited-text-decoration,
|
|
19
|
+
#{defaults.$link-visited-text-decoration}
|
|
20
|
+
);
|
|
21
|
+
$link-focus-text-decoration: var(
|
|
22
|
+
--#{root-defaults.$prefix}-link-focus-text-decoration,
|
|
23
|
+
#{defaults.$link-focus-text-decoration}
|
|
24
|
+
);
|
|
25
|
+
$link-hover-text-decoration: var(
|
|
26
|
+
--#{root-defaults.$prefix}-link-hover-text-decoration,
|
|
27
|
+
#{defaults.$link-hover-text-decoration}
|
|
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
|
+
);
|
|
13
37
|
$link-text-decoration-thickness: var(
|
|
14
38
|
--#{root-defaults.$prefix}-link-text-decoration-thickness,
|
|
15
39
|
#{root-variables.$border-width}
|
|
16
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
|
+
);
|
|
49
|
+
$link-hover-text-decoration-thickness: var(
|
|
50
|
+
--#{root-defaults.$prefix}-link-hover-text-decoration-thickness,
|
|
51
|
+
#{root-variables.$border-width}
|
|
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
|
+
);
|
|
17
85
|
$link-color: var(
|
|
18
86
|
--#{root-defaults.$prefix}-link-color,
|
|
19
87
|
#{theme.get(primary, 700)}
|
|
20
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
|
+
);
|
|
21
97
|
$link-hover-color: var(
|
|
22
98
|
--#{root-defaults.$prefix}-link-hover-color,
|
|
23
99
|
#{theme.get(tertiary, 700)}
|
|
@@ -26,11 +102,156 @@ $link-active-color: var(
|
|
|
26
102
|
--#{root-defaults.$prefix}-link-active-color,
|
|
27
103
|
#{theme.get(tertiary, 700)}
|
|
28
104
|
);
|
|
29
|
-
$link-visited-color: var(
|
|
30
|
-
--#{root-defaults.$prefix}-link-visited-color,
|
|
31
|
-
#{theme.get(primary, 700)}
|
|
32
|
-
);
|
|
33
105
|
$link-disabled-color: var(
|
|
34
106
|
--#{root-defaults.$prefix}-link-disabled-color,
|
|
35
107
|
#{theme.get(primary, 200)}
|
|
36
108
|
);
|
|
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
|
+
);
|
|
145
|
+
$link-hover-background: var(
|
|
146
|
+
--#{root-defaults.$prefix}-link-hover-background,
|
|
147
|
+
#{defaults.$link-hover-background}
|
|
148
|
+
);
|
|
149
|
+
$link-active-background: var(
|
|
150
|
+
--#{root-defaults.$prefix}-link-active-background,
|
|
151
|
+
#{defaults.$link-active-background}
|
|
152
|
+
);
|
|
153
|
+
$link-disabled-background: var(
|
|
154
|
+
--#{root-defaults.$prefix}-link-disabled-background,
|
|
155
|
+
#{defaults.$link-disabled-background}
|
|
156
|
+
);
|
|
157
|
+
$link-padding-x: var(
|
|
158
|
+
--#{root-defaults.$prefix}-link-padding-x,
|
|
159
|
+
#{map.get(root-variables.$spacers, 0)}
|
|
160
|
+
);
|
|
161
|
+
$link-padding-y: var(
|
|
162
|
+
--#{root-defaults.$prefix}-link-padding-y,
|
|
163
|
+
#{map.get(root-variables.$spacers, 0)}
|
|
164
|
+
);
|
|
165
|
+
$link-padding: var(
|
|
166
|
+
--#{root-defaults.$prefix}-link-padding,
|
|
167
|
+
#{$link-padding-y} #{$link-padding-x}
|
|
168
|
+
);
|
|
169
|
+
$link-transition: var(
|
|
170
|
+
--#{root-defaults.$prefix}-link-transition,
|
|
171
|
+
background #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function},
|
|
172
|
+
color #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function},
|
|
173
|
+
transform #{map.get(root-variables.$transition-durations, fast)} #{root-variables.$transition-timing-function}
|
|
174
|
+
);
|
|
175
|
+
$link-transition-reduced-motion: var(
|
|
176
|
+
--#{root-defaults.$prefix}-link-transition-reduced-motion,
|
|
177
|
+
background #{map.get(root-variables.$transition-durations, none)} #{root-variables.$transition-timing-function},
|
|
178
|
+
color #{map.get(root-variables.$transition-durations, none)} #{root-variables.$transition-timing-function}
|
|
179
|
+
);
|
|
180
|
+
$link-transform: var(
|
|
181
|
+
--#{root-defaults.$prefix}-link-transform,
|
|
182
|
+
#{defaults.$link-transform}
|
|
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
|
+
);
|
|
192
|
+
$link-hover-transform: var(
|
|
193
|
+
--#{root-defaults.$prefix}-link-hover-transform,
|
|
194
|
+
#{defaults.$link-hover-transform}
|
|
195
|
+
);
|
|
196
|
+
$link-active-transform: var(
|
|
197
|
+
--#{root-defaults.$prefix}-link-active-transform,
|
|
198
|
+
#{defaults.$link-active-transform}
|
|
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,8 +1,53 @@
|
|
|
1
|
-
//
|
|
1
|
+
// @graupl/graupl table base default values.
|
|
2
2
|
//
|
|
3
|
-
// Generally, these should not be used directly when styling
|
|
4
|
-
// They are mainly used to provide
|
|
5
|
-
//
|
|
3
|
+
// Generally, these should not be used directly when styling bases 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
|
+
// Table selectors.
|
|
12
|
+
$table-selector: "table" !default;
|
|
13
|
+
$table-caption-selector: "caption" !default;
|
|
14
|
+
$table-header-selector: "th" !default;
|
|
15
|
+
$table-cell-selector: "td" !default;
|
|
16
|
+
$table-row-selector: "tr" !default;
|
|
17
|
+
$table-head-selector: "thead" !default;
|
|
18
|
+
$table-body-selector: "tbody" !default;
|
|
19
|
+
$table-foot-selector: "tfoot" !default;
|
|
20
|
+
$table-theme-prefix-selector: "." !default;
|
|
21
|
+
$table-bordered-selector: ".bordered" !default;
|
|
22
|
+
$table-collapsed-selector: ".collapsed" !default;
|
|
23
|
+
$table-striped-columns-selector: ".striped-columns" !default;
|
|
24
|
+
$table-striped-rows-selector: ".striped-rows" !default;
|
|
25
|
+
$table-hoverable-selector: ".hoverable" !default;
|
|
26
|
+
$table-highlight-selector: ".highlight" !default;
|
|
27
|
+
$table-responsive-selector: ".responsive-table" !default;
|
|
6
28
|
|
|
7
29
|
// Table properties.
|
|
8
30
|
$table-caption-side: bottom !default;
|
|
31
|
+
|
|
32
|
+
// Table theme defaults.
|
|
33
|
+
// This map is used to define the default colour shades for the
|
|
34
|
+
// themed table bases.
|
|
35
|
+
//
|
|
36
|
+
// e.g.
|
|
37
|
+
// Primary tables will use primary--700 as the header background,
|
|
38
|
+
// and primary--100 as the header text colour.
|
|
39
|
+
//
|
|
40
|
+
// Secondary/tertiary tables will use the same shade for their respective colours.
|
|
41
|
+
$base-table-theme-map: (
|
|
42
|
+
header-background: 700,
|
|
43
|
+
header-color: 100,
|
|
44
|
+
striped-background: 200,
|
|
45
|
+
striped-color: 900,
|
|
46
|
+
hover-background: 300,
|
|
47
|
+
hover-color: 900,
|
|
48
|
+
border-color: 900,
|
|
49
|
+
highlight-background: 500,
|
|
50
|
+
highlight-color: 100,
|
|
51
|
+
);
|
|
52
|
+
$custom-table-theme-map: () !default;
|
|
53
|
+
$table-theme-map: map.merge($base-table-theme-map, $custom-table-theme-map);
|
|
@@ -1,27 +1,121 @@
|
|
|
1
|
-
//
|
|
1
|
+
// @gruapl/graupl table base styles.
|
|
2
2
|
|
|
3
|
+
@use "defaults";
|
|
3
4
|
@use "variables" as *;
|
|
4
5
|
@use "../../mixins/layer" as *;
|
|
6
|
+
@use "../../defaults" as root-defaults;
|
|
7
|
+
@use "../../functions/theme";
|
|
5
8
|
|
|
6
9
|
@include layer(base) {
|
|
7
|
-
table {
|
|
8
|
-
caption {
|
|
10
|
+
#{defaults.$table-selector} {
|
|
11
|
+
#{defaults.$table-caption-selector} {
|
|
9
12
|
padding: $table-caption-padding;
|
|
10
13
|
caption-side: $table-caption-side;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
#{defaults.$table-header-selector} {
|
|
14
17
|
padding: $table-header-padding;
|
|
15
|
-
background: $table-header-background;
|
|
16
|
-
color: $table-header-color;
|
|
17
18
|
font-weight: $table-header-font-weight;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
#{defaults.$table-cell-selector},
|
|
22
|
+
#{defaults.$table-body-selector} #{defaults.$table-header-selector} {
|
|
22
23
|
padding: $table-cell-padding;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&#{defaults.$table-collapsed-selector} {
|
|
27
|
+
border-collapse: collapse;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&#{defaults.$table-bordered-selector} {
|
|
31
|
+
border-collapse: collapse;
|
|
32
|
+
border: $table-border;
|
|
33
|
+
|
|
34
|
+
#{defaults.$table-row-selector} > * {
|
|
35
|
+
border: $table-cell-border;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#{defaults.$table-responsive-selector} {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
overflow: scroll hidden;
|
|
44
|
+
|
|
45
|
+
#{defaults.$table-selector} {
|
|
46
|
+
width: 100%;
|
|
47
|
+
margin-bottom: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include layer(theme) {
|
|
53
|
+
#{defaults.$table-selector} {
|
|
54
|
+
@each $variant in theme.variants() {
|
|
55
|
+
&#{defaults.$table-theme-prefix-selector}#{$variant},
|
|
56
|
+
#{defaults.$table-theme-prefix-selector}#{$variant} {
|
|
57
|
+
@each $prop, $key in defaults.$table-theme-map {
|
|
58
|
+
--#{root-defaults.$prefix}-table-#{$prop}: #{theme.get(
|
|
59
|
+
$variant,
|
|
60
|
+
$key
|
|
61
|
+
)};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#{defaults.$table-header-selector} {
|
|
67
|
+
background: $table-header-background;
|
|
68
|
+
color: $table-header-color;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
#{defaults.$table-cell-selector},
|
|
72
|
+
#{defaults.$table-body-selector} #{defaults.$table-header-selector} {
|
|
23
73
|
background: $table-cell-background;
|
|
24
74
|
color: $table-cell-color;
|
|
25
75
|
}
|
|
76
|
+
|
|
77
|
+
&#{defaults.$table-bordered-selector} {
|
|
78
|
+
border-color: $table-border-color;
|
|
79
|
+
|
|
80
|
+
#{defaults.$table-row-selector} > * {
|
|
81
|
+
border-color: $table-cell-border-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&#{defaults.$table-striped-columns-selector} {
|
|
86
|
+
#{defaults.$table-body-selector}
|
|
87
|
+
#{defaults.$table-row-selector}:nth-child(odd)
|
|
88
|
+
> * {
|
|
89
|
+
background: $table-striped-background;
|
|
90
|
+
color: $table-striped-color;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&#{defaults.$table-striped-rows-selector} {
|
|
95
|
+
#{defaults.$table-body-selector}
|
|
96
|
+
#{defaults.$table-row-selector}
|
|
97
|
+
> :nth-child(odd) {
|
|
98
|
+
background: $table-striped-background;
|
|
99
|
+
color: $table-striped-color;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&#{defaults.$table-hoverable-selector} {
|
|
104
|
+
#{defaults.$table-body-selector}
|
|
105
|
+
#{defaults.$table-row-selector}:hover
|
|
106
|
+
> * {
|
|
107
|
+
background: $table-hover-background;
|
|
108
|
+
color: $table-hover-color;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
#{defaults.$table-highlight-selector} {
|
|
113
|
+
--#{root-defaults.$prefix}-table-cell-background: #{$table-highlight-background};
|
|
114
|
+
--#{root-defaults.$prefix}-table-cell-color: #{$table-highlight-color};
|
|
115
|
+
--#{root-defaults.$prefix}-table-header-background: #{$table-highlight-background};
|
|
116
|
+
--#{root-defaults.$prefix}-table-header-color: #{$table-highlight-color};
|
|
117
|
+
--#{root-defaults.$prefix}-table-striped-background: #{$table-highlight-background};
|
|
118
|
+
--#{root-defaults.$prefix}-table-striped-color: #{$table-highlight-color};
|
|
119
|
+
}
|
|
26
120
|
}
|
|
27
121
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
//
|
|
1
|
+
// @graupl/graupl table base variables.
|
|
2
|
+
//
|
|
3
|
+
// These values are to be used to directly style bases and provide a
|
|
4
|
+
// cleaner way to reference custom properties.
|
|
2
5
|
|
|
3
6
|
@use "defaults";
|
|
4
7
|
@use "../../defaults" as root-defaults;
|
|
5
8
|
@use "../../variables" as root-variables;
|
|
6
9
|
@use "../../theme/typography/variables" as typography;
|
|
7
10
|
@use "../../theme/color/variables" as color;
|
|
11
|
+
@use "../../functions/theme";
|
|
8
12
|
@use "sass:map";
|
|
9
13
|
|
|
10
14
|
// Table caption properties.
|
|
@@ -63,3 +67,69 @@ $table-cell-color: var(
|
|
|
63
67
|
--#{root-defaults.$prefix}-table-cell-color,
|
|
64
68
|
#{color.$root-color}
|
|
65
69
|
);
|
|
70
|
+
|
|
71
|
+
// Table border properties.
|
|
72
|
+
$table-border-width: var(
|
|
73
|
+
--#{root-defaults.$prefix}-table-border-width,
|
|
74
|
+
#{root-variables.$border-width}
|
|
75
|
+
);
|
|
76
|
+
$table-border-style: var(
|
|
77
|
+
--#{root-defaults.$prefix}-table-border-style,
|
|
78
|
+
#{root-variables.$border-style}
|
|
79
|
+
);
|
|
80
|
+
$table-border: var(
|
|
81
|
+
--#{root-defaults.$prefix}-table-border,
|
|
82
|
+
#{$table-border-width} #{$table-border-style}
|
|
83
|
+
);
|
|
84
|
+
$table-border-color: var(
|
|
85
|
+
--#{root-defaults.$prefix}-table-border-color,
|
|
86
|
+
#{theme.get(primary, 900)}
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// Table cell border properties.
|
|
90
|
+
$table-cell-border-width: var(
|
|
91
|
+
--#{root-defaults.$prefix}-table-cell-border-width,
|
|
92
|
+
#{$table-border-width}
|
|
93
|
+
);
|
|
94
|
+
$table-cell-border-style: var(
|
|
95
|
+
--#{root-defaults.$prefix}-table-cell-border-style,
|
|
96
|
+
#{$table-border-style}
|
|
97
|
+
);
|
|
98
|
+
$table-cell-border: var(
|
|
99
|
+
--#{root-defaults.$prefix}-table-cell-border,
|
|
100
|
+
#{$table-cell-border-width} #{$table-cell-border-style}
|
|
101
|
+
);
|
|
102
|
+
$table-cell-border-color: var(
|
|
103
|
+
--#{root-defaults.$prefix}-table-cell-border-color,
|
|
104
|
+
#{$table-border-color}
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
// Table striped properties.
|
|
108
|
+
$table-striped-background: var(
|
|
109
|
+
--#{root-defaults.$prefix}-table-striped-background,
|
|
110
|
+
#{theme.get(secondary, 200)}
|
|
111
|
+
);
|
|
112
|
+
$table-striped-color: var(
|
|
113
|
+
--#{root-defaults.$prefix}-table-striped-color,
|
|
114
|
+
#{theme.get(secondary, 900)}
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
// Table hover properties.
|
|
118
|
+
$table-hover-background: var(
|
|
119
|
+
--#{root-defaults.$prefix}-table-hover-background,
|
|
120
|
+
#{theme.get(secondary, 300)}
|
|
121
|
+
);
|
|
122
|
+
$table-hover-color: var(
|
|
123
|
+
--#{root-defaults.$prefix}-table-hover-color,
|
|
124
|
+
#{theme.get(secondary, 900)}
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
// Table highlight properties.
|
|
128
|
+
$table-highlight-background: var(
|
|
129
|
+
--#{root-defaults.$prefix}-table-highlight-background,
|
|
130
|
+
#{theme.get(secondary, 500)}
|
|
131
|
+
);
|
|
132
|
+
$table-highlight-color: var(
|
|
133
|
+
--#{root-defaults.$prefix}-table-highlight-color,
|
|
134
|
+
#{theme.get(secondary, 100)}
|
|
135
|
+
);
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
|
|
21
|
+
// Card properties.
|
|
22
|
+
$card-transform: none !default;
|
|
23
|
+
$card-hover-transform: $card-transform !default;
|
|
24
|
+
|
|
25
|
+
// Card layout properties.
|
|
26
|
+
$card-content-ratio: 1fr !default;
|
|
27
|
+
$card-image-ratio: auto !default;
|
|
28
|
+
$horizontal-card-content-ratio: 3fr !default;
|
|
29
|
+
$horizontal-card-image-ratio: 2fr !default;
|