@graupl/graupl 1.0.0-beta.0 → 1.0.0-beta.2
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 +35 -0
- package/dist/css/base/button.css +1 -1
- package/dist/css/base/button.css.map +1 -1
- package/dist/css/base/form.css +1 -1
- package/dist/css/base/form.css.map +1 -1
- package/dist/css/base/link.css +1 -1
- package/dist/css/base/link.css.map +1 -1
- package/dist/css/base/table.css +1 -1
- package/dist/css/base/table.css.map +1 -1
- package/dist/css/base.css +1 -1
- package/dist/css/base.css.map +1 -1
- package/dist/css/component/accordion.css +1 -1
- package/dist/css/component/accordion.css.map +1 -1
- package/dist/css/component/alert.css +1 -1
- package/dist/css/component/alert.css.map +1 -1
- package/dist/css/component/card.css +1 -1
- package/dist/css/component/card.css.map +1 -1
- package/dist/css/component/carousel.css +1 -1
- package/dist/css/component/carousel.css.map +1 -1
- package/dist/css/component/input-group.css +1 -1
- package/dist/css/component/input-group.css.map +1 -1
- package/dist/css/component/list.css +2 -0
- package/dist/css/component/list.css.map +1 -0
- package/dist/css/component/menu.css +1 -1
- package/dist/css/component/menu.css.map +1 -1
- package/dist/css/component/navigation.css +1 -1
- package/dist/css/component/navigation.css.map +1 -1
- package/dist/css/component.css +1 -1
- package/dist/css/component.css.map +1 -1
- package/dist/css/graupl.css +1 -1
- package/dist/css/graupl.css.map +1 -1
- package/dist/css/layout/columns.css.map +1 -1
- package/dist/css/layout/container.css.map +1 -1
- package/dist/css/layout/flex-columns.css.map +1 -1
- package/dist/css/layout.css +1 -1
- package/dist/css/layout.css.map +1 -1
- package/dist/css/normalize.css.map +1 -1
- package/dist/css/state/focus.css +1 -1
- package/dist/css/state/focus.css.map +1 -1
- package/dist/css/state.css +1 -1
- package/dist/css/state.css.map +1 -1
- package/dist/css/theme/color.css.map +1 -1
- package/dist/css/theme/typography.css.map +1 -1
- package/dist/css/theme.css.map +1 -1
- package/dist/css/utilities/alignment.css.map +1 -1
- package/dist/css/utilities/border.css +2 -0
- package/dist/css/utilities/border.css.map +1 -0
- package/dist/css/utilities/color.css +1 -1
- package/dist/css/utilities/color.css.map +1 -1
- package/dist/css/utilities/display.css +1 -1
- package/dist/css/utilities/display.css.map +1 -1
- package/dist/css/utilities/flex.css +1 -1
- package/dist/css/utilities/flex.css.map +1 -1
- package/dist/css/utilities/height.css +1 -1
- package/dist/css/utilities/height.css.map +1 -1
- package/dist/css/utilities/inset.css +1 -1
- package/dist/css/utilities/inset.css.map +1 -1
- package/dist/css/utilities/justification.css.map +1 -1
- package/dist/css/utilities/list.css.map +1 -1
- package/dist/css/utilities/order.css.map +1 -1
- package/dist/css/utilities/postion.css +1 -1
- package/dist/css/utilities/postion.css.map +1 -1
- package/dist/css/utilities/ratio.css +1 -1
- package/dist/css/utilities/ratio.css.map +1 -1
- package/dist/css/utilities/spacing.css +1 -1
- package/dist/css/utilities/spacing.css.map +1 -1
- package/dist/css/utilities/typography.css +1 -1
- package/dist/css/utilities/typography.css.map +1 -1
- package/dist/css/utilities/visibility.css.map +1 -1
- package/dist/css/utilities/width.css +1 -1
- package/dist/css/utilities/width.css.map +1 -1
- package/dist/css/utilities.css +1 -1
- package/dist/css/utilities.css.map +1 -1
- package/docs/components/alert.md +28 -28
- package/docs/components/button.md +36 -36
- package/docs/components/card.md +39 -39
- package/docs/components/inputgroup.md +12 -12
- package/docs/components/menu.md +112 -112
- package/docs/components/navigation.md +52 -52
- package/docs/content.md +86 -86
- package/docs/defaults.md +10 -10
- package/docs/forms.md +34 -34
- package/docs/layout.md +21 -21
- package/docs/state.md +8 -8
- package/docs/theme.md +58 -58
- package/docs/utilities.md +1 -1
- package/index.html +84 -12
- package/package.json +1 -1
- package/scss/component/list.scss +3 -0
- package/scss/utilities/border.scss +3 -0
- package/src/scss/_defaults.scss +14 -5
- package/src/scss/_variables.scss +10 -10
- package/src/scss/base/button/_index.scss +70 -70
- package/src/scss/base/button/_mixins.scss +22 -22
- package/src/scss/base/button/_variables.scss +36 -36
- package/src/scss/base/form/_variables.scss +34 -37
- package/src/scss/base/link/_index.scss +41 -41
- package/src/scss/base/link/_variables.scss +60 -60
- package/src/scss/base/table/_index.scss +7 -7
- package/src/scss/base/table/_variables.scss +26 -26
- package/src/scss/component/_index.scss +1 -0
- package/src/scss/component/accordion/_index.scss +6 -6
- package/src/scss/component/accordion/_variables.scss +65 -65
- package/src/scss/component/alert/_index.scss +11 -11
- package/src/scss/component/alert/_variables.scss +40 -43
- package/src/scss/component/card/_index.scss +6 -6
- package/src/scss/component/card/_variables.scss +39 -39
- package/src/scss/component/carousel/_index.scss +3 -3
- package/src/scss/component/carousel/_variables.scss +21 -21
- package/src/scss/component/input-group/_index.scss +1 -1
- package/src/scss/component/input-group/_variables.scss +12 -12
- package/src/scss/component/list/_defaults.scss +15 -0
- package/src/scss/component/list/_index.scss +50 -0
- package/src/scss/component/list/_variables.scss +176 -0
- package/src/scss/component/menu/_index.scss +135 -135
- package/src/scss/component/menu/_variables.scss +112 -112
- package/src/scss/component/navigation/_index.scss +38 -38
- package/src/scss/component/navigation/_variables.scss +52 -52
- package/src/scss/functions/_screen.scss +8 -0
- package/src/scss/functions/_utility.scss +28 -0
- package/src/scss/layout/columns/_index.scss +6 -6
- package/src/scss/layout/columns/_variables.scss +7 -7
- package/src/scss/layout/container/_variables.scss +10 -10
- package/src/scss/layout/flex-columns/_index.scss +8 -8
- package/src/scss/layout/flex-columns/_variables.scss +4 -4
- package/src/scss/mixins/_layer.scss +5 -1
- package/src/scss/mixins/_screen.scss +24 -3
- package/src/scss/mixins/_state.scss +18 -0
- package/src/scss/mixins/_theme.scss +15 -0
- package/src/scss/mixins/_utility.scss +119 -17
- package/src/scss/state/focus/_variables.scss +8 -8
- package/src/scss/theme/color/_index.scss +7 -7
- package/src/scss/theme/color/_variables.scss +7 -7
- package/src/scss/theme/typography/_variables.scss +52 -52
- package/src/scss/utilities/_index.scss +1 -0
- package/src/scss/utilities/alignment/_defaults.scss +7 -5
- package/src/scss/utilities/alignment/_index.scss +117 -24
- package/src/scss/utilities/border/_defaults.scss +61 -0
- package/src/scss/utilities/border/_index.scss +269 -0
- package/src/scss/utilities/border/_variables.scss +6 -0
- package/src/scss/utilities/color/_defaults.scss +6 -4
- package/src/scss/utilities/color/_index.scss +137 -26
- package/src/scss/utilities/display/_defaults.scss +8 -4
- package/src/scss/utilities/display/_index.scss +88 -15
- package/src/scss/utilities/flex/_defaults.scss +30 -6
- package/src/scss/utilities/flex/_index.scss +215 -31
- package/src/scss/utilities/height/_defaults.scss +7 -5
- package/src/scss/utilities/height/_index.scss +183 -45
- package/src/scss/utilities/inset/_defaults.scss +4 -2
- package/src/scss/utilities/inset/_index.scss +58 -5
- package/src/scss/utilities/justification/_defaults.scss +7 -5
- package/src/scss/utilities/justification/_index.scss +117 -24
- package/src/scss/utilities/list/_defaults.scss +6 -4
- package/src/scss/utilities/list/_index.scss +86 -17
- package/src/scss/utilities/order/_defaults.scss +5 -3
- package/src/scss/utilities/order/_index.scss +68 -20
- package/src/scss/utilities/position/_defaults.scss +5 -3
- package/src/scss/utilities/position/_index.scss +55 -10
- package/src/scss/utilities/ratio/_defaults.scss +7 -5
- package/src/scss/utilities/ratio/_index.scss +51 -12
- package/src/scss/utilities/ratio/_variables.scss +1 -1
- package/src/scss/utilities/spacing/_defaults.scss +4 -2
- package/src/scss/utilities/spacing/_index.scss +241 -28
- package/src/scss/utilities/typography/_defaults.scss +21 -5
- package/src/scss/utilities/typography/_index.scss +577 -143
- package/src/scss/utilities/visibility/_defaults.scss +5 -3
- package/src/scss/utilities/visibility/_index.scss +56 -10
- package/src/scss/utilities/width/_defaults.scss +7 -5
- package/src/scss/utilities/width/_index.scss +183 -45
- package/stylelint.config.js +1 -0
package/docs/state.md
CHANGED
|
@@ -14,54 +14,54 @@ Variables
|
|
|
14
14
|
The focus width property:
|
|
15
15
|
|
|
16
16
|
```scss
|
|
17
|
-
--#{root-defaults.$prefix}
|
|
17
|
+
--#{root-defaults.$prefix}focus-width
|
|
18
18
|
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
The focus outline color property:
|
|
22
22
|
|
|
23
23
|
```scss
|
|
24
|
-
--#{root-defaults.$prefix}
|
|
24
|
+
--#{root-defaults.$prefix}focus-outline-color
|
|
25
25
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
The focus outline width property:
|
|
29
29
|
|
|
30
30
|
```scss
|
|
31
|
-
--#{root-defaults.$prefix}
|
|
31
|
+
--#{root-defaults.$prefix}focus-outline-width
|
|
32
32
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
The focus outline style property:
|
|
36
36
|
|
|
37
37
|
```scss
|
|
38
|
-
--#{root-defaults.$prefix}
|
|
38
|
+
--#{root-defaults.$prefix}focus-outline-style
|
|
39
39
|
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
The focus outline offset property:
|
|
43
43
|
|
|
44
44
|
```scss
|
|
45
|
-
--#{root-defaults.$prefix}
|
|
45
|
+
--#{root-defaults.$prefix}focus-outline-offset
|
|
46
46
|
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
The focus box shadow color property:
|
|
50
50
|
|
|
51
51
|
```scss
|
|
52
|
-
--#{root-defaults.$prefix}
|
|
52
|
+
--#{root-defaults.$prefix}focus-box-shadow-color
|
|
53
53
|
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
The focus box shadow style property:
|
|
57
57
|
|
|
58
58
|
```scss
|
|
59
|
-
--#{root-defaults.$prefix}
|
|
59
|
+
--#{root-defaults.$prefix}focus-box-shadow-style
|
|
60
60
|
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
The focus box shadow property:
|
|
64
64
|
|
|
65
65
|
```scss
|
|
66
|
-
--#{root-defaults.$prefix}
|
|
66
|
+
--#{root-defaults.$prefix}focus-box-shadow
|
|
67
67
|
```
|
package/docs/theme.md
CHANGED
|
@@ -65,19 +65,19 @@ Variables
|
|
|
65
65
|
|
|
66
66
|
```sass
|
|
67
67
|
// A custom variable is defined for each color and shade.
|
|
68
|
-
--#{root-defaults.$prefix}
|
|
68
|
+
--#{root-defaults.$prefix}#{$color}--#{$shade}
|
|
69
69
|
|
|
70
70
|
// There are three modes for the theme.
|
|
71
71
|
// Active is what is currently being used.
|
|
72
|
-
--#{root-defaults.$prefix}
|
|
72
|
+
--#{root-defaults.$prefix}theme-active--#{$color}--#{$shade}
|
|
73
73
|
// Theme dark is the color used when dark mode is active.
|
|
74
|
-
--#{root-defaults.$prefix}
|
|
74
|
+
--#{root-defaults.$prefix}theme-dark--#{$color}--#{$shade}
|
|
75
75
|
// Light theme is the color active whne light mode is active
|
|
76
|
-
--#{root-defaults.$prefix}
|
|
76
|
+
--#{root-defaults.$prefix}theme-light--#{$color}--#{$shade}
|
|
77
77
|
|
|
78
78
|
// Globaly defined root color and root background.
|
|
79
|
-
--#{root-defaults.$prefix}
|
|
80
|
-
--#{root-defaults.$prefix}
|
|
79
|
+
--#{root-defaults.$prefix}root-color
|
|
80
|
+
--#{root-defaults.$prefix}root-background
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
## Typography
|
|
@@ -136,123 +136,123 @@ Variables
|
|
|
136
136
|
The font properties:
|
|
137
137
|
|
|
138
138
|
```scss
|
|
139
|
-
--#{root-defaults.$prefix}
|
|
140
|
-
--#{root-defaults.$prefix}
|
|
139
|
+
--#{root-defaults.$prefix}font-size-base
|
|
140
|
+
--#{root-defaults.$prefix}line-height
|
|
141
141
|
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
The font size properties:
|
|
145
145
|
|
|
146
146
|
```scss
|
|
147
|
-
--#{root-defaults.$prefix}
|
|
147
|
+
--#{root-defaults.$prefix}font-#{$key}
|
|
148
148
|
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
The font weight properties:
|
|
152
152
|
|
|
153
153
|
```scss
|
|
154
|
-
--#{root-defaults.$prefix}
|
|
155
|
-
--#{root-defaults.$prefix}
|
|
154
|
+
--#{root-defaults.$prefix}font-weight-#{$key}
|
|
155
|
+
--#{root-defaults.$prefix}font-weight-bold
|
|
156
156
|
|
|
157
157
|
```
|
|
158
158
|
|
|
159
159
|
The root properties:
|
|
160
160
|
|
|
161
161
|
```scss
|
|
162
|
-
--#{root-defaults.$prefix}
|
|
163
|
-
--#{root-defaults.$prefix}
|
|
162
|
+
--#{root-defaults.$prefix}root-font-family
|
|
163
|
+
--#{root-defaults.$prefix}root-font-size
|
|
164
164
|
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
The typography properties:
|
|
168
168
|
|
|
169
169
|
```scss
|
|
170
|
-
--#{root-defaults.$prefix}
|
|
171
|
-
--#{root-defaults.$prefix}
|
|
172
|
-
--#{root-defaults.$prefix}
|
|
173
|
-
--#{root-defaults.$prefix}
|
|
174
|
-
--#{root-defaults.$prefix}
|
|
175
|
-
--#{root-defaults.$prefix}
|
|
176
|
-
--#{root-defaults.$prefix}
|
|
177
|
-
--#{root-defaults.$prefix}
|
|
178
|
-
--#{root-defaults.$prefix}
|
|
179
|
-
--#{root-defaults.$prefix}
|
|
180
|
-
--#{root-defaults.$prefix}
|
|
170
|
+
--#{root-defaults.$prefix}body-font-size
|
|
171
|
+
--#{root-defaults.$prefix}body-line-height
|
|
172
|
+
--#{root-defaults.$prefix}body-font-weight
|
|
173
|
+
--#{root-defaults.$prefix}paragraph-font-size
|
|
174
|
+
--#{root-defaults.$prefix}paragraph-line-height
|
|
175
|
+
--#{root-defaults.$prefix}paragraph-margin
|
|
176
|
+
--#{root-defaults.$prefix}paragraph-font-weight
|
|
177
|
+
--#{root-defaults.$prefix}small-font-size
|
|
178
|
+
--#{root-defaults.$prefix}small-line-height
|
|
179
|
+
--#{root-defaults.$prefix}small-margin
|
|
180
|
+
--#{root-defaults.$prefix}small-font-weight
|
|
181
181
|
|
|
182
182
|
```
|
|
183
183
|
|
|
184
184
|
The heading properties:
|
|
185
185
|
|
|
186
186
|
```scss
|
|
187
|
-
--#{root-defaults.$prefix}
|
|
188
|
-
--#{root-defaults.$prefix}
|
|
189
|
-
--#{root-defaults.$prefix}
|
|
190
|
-
--#{root-defaults.$prefix}
|
|
187
|
+
--#{root-defaults.$prefix}heading-font-family
|
|
188
|
+
--#{root-defaults.$prefix}heading-line-height
|
|
189
|
+
--#{root-defaults.$prefix}heading-margin
|
|
190
|
+
--#{root-defaults.$prefix}heading-font-weight
|
|
191
191
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
The H1 properties:
|
|
195
195
|
|
|
196
196
|
```scss
|
|
197
|
-
--#{root-defaults.$prefix}
|
|
198
|
-
--#{root-defaults.$prefix}
|
|
199
|
-
--#{root-defaults.$prefix}
|
|
200
|
-
--#{root-defaults.$prefix}
|
|
201
|
-
--#{root-defaults.$prefix}
|
|
197
|
+
--#{root-defaults.$prefix}h1-font-size
|
|
198
|
+
--#{root-defaults.$prefix}h1-line-height
|
|
199
|
+
--#{root-defaults.$prefix}h1-margin
|
|
200
|
+
--#{root-defaults.$prefix}h1-font-family
|
|
201
|
+
--#{root-defaults.$prefix}h1-font-weight
|
|
202
202
|
|
|
203
203
|
```
|
|
204
204
|
|
|
205
205
|
The H2 properties:
|
|
206
206
|
|
|
207
207
|
```scss
|
|
208
|
-
--#{root-defaults.$prefix}
|
|
209
|
-
--#{root-defaults.$prefix}
|
|
210
|
-
--#{root-defaults.$prefix}
|
|
211
|
-
--#{root-defaults.$prefix}
|
|
212
|
-
--#{root-defaults.$prefix}
|
|
208
|
+
--#{root-defaults.$prefix}h2-font-size
|
|
209
|
+
--#{root-defaults.$prefix}h2-line-height
|
|
210
|
+
--#{root-defaults.$prefix}h2-margin
|
|
211
|
+
--#{root-defaults.$prefix}h2-font-family
|
|
212
|
+
--#{root-defaults.$prefix}h2-font-weight
|
|
213
213
|
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
The H3 properties:
|
|
217
217
|
|
|
218
218
|
```scss
|
|
219
|
-
--#{root-defaults.$prefix}
|
|
220
|
-
--#{root-defaults.$prefix}
|
|
221
|
-
--#{root-defaults.$prefix}
|
|
222
|
-
--#{root-defaults.$prefix}
|
|
223
|
-
--#{root-defaults.$prefix}
|
|
219
|
+
--#{root-defaults.$prefix}h3-font-size
|
|
220
|
+
--#{root-defaults.$prefix}h3-line-height
|
|
221
|
+
--#{root-defaults.$prefix}h3-margin
|
|
222
|
+
--#{root-defaults.$prefix}h3-font-family
|
|
223
|
+
--#{root-defaults.$prefix}h3-font-weight
|
|
224
224
|
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
The H4 properties:
|
|
228
228
|
|
|
229
229
|
```scss
|
|
230
|
-
--#{root-defaults.$prefix}
|
|
231
|
-
--#{root-defaults.$prefix}
|
|
232
|
-
--#{root-defaults.$prefix}
|
|
233
|
-
--#{root-defaults.$prefix}
|
|
234
|
-
--#{root-defaults.$prefix}
|
|
230
|
+
--#{root-defaults.$prefix}h4-font-size
|
|
231
|
+
--#{root-defaults.$prefix}h4-line-height
|
|
232
|
+
--#{root-defaults.$prefix}h4-margin
|
|
233
|
+
--#{root-defaults.$prefix}h4-font-family
|
|
234
|
+
--#{root-defaults.$prefix}h4-font-weight
|
|
235
235
|
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
The H5 properties:
|
|
239
239
|
|
|
240
240
|
```scss
|
|
241
|
-
--#{root-defaults.$prefix}
|
|
242
|
-
--#{root-defaults.$prefix}
|
|
243
|
-
--#{root-defaults.$prefix}
|
|
244
|
-
--#{root-defaults.$prefix}
|
|
245
|
-
--#{root-defaults.$prefix}
|
|
241
|
+
--#{root-defaults.$prefix}h5-font-size
|
|
242
|
+
--#{root-defaults.$prefix}h5-line-height
|
|
243
|
+
--#{root-defaults.$prefix}h5-margin
|
|
244
|
+
--#{root-defaults.$prefix}h5-font-family
|
|
245
|
+
--#{root-defaults.$prefix}h5-font-weight
|
|
246
246
|
|
|
247
247
|
```
|
|
248
248
|
|
|
249
249
|
The H6 properties:
|
|
250
250
|
|
|
251
251
|
```scss
|
|
252
|
-
--#{root-defaults.$prefix}
|
|
253
|
-
--#{root-defaults.$prefix}
|
|
254
|
-
--#{root-defaults.$prefix}
|
|
255
|
-
--#{root-defaults.$prefix}
|
|
256
|
-
--#{root-defaults.$prefix}
|
|
252
|
+
--#{root-defaults.$prefix}h6-font-size
|
|
253
|
+
--#{root-defaults.$prefix}h6-line-height
|
|
254
|
+
--#{root-defaults.$prefix}h6-margin
|
|
255
|
+
--#{root-defaults.$prefix}h6-font-family
|
|
256
|
+
--#{root-defaults.$prefix}h6-font-weight
|
|
257
257
|
|
|
258
258
|
```
|
package/docs/utilities.md
CHANGED
package/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<p>This source code can be found in <a href="https://github.com/Graupl/graupl">GitHub</a>.</p>
|
|
16
16
|
<p>Graupl supports light and dark modes out-of-the-box.</p>
|
|
17
17
|
<button id="dark-mode-toggle" class="button mt-5 w-half">Toggle dark mode</button>
|
|
18
|
-
<div class="full-width container
|
|
18
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
19
19
|
<h2>Buttons</h2>
|
|
20
20
|
<p>There are 4 colours of buttons supported by default, with plans to have a "graupl-theme" plugin that adds more.
|
|
21
21
|
</p>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<a class="button" href="#" disabled>Anchor Button</a>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
|
-
<div class="full-width container
|
|
37
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
38
38
|
<h2>Form elements</h2>
|
|
39
39
|
<p>Graupl provides default styling for all form elements.</p>
|
|
40
40
|
<form class="full-width rg-4">
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</optgroup>
|
|
84
84
|
</select>
|
|
85
85
|
</div>
|
|
86
|
-
<div class="input-group"><label for"multi-select">Multi-select</label>
|
|
86
|
+
<div class="input-group"><label for="multi-select">Multi-select</label>
|
|
87
87
|
<select id="multi-select" multiple>
|
|
88
88
|
<option value="1">Option 1</option>
|
|
89
89
|
<option value="2">Option 2</option>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
</div>
|
|
132
132
|
</form>
|
|
133
133
|
</div>
|
|
134
|
-
<div class="full-width container
|
|
134
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
135
135
|
<h2>Navigation</h2>
|
|
136
136
|
<div class="py-7">
|
|
137
137
|
<nav class="navigation" data-graupl-menu-type="DisclosureMenu"
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
</nav>
|
|
156
156
|
</div>
|
|
157
157
|
</div>
|
|
158
|
-
<div class="full-width container
|
|
158
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
159
159
|
<h2>Tables</h2>
|
|
160
160
|
<p>Graupl provides some default styling for tables as well as some other useful features to customize them.</p>
|
|
161
161
|
<table class="bordered striped-rows hoverable">
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
</table>
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
|
-
<div class="full-width container
|
|
389
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
390
390
|
<h2>Columns</h2>
|
|
391
391
|
<div class="columns count-6 py-5">
|
|
392
392
|
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
|
|
404
404
|
</div>
|
|
405
405
|
</div>
|
|
406
|
-
<div class="full-width container
|
|
406
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
407
407
|
<h2>Flex columns</h2>
|
|
408
408
|
<div class="flex-columns py-5">
|
|
409
409
|
<div class="col-6 col-md-8 col-xl-9 py-7 bg-primary-700 text-primary-100 px-5">
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
<div class="col-4 py-7 bg-primary-700 text-primary-100 px-5"></div>
|
|
429
429
|
</div>
|
|
430
430
|
</div>
|
|
431
|
-
<div class="full-width container
|
|
431
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
432
432
|
<h2>Cards</h2>
|
|
433
433
|
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.top</span> class
|
|
434
434
|
will have the image placed on the top while cards using the <span
|
|
@@ -533,7 +533,7 @@
|
|
|
533
533
|
</div>
|
|
534
534
|
</div>
|
|
535
535
|
</div>
|
|
536
|
-
<div class="full-width container
|
|
536
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
537
537
|
<h2>Horizontal Cards</h2>
|
|
538
538
|
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.right</span> class
|
|
539
539
|
will have the image placed on the right while cards using the <span
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
</div>
|
|
639
639
|
</div>
|
|
640
640
|
</div>
|
|
641
|
-
<div class="full-width container
|
|
641
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
642
642
|
<h2>Inverse Cards</h2>
|
|
643
643
|
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.inverse</span>
|
|
644
644
|
class will have the image placed on the right if it is a horizontal card and on the bottom if it is a vertical
|
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
</div>
|
|
682
682
|
</div>
|
|
683
683
|
</div>
|
|
684
|
-
<div class="full-width container
|
|
684
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
685
685
|
<h2>Alerts</h2>
|
|
686
686
|
<div class="display-grid g-5">
|
|
687
687
|
<div class="alert">
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
</div>
|
|
789
789
|
</div>
|
|
790
790
|
</div>
|
|
791
|
-
<div class="full-width container
|
|
791
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
792
792
|
<h2>Carousels</h2>
|
|
793
793
|
<section class="carousel">
|
|
794
794
|
<div class="carousel-control-container">
|
|
@@ -822,6 +822,78 @@
|
|
|
822
822
|
</div>
|
|
823
823
|
</section>
|
|
824
824
|
</div>
|
|
825
|
+
<div class="full-width container py-10 my-10 align-content-center">
|
|
826
|
+
<h2>Lists</h2>
|
|
827
|
+
<p>Lists are inspired by Bootstrap's list groups.</p>
|
|
828
|
+
<h3>Unordered list</h3>
|
|
829
|
+
<ul class="list">
|
|
830
|
+
<li class="list-item">
|
|
831
|
+
<a href="#">List item 1</a>
|
|
832
|
+
</li>
|
|
833
|
+
<li class="list-item">
|
|
834
|
+
List item 2
|
|
835
|
+
</li>
|
|
836
|
+
<li class="list-item">
|
|
837
|
+
<a href="#" class="stretched">List item 3</a>
|
|
838
|
+
</li>
|
|
839
|
+
</ul>
|
|
840
|
+
<h3>Ordered list</h3>
|
|
841
|
+
<p>You can add the list markers back in using utility classes (in this case <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.list-style-decimal</span> and <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.list-style-inside</span>).</p>
|
|
842
|
+
<ol class="list list-style-decimal list-style-inside">
|
|
843
|
+
<li class="list-item">
|
|
844
|
+
<a href="#">List item 1</a>
|
|
845
|
+
</li>
|
|
846
|
+
<li class="list-item">
|
|
847
|
+
List item 2
|
|
848
|
+
</li>
|
|
849
|
+
<li class="list-item">
|
|
850
|
+
<a href="#" class="stretched">List item 3</a>
|
|
851
|
+
</li>
|
|
852
|
+
</ol>
|
|
853
|
+
<h3>Inline lists</h3>
|
|
854
|
+
<p>We can achieve an inline list by utilizing the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.columns</span> class.</p>
|
|
855
|
+
<ul class="list columns">
|
|
856
|
+
<li class="list-item">
|
|
857
|
+
<a href="#">List item 1</a>
|
|
858
|
+
</li>
|
|
859
|
+
<li class="list-item">
|
|
860
|
+
List item 2
|
|
861
|
+
</li>
|
|
862
|
+
<li class="list-item">
|
|
863
|
+
<a href="#" class="stretched">List item 3</a>
|
|
864
|
+
</li>
|
|
865
|
+
<li class="list-item">
|
|
866
|
+
<a href="#">List item 4</a>
|
|
867
|
+
</li>
|
|
868
|
+
<li class="list-item">
|
|
869
|
+
List item 5
|
|
870
|
+
</li>
|
|
871
|
+
<li class="list-item">
|
|
872
|
+
<a href="#" class="stretched">List item 6</a>
|
|
873
|
+
</li>
|
|
874
|
+
</ul>
|
|
875
|
+
<p class="pt-5">We can also use the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.display-flex</span> utility class.</p>
|
|
876
|
+
<ul class="list display-flex">
|
|
877
|
+
<li class="list-item">
|
|
878
|
+
<a href="#">List item 1</a>
|
|
879
|
+
</li>
|
|
880
|
+
<li class="list-item">
|
|
881
|
+
List item 2
|
|
882
|
+
</li>
|
|
883
|
+
<li class="list-item">
|
|
884
|
+
<a href="#" class="stretched">List item 3</a>
|
|
885
|
+
</li>
|
|
886
|
+
<li class="list-item">
|
|
887
|
+
<a href="#">List item 4</a>
|
|
888
|
+
</li>
|
|
889
|
+
<li class="list-item">
|
|
890
|
+
List item 5
|
|
891
|
+
</li>
|
|
892
|
+
<li class="list-item">
|
|
893
|
+
<a href="#" class="stretched">List item 6</a>
|
|
894
|
+
</li>
|
|
895
|
+
</ul>
|
|
896
|
+
</div>
|
|
825
897
|
</main>
|
|
826
898
|
<script src="https://cdn.jsdelivr.net/npm/accessible-menu/dist/disclosure-menu.iife.js"></script>
|
|
827
899
|
<script type="module" src="src/js/alert/index.js"></script>
|
package/package.json
CHANGED
package/src/scss/_defaults.scss
CHANGED
|
@@ -9,11 +9,15 @@
|
|
|
9
9
|
@use "sass:map";
|
|
10
10
|
|
|
11
11
|
// Prefix for custom properties and other naming conventions.
|
|
12
|
-
$
|
|
12
|
+
$id: "graupl" !default;
|
|
13
|
+
$prefix: "#{$id}-" !default;
|
|
13
14
|
|
|
14
15
|
// Settings.
|
|
15
16
|
$use-important: true !default;
|
|
16
|
-
$
|
|
17
|
+
$screen-aware-utilities: true !default;
|
|
18
|
+
$theme-aware-utilities: true !default;
|
|
19
|
+
$state-aware-utilities: true !default;
|
|
20
|
+
$use-layers: true !default;
|
|
17
21
|
|
|
18
22
|
// Layout properties.
|
|
19
23
|
$content-max-width: 96ch !default;
|
|
@@ -87,7 +91,7 @@ $interactive-min-height: 44px !default;
|
|
|
87
91
|
|
|
88
92
|
// Border properties.
|
|
89
93
|
$border-radius: 0.125rem !default;
|
|
90
|
-
$border-width:
|
|
94
|
+
$border-width: 0.125rem !default;
|
|
91
95
|
$border-style: solid !default;
|
|
92
96
|
|
|
93
97
|
// Transition properties.
|
|
@@ -132,5 +136,10 @@ $base-state-selectors: (
|
|
|
132
136
|
$custom-state-selectors: () !default;
|
|
133
137
|
$state-selectors: map.merge($base-state-selectors, $custom-state-selectors);
|
|
134
138
|
|
|
135
|
-
//
|
|
136
|
-
$
|
|
139
|
+
// Utility properties.
|
|
140
|
+
$utility-selector-prefix: "." !default;
|
|
141
|
+
|
|
142
|
+
// Utility modifier separators.
|
|
143
|
+
$utility-screen-aware-separator: "\\:" !default;
|
|
144
|
+
$utility-theme-aware-separator: "\\:" !default;
|
|
145
|
+
$utility-state-aware-separator: "\\:" !default;
|
package/src/scss/_variables.scss
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
// Layout properties.
|
|
10
10
|
$content-max-width: var(
|
|
11
|
-
--#{defaults.$prefix}
|
|
11
|
+
--#{defaults.$prefix}content-max-width,
|
|
12
12
|
defaults.$content-max-width
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
// Spacing properties.
|
|
16
|
-
$spacer: var(--#{defaults.$prefix}
|
|
16
|
+
$spacer: var(--#{defaults.$prefix}spacer, defaults.$spacer);
|
|
17
17
|
$spacers: ();
|
|
18
18
|
|
|
19
19
|
@each $key, $value in defaults.$spacer-multipliers {
|
|
20
20
|
$space: var(
|
|
21
|
-
--#{defaults.$prefix}
|
|
21
|
+
--#{defaults.$prefix}spacer-#{$key},
|
|
22
22
|
calc(#{$value} * #{$spacer})
|
|
23
23
|
);
|
|
24
24
|
$spacers: map.set($spacers, $key, $space);
|
|
@@ -26,28 +26,28 @@ $spacers: ();
|
|
|
26
26
|
|
|
27
27
|
// Border properties.
|
|
28
28
|
$border-radius: var(
|
|
29
|
-
--#{defaults.$prefix}
|
|
29
|
+
--#{defaults.$prefix}border-radius,
|
|
30
30
|
defaults.$border-radius
|
|
31
31
|
);
|
|
32
|
-
$border-width: var(--#{defaults.$prefix}
|
|
33
|
-
$border-style: var(--#{defaults.$prefix}
|
|
32
|
+
$border-width: var(--#{defaults.$prefix}border-width, defaults.$border-width);
|
|
33
|
+
$border-style: var(--#{defaults.$prefix}border-style, defaults.$border-style);
|
|
34
34
|
|
|
35
35
|
// Transition properties.
|
|
36
36
|
$transition-durations: (
|
|
37
37
|
fast: var(
|
|
38
|
-
--#{defaults.$prefix}
|
|
38
|
+
--#{defaults.$prefix}transition-duration-fast,
|
|
39
39
|
map.get(defaults.$transition-durations, fast)
|
|
40
40
|
),
|
|
41
41
|
default: var(
|
|
42
|
-
--#{defaults.$prefix}
|
|
42
|
+
--#{defaults.$prefix}transition-duration-default,
|
|
43
43
|
map.get(defaults.$transition-durations, default)
|
|
44
44
|
),
|
|
45
45
|
slow: var(
|
|
46
|
-
--#{defaults.$prefix}
|
|
46
|
+
--#{defaults.$prefix}transition-duration-slow,
|
|
47
47
|
map.get(defaults.$transition-durations, slow)
|
|
48
48
|
),
|
|
49
49
|
);
|
|
50
50
|
$transition-timing-function: var(
|
|
51
|
-
--#{defaults.$prefix}
|
|
51
|
+
--#{defaults.$prefix}transition-timing-function,
|
|
52
52
|
defaults.$transition-timing-function
|
|
53
53
|
);
|