@graupl/core 1.0.0-beta.51 → 1.0.0-beta.53

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.
Files changed (49) hide show
  1. package/dist/css/graupl.css +1 -1
  2. package/dist/css/graupl.css.map +1 -1
  3. package/dist/css/layout/columns.css +1 -1
  4. package/dist/css/layout/columns.css.map +1 -1
  5. package/dist/css/layout/flex-columns.css.map +1 -1
  6. package/dist/css/layout.css +1 -1
  7. package/dist/css/layout.css.map +1 -1
  8. package/dist/css/utilities/block-size.css +1 -1
  9. package/dist/css/utilities/block-size.css.map +1 -1
  10. package/dist/css/utilities/grid.css +2 -0
  11. package/dist/css/utilities/grid.css.map +1 -0
  12. package/dist/css/utilities/inline-size.css +1 -1
  13. package/dist/css/utilities/inline-size.css.map +1 -1
  14. package/dist/css/utilities.css +1 -1
  15. package/dist/css/utilities.css.map +1 -1
  16. package/package.json +1 -1
  17. package/scss/utilities/grid.scss +3 -0
  18. package/src/scss/_defaults.scss +4 -0
  19. package/src/scss/layout/columns/_defaults.scss +26 -4
  20. package/src/scss/layout/columns/_index.scss +346 -35
  21. package/src/scss/layout/flex-columns/_defaults.scss +2 -2
  22. package/src/scss/layout/flex-columns/_index.scss +41 -41
  23. package/src/scss/utilities/_index.scss +1 -0
  24. package/src/scss/utilities/_template/_index.scss +1 -1
  25. package/src/scss/utilities/block-size/_defaults.scss +3 -3
  26. package/src/scss/utilities/block-size/_index.scss +84 -84
  27. package/src/scss/utilities/grid/_defaults.scss +89 -0
  28. package/src/scss/utilities/grid/_index.scss +236 -0
  29. package/src/scss/utilities/grid/_variables.scss +6 -0
  30. package/src/scss/utilities/grid/col-span/_defaults.scss +102 -0
  31. package/src/scss/utilities/grid/col-span/_index.scss +124 -0
  32. package/src/scss/utilities/grid/col-span/_variables.scss +6 -0
  33. package/src/scss/utilities/grid/grid-column/_defaults.scss +104 -0
  34. package/src/scss/utilities/grid/grid-column/_index.scss +140 -0
  35. package/src/scss/utilities/grid/grid-column/_variables.scss +6 -0
  36. package/src/scss/utilities/grid/grid-row/_defaults.scss +104 -0
  37. package/src/scss/utilities/grid/grid-row/_index.scss +140 -0
  38. package/src/scss/utilities/grid/grid-row/_variables.scss +6 -0
  39. package/src/scss/utilities/grid/grid-template-columns/_defaults.scss +102 -0
  40. package/src/scss/utilities/grid/grid-template-columns/_index.scss +124 -0
  41. package/src/scss/utilities/grid/grid-template-columns/_variables.scss +6 -0
  42. package/src/scss/utilities/grid/grid-template-rows/_defaults.scss +102 -0
  43. package/src/scss/utilities/grid/grid-template-rows/_index.scss +124 -0
  44. package/src/scss/utilities/grid/grid-template-rows/_variables.scss +6 -0
  45. package/src/scss/utilities/grid/row-span/_defaults.scss +102 -0
  46. package/src/scss/utilities/grid/row-span/_index.scss +124 -0
  47. package/src/scss/utilities/grid/row-span/_variables.scss +6 -0
  48. package/src/scss/utilities/inline-size/_defaults.scss +3 -3
  49. package/src/scss/utilities/inline-size/_index.scss +84 -84
@@ -156,47 +156,47 @@
156
156
  // | `--graupl-flex-columns-color` | The text color of the flex columns component. | `var(--graupl-color)` |
157
157
  //
158
158
  // The following sass variables can be used to customize the generation of the flex columns component:
159
- // | Variable | Description | Default Value |
160
- // | -------------------------------------------------------- | ---------------------------------------------------------------- | ---------------- |
161
- // | `$selector-base` | The base selector for the component. | `"."` |
162
- // | `$modifier-selector-base` | The base selector for component modifiers. | `"."` |
163
- // | `$generate-base-theme-map` | Flag to generate the base theme map. | `true` |
164
- // | `$themeable` | Flag to generate theme modifiers. | `false` |
165
- // | `$screen-aware` | Enables screen-aware column variants. | `true` |
166
- // | `$theme-aware` | Enables theme-aware column variants. | `false` |
167
- // | `$scheme-aware` | Enables scheme-aware column variants. | `false` |
168
- // | `$state-aware` | Enables state-aware column variants. | `false` |
169
- // | `$container-aware` | Enables container-aware column variants. | `true` |
170
- // | `$flex-columns-selector-base` | The base selector for the flex columns component. | `"."` |
171
- // | `$flex-columns-selector` | The selector for the flex columns component. | `"flex-columns"` |
172
- // | `$flex-columns-theme-selector-base` | The selector base for flex columns theme modifiers. | `"."` |
173
- // | `$flex-columns-theme-selector-prefix` | The flex columns theme modifier selector prefix. | `""` |
174
- // | `$flex-columns-column-selector-base` | The base selector for the column class. | `"."` |
175
- // | `$flex-columns-column-selector` | The selector for the column class. | `"col-"` |
176
- // | `$flex-columns-fill-selector-base` | The base selector for the fill class. | `"."` |
177
- // | `$flex-columns-fill-selector` | The selector for the fill class. | `"fill"` |
178
- // | `$flex-columns-column-screen-aware-selector-prefix` | Prefix to the screen-aware portion of column selectors. | `""` |
179
- // | `$flex-columns-column-screen-aware-selector-suffix` | Suffix to the screen-aware portion of column selectors. | `""` |
180
- // | `$flex-columns-column-screen-aware-selector-separator` | Separator inserted for screen-aware column selectors. | `"\\:"` |
181
- // | `$flex-columns-column-theme-aware-selector-prefix` | Prefix to the theme-aware portion of column selectors. | `""` |
182
- // | `$flex-columns-column-theme-aware-selector-suffix` | Suffix to the theme-aware portion of column selectors. | `"-theme"` |
183
- // | `$flex-columns-column-theme-aware-selector-separator` | Separator inserted for theme-aware column selectors. | `"\\:"` |
184
- // | `$flex-columns-column-scheme-aware-selector-prefix` | Prefix to the scheme-aware portion of column selectors. | `""` |
185
- // | `$flex-columns-column-scheme-aware-selector-suffix` | Suffix to the scheme-aware portion of column selectors. | `"-mode"` |
186
- // | `$flex-columns-column-scheme-aware-selector-separator` | Separator inserted for scheme-aware column selectors. | `"\\:"` |
187
- // | `$flex-columns-column-state-aware-selector-prefix` | Prefix to the state-aware portion of column selectors. | `""` |
188
- // | `$flex-columns-column-state-aware-selector-suffix` | Suffix to the state-aware portion of column selectors. | `""` |
189
- // | `$flex-columns-column-state-aware-selector-separator` | Separator inserted for state-aware column selectors. | `"\\:"` |
190
- // | `$flex-columns-column-container-aware-selector-prefix` | Prefix to the container-aware portion of column selectors. | `"cq\\:"` |
191
- // | `$flex-columns-column-container-aware-selector-suffix` | Suffix to the container-aware portion of column selectors. | `""` |
192
- // | `$flex-columns-column-container-aware-selector-separator`| Separator inserted for container-aware column selectors. | `"\\:"` |
193
- // | `$flex-columns-min-count` | The minimum number of columns used to generate `.col-#` classes. | `1` |
194
- // | `$flex-columns-max-count` | The maximum number of columns used to generate `.col-#` classes. | `12` |
195
- // | `$flex-columns-size` | The default size of a column. | `auto` |
196
- // | `$flex-columns-max-width` | The default maximum width of a column. | `unset` |
197
- // | `$flex-columns-container-type` | The container type applied to the flex columns component. | `"inline-size"` |
198
- // | `$flex-columns-theme-mappings` | Map of properties/shades for flex columns themes. | `()` |
199
- // | `$flex-columns-theme-map` | Expanded map of properties/colors/shades. | `()` |
159
+ // | Variable | Description | Default Value |
160
+ // | --------------------------------------------------------- | ---------------------------------------------------------------- | ---------------- |
161
+ // | `$selector-base` | The base selector for the component. | `"."` |
162
+ // | `$modifier-selector-base` | The base selector for component modifiers. | `"."` |
163
+ // | `$generate-base-theme-map` | Flag to generate the base theme map. | `true` |
164
+ // | `$themeable` | Flag to generate theme modifiers. | `false` |
165
+ // | `$screen-aware` | Enables screen-aware column variants. | `true` |
166
+ // | `$theme-aware` | Enables theme-aware column variants. | `false` |
167
+ // | `$scheme-aware` | Enables scheme-aware column variants. | `false` |
168
+ // | `$state-aware` | Enables state-aware column variants. | `false` |
169
+ // | `$container-aware` | Enables container-aware column variants. | `true` |
170
+ // | `$flex-columns-selector-base` | The base selector for the flex columns component. | `"."` |
171
+ // | `$flex-columns-selector` | The selector for the flex columns component. | `"flex-columns"` |
172
+ // | `$flex-columns-theme-selector-base` | The selector base for flex columns theme modifiers. | `"."` |
173
+ // | `$flex-columns-theme-selector-prefix` | The flex columns theme modifier selector prefix. | `""` |
174
+ // | `$flex-columns-column-selector-base` | The base selector for the column class. | `"."` |
175
+ // | `$flex-columns-column-selector` | The selector for the column class. | `"col-"` |
176
+ // | `$flex-columns-fill-selector-base` | The base selector for the fill class. | `"."` |
177
+ // | `$flex-columns-fill-selector` | The selector for the fill class. | `"fill"` |
178
+ // | `$flex-columns-column-screen-aware-selector-prefix` | Prefix to the screen-aware portion of column selectors. | `""` |
179
+ // | `$flex-columns-column-screen-aware-selector-suffix` | Suffix to the screen-aware portion of column selectors. | `""` |
180
+ // | `$flex-columns-column-screen-aware-selector-separator` | Separator inserted for screen-aware column selectors. | `"\\:"` |
181
+ // | `$flex-columns-column-theme-aware-selector-prefix` | Prefix to the theme-aware portion of column selectors. | `""` |
182
+ // | `$flex-columns-column-theme-aware-selector-suffix` | Suffix to the theme-aware portion of column selectors. | `"-theme"` |
183
+ // | `$flex-columns-column-theme-aware-selector-separator` | Separator inserted for theme-aware column selectors. | `"\\:"` |
184
+ // | `$flex-columns-column-scheme-aware-selector-prefix` | Prefix to the scheme-aware portion of column selectors. | `""` |
185
+ // | `$flex-columns-column-scheme-aware-selector-suffix` | Suffix to the scheme-aware portion of column selectors. | `"-mode"` |
186
+ // | `$flex-columns-column-scheme-aware-selector-separator` | Separator inserted for scheme-aware column selectors. | `"\\:"` |
187
+ // | `$flex-columns-column-state-aware-selector-prefix` | Prefix to the state-aware portion of column selectors. | `""` |
188
+ // | `$flex-columns-column-state-aware-selector-suffix` | Suffix to the state-aware portion of column selectors. | `""` |
189
+ // | `$flex-columns-column-state-aware-selector-separator` | Separator inserted for state-aware column selectors. | `"\\:"` |
190
+ // | `$flex-columns-column-container-aware-selector-prefix` | Prefix to the container-aware portion of column selectors. | `"cq\\:"` |
191
+ // | `$flex-columns-column-container-aware-selector-suffix` | Suffix to the container-aware portion of column selectors. | `""` |
192
+ // | `$flex-columns-column-container-aware-selector-separator` | Separator inserted for container-aware column selectors. | `"\\:"` |
193
+ // | `$flex-columns-min-count` | The minimum number of columns used to generate `.col-#` classes. | `1` |
194
+ // | `$flex-columns-max-count` | The maximum number of columns used to generate `.col-#` classes. | `12` |
195
+ // | `$flex-columns-size` | The default size of a column. | `auto` |
196
+ // | `$flex-columns-max-width` | The default maximum width of a column. | `unset` |
197
+ // | `$flex-columns-container-type` | The container type applied to the flex columns component. | `"inline-size"` |
198
+ // | `$flex-columns-theme-mappings` | Map of properties/shades for flex columns themes. | `()` |
199
+ // | `$flex-columns-theme-map` | Expanded map of properties/colors/shades. | `()` |
200
200
  //
201
201
  // @example
202
202
  // <div class="flex-columns">
@@ -10,6 +10,7 @@
10
10
  @use "display";
11
11
  @use "flex";
12
12
  @use "float";
13
+ @use "grid";
13
14
  @use "gradient";
14
15
  @use "height";
15
16
  @use "inline-size";
@@ -3,7 +3,7 @@
3
3
  // This file generates the [_template] utility classes provided by Graupl.
4
4
  //
5
5
  // The following classes are generated by default:
6
- // - `.template-class`: Applies the base value for the property.
6
+ // - `.template-class`: Sets the `template` property to `value`.
7
7
  //
8
8
  // The following custom properties control the generated classes:
9
9
  // | Property | Description | Default Value |
@@ -41,9 +41,9 @@ $container-aware-selector-suffix: root-defaults.$utility-container-aware-selecto
41
41
 
42
42
  // Properties.
43
43
  $-utility-properties: (
44
- "block": block-size,
45
- "max-block": max-block-size,
46
- "min-block": min-block-size,
44
+ "bs": block-size,
45
+ "max-bs": max-block-size,
46
+ "min-bs": min-block-size,
47
47
  );
48
48
  $utility-properties: () !default;
49
49
 
@@ -3,90 +3,90 @@
3
3
  // This file generates the block-size utility classes provided by Graupl.
4
4
  //
5
5
  // The following classes are generated by default:
6
- // - `.block-auto`: Sets the `block-size` property to `auto`.
7
- // - `.block-fit-content`: Sets the `block-size` property to `fit-content`.
8
- // - `.block-max-content`: Sets the `block-size` property to `max-content`.
9
- // - `.block-min-content`: Sets the `block-size` property to `min-content`.
10
- // - `.block-stretch`: Sets the `block-size` property to `stretch`.
11
- // - `.block-full`: Sets the `block-size` property to `100%`.
12
- // - `.block-quarter`: Sets the `block-size` property to `25%`.
13
- // - `.block-half`: Sets the `block-size` property to `50%`.
14
- // - `.block-three-quarters`: Sets the `block-size` property to `75%`.
15
- // - `.block-third`: Sets the `block-size` property to `calc(100% / 3)`.
16
- // - `.block-two-thirds`: Sets the `block-size` property to `calc(100% / 1.5)`.
17
- // - `.block-half-screen`: Sets the `block-size` property to `50vh`.
18
- // - `.block-third-screen`: Sets the `block-size` property to `calc(100vh / 3)`.
19
- // - `.block-two-thirds-screen`: Sets the `block-size` property to `calc(100vh / 1.5)`.
20
- // - `.block-quarter-screen`: Sets the `block-size` property to `25vh`.
21
- // - `.block-three-quarters-screen`: Sets the `block-size` property to `75vh`.
22
- // - `.block-full-screen`: Sets the `block-size` property to `100vh`.
23
- // - `.block-0`: Sets the `block-size` property to `var(--graupl-spacer-0)`.
24
- // - `.block-1`: Sets the `block-size` property to `var(--graupl-spacer-1)`.
25
- // - `.block-2`: Sets the `block-size` property to `var(--graupl-spacer-2)`.
26
- // - `.block-3`: Sets the `block-size` property to `var(--graupl-spacer-3)`.
27
- // - `.block-4`: Sets the `block-size` property to `var(--graupl-spacer-4)`.
28
- // - `.block-5`: Sets the `block-size` property to `var(--graupl-spacer-5)`.
29
- // - `.block-6`: Sets the `block-size` property to `var(--graupl-spacer-6)`.
30
- // - `.block-7`: Sets the `block-size` property to `var(--graupl-spacer-7)`.
31
- // - `.block-8`: Sets the `block-size` property to `var(--graupl-spacer-8)`.
32
- // - `.block-9`: Sets the `block-size` property to `var(--graupl-spacer-9)`.
33
- // - `.block-10`: Sets the `block-size` property to `var(--graupl-spacer-10)`.
34
- // - `.max-block-auto`: Sets the `max-block-size` property to `auto`.
35
- // - `.max-block-fit-content`: Sets the `max-block-size` property to `fit-content`.
36
- // - `.max-block-max-content`: Sets the `max-block-size` property to `max-content`.
37
- // - `.max-block-min-content`: Sets the `max-block-size` property to `min-content`.
38
- // - `.max-block-stretch`: Sets the `max-block-size` property to `stretch`.
39
- // - `.max-block-full`: Sets the `max-block-size` property to `100%`.
40
- // - `.max-block-quarter`: Sets the `max-block-size` property to `25%`.
41
- // - `.max-block-half`: Sets the `max-block-size` property to `50%`.
42
- // - `.max-block-three-quarters`: Sets the `max-block-size` property to `75%`.
43
- // - `.max-block-third`: Sets the `max-block-size` property to `calc(100% / 3)`.
44
- // - `.max-block-two-thirds`: Sets the `max-block-size` property to `calc(100% / 1.5)`.
45
- // - `.max-block-half-screen`: Sets the `max-block-size` property to `50vh`.
46
- // - `.max-block-third-screen`: Sets the `max-block-size` property to `calc(100vh / 3)`.
47
- // - `.max-block-two-thirds-screen`: Sets the `max-block-size` property to `calc(100vh / 1.5)`.
48
- // - `.max-block-quarter-screen`: Sets the `max-block-size` property to `25vh`.
49
- // - `.max-block-three-quarters-screen`: Sets the `max-block-size` property to `75vh`.
50
- // - `.max-block-full-screen`: Sets the `max-block-size` property to `100vh`.
51
- // - `.max-block-0`: Sets the `max-block-size` property to `var(--graupl-spacer-0)`.
52
- // - `.max-block-1`: Sets the `max-block-size` property to `var(--graupl-spacer-1)`.
53
- // - `.max-block-2`: Sets the `max-block-size` property to `var(--graupl-spacer-2)`.
54
- // - `.max-block-3`: Sets the `max-block-size` property to `var(--graupl-spacer-3)`.
55
- // - `.max-block-4`: Sets the `max-block-size` property to `var(--graupl-spacer-4)`.
56
- // - `.max-block-5`: Sets the `max-block-size` property to `var(--graupl-spacer-5)`.
57
- // - `.max-block-6`: Sets the `max-block-size` property to `var(--graupl-spacer-6)`.
58
- // - `.max-block-7`: Sets the `max-block-size` property to `var(--graupl-spacer-7)`.
59
- // - `.max-block-8`: Sets the `max-block-size` property to `var(--graupl-spacer-8)`.
60
- // - `.max-block-9`: Sets the `max-block-size` property to `var(--graupl-spacer-9)`.
61
- // - `.max-block-10`: Sets the `max-block-size` property to `var(--graupl-spacer-10)`.
62
- // - `.min-block-auto`: Sets the `min-block-size` property to `auto`.
63
- // - `.min-block-fit-content`: Sets the `min-block-size` property to `fit-content`.
64
- // - `.min-block-max-content`: Sets the `min-block-size` property to `max-content`.
65
- // - `.min-block-min-content`: Sets the `min-block-size` property to `min-content`.
66
- // - `.min-block-stretch`: Sets the `min-block-size` property to `stretch`.
67
- // - `.min-block-full`: Sets the `min-block-size` property to `100%`.
68
- // - `.min-block-quarter`: Sets the `min-block-size` property to `25%`.
69
- // - `.min-block-half`: Sets the `min-block-size` property to `50%`.
70
- // - `.min-block-three-quarters`: Sets the `min-block-size` property to `75%`.
71
- // - `.min-block-third`: Sets the `min-block-size` property to `calc(100% / 3)`.
72
- // - `.min-block-two-thirds`: Sets the `min-block-size` property to `calc(100% / 1.5)`.
73
- // - `.min-block-half-screen`: Sets the `min-block-size` property to `50vh`.
74
- // - `.min-block-third-screen`: Sets the `min-block-size` property to `calc(100vh / 3)`.
75
- // - `.min-block-two-thirds-screen`: Sets the `min-block-size` property to `calc(100vh / 1.5)`.
76
- // - `.min-block-quarter-screen`: Sets the `min-block-size` property to `25vh`.
77
- // - `.min-block-three-quarters-screen`: Sets the `min-block-size` property to `75vh`.
78
- // - `.min-block-full-screen`: Sets the `min-block-size` property to `100vh`.
79
- // - `.min-block-0`: Sets the `min-block-size` property to `var(--graupl-spacer-0)`.
80
- // - `.min-block-1`: Sets the `min-block-size` property to `var(--graupl-spacer-1)`.
81
- // - `.min-block-2`: Sets the `min-block-size` property to `var(--graupl-spacer-2)`.
82
- // - `.min-block-3`: Sets the `min-block-size` property to `var(--graupl-spacer-3)`.
83
- // - `.min-block-4`: Sets the `min-block-size` property to `var(--graupl-spacer-4)`.
84
- // - `.min-block-5`: Sets the `min-block-size` property to `var(--graupl-spacer-5)`.
85
- // - `.min-block-6`: Sets the `min-block-size` property to `var(--graupl-spacer-6)`.
86
- // - `.min-block-7`: Sets the `min-block-size` property to `var(--graupl-spacer-7)`.
87
- // - `.min-block-8`: Sets the `min-block-size` property to `var(--graupl-spacer-8)`.
88
- // - `.min-block-9`: Sets the `min-block-size` property to `var(--graupl-spacer-9)`.
89
- // - `.min-block-10`: Sets the `min-block-size` property to `var(--graupl-spacer-10)`.
6
+ // - `.bs-auto`: Sets the `block-size` property to `auto`.
7
+ // - `.bs-fit-content`: Sets the `block-size` property to `fit-content`.
8
+ // - `.bs-max-content`: Sets the `block-size` property to `max-content`.
9
+ // - `.bs-min-content`: Sets the `block-size` property to `min-content`.
10
+ // - `.bs-stretch`: Sets the `block-size` property to `stretch`.
11
+ // - `.bs-full`: Sets the `block-size` property to `100%`.
12
+ // - `.bs-quarter`: Sets the `block-size` property to `25%`.
13
+ // - `.bs-half`: Sets the `block-size` property to `50%`.
14
+ // - `.bs-three-quarters`: Sets the `block-size` property to `75%`.
15
+ // - `.bs-third`: Sets the `block-size` property to `calc(100% / 3)`.
16
+ // - `.bs-two-thirds`: Sets the `block-size` property to `calc(100% / 1.5)`.
17
+ // - `.bs-half-screen`: Sets the `block-size` property to `50vh`.
18
+ // - `.bs-third-screen`: Sets the `block-size` property to `calc(100vh / 3)`.
19
+ // - `.bs-two-thirds-screen`: Sets the `block-size` property to `calc(100vh / 1.5)`.
20
+ // - `.bs-quarter-screen`: Sets the `block-size` property to `25vh`.
21
+ // - `.bs-three-quarters-screen`: Sets the `block-size` property to `75vh`.
22
+ // - `.bs-full-screen`: Sets the `block-size` property to `100vh`.
23
+ // - `.bs-0`: Sets the `block-size` property to `var(--graupl-spacer-0)`.
24
+ // - `.bs-1`: Sets the `block-size` property to `var(--graupl-spacer-1)`.
25
+ // - `.bs-2`: Sets the `block-size` property to `var(--graupl-spacer-2)`.
26
+ // - `.bs-3`: Sets the `block-size` property to `var(--graupl-spacer-3)`.
27
+ // - `.bs-4`: Sets the `block-size` property to `var(--graupl-spacer-4)`.
28
+ // - `.bs-5`: Sets the `block-size` property to `var(--graupl-spacer-5)`.
29
+ // - `.bs-6`: Sets the `block-size` property to `var(--graupl-spacer-6)`.
30
+ // - `.bs-7`: Sets the `block-size` property to `var(--graupl-spacer-7)`.
31
+ // - `.bs-8`: Sets the `block-size` property to `var(--graupl-spacer-8)`.
32
+ // - `.bs-9`: Sets the `block-size` property to `var(--graupl-spacer-9)`.
33
+ // - `.bs-10`: Sets the `block-size` property to `var(--graupl-spacer-10)`.
34
+ // - `.max-bs-auto`: Sets the `max-block-size` property to `auto`.
35
+ // - `.max-bs-fit-content`: Sets the `max-block-size` property to `fit-content`.
36
+ // - `.max-bs-max-content`: Sets the `max-block-size` property to `max-content`.
37
+ // - `.max-bs-min-content`: Sets the `max-block-size` property to `min-content`.
38
+ // - `.max-bs-stretch`: Sets the `max-block-size` property to `stretch`.
39
+ // - `.max-bs-full`: Sets the `max-block-size` property to `100%`.
40
+ // - `.max-bs-quarter`: Sets the `max-block-size` property to `25%`.
41
+ // - `.max-bs-half`: Sets the `max-block-size` property to `50%`.
42
+ // - `.max-bs-three-quarters`: Sets the `max-block-size` property to `75%`.
43
+ // - `.max-bs-third`: Sets the `max-block-size` property to `calc(100% / 3)`.
44
+ // - `.max-bs-two-thirds`: Sets the `max-block-size` property to `calc(100% / 1.5)`.
45
+ // - `.max-bs-half-screen`: Sets the `max-block-size` property to `50vh`.
46
+ // - `.max-bs-third-screen`: Sets the `max-block-size` property to `calc(100vh / 3)`.
47
+ // - `.max-bs-two-thirds-screen`: Sets the `max-block-size` property to `calc(100vh / 1.5)`.
48
+ // - `.max-bs-quarter-screen`: Sets the `max-block-size` property to `25vh`.
49
+ // - `.max-bs-three-quarters-screen`: Sets the `max-block-size` property to `75vh`.
50
+ // - `.max-bs-full-screen`: Sets the `max-block-size` property to `100vh`.
51
+ // - `.max-bs-0`: Sets the `max-block-size` property to `var(--graupl-spacer-0)`.
52
+ // - `.max-bs-1`: Sets the `max-block-size` property to `var(--graupl-spacer-1)`.
53
+ // - `.max-bs-2`: Sets the `max-block-size` property to `var(--graupl-spacer-2)`.
54
+ // - `.max-bs-3`: Sets the `max-block-size` property to `var(--graupl-spacer-3)`.
55
+ // - `.max-bs-4`: Sets the `max-block-size` property to `var(--graupl-spacer-4)`.
56
+ // - `.max-bs-5`: Sets the `max-block-size` property to `var(--graupl-spacer-5)`.
57
+ // - `.max-bs-6`: Sets the `max-block-size` property to `var(--graupl-spacer-6)`.
58
+ // - `.max-bs-7`: Sets the `max-block-size` property to `var(--graupl-spacer-7)`.
59
+ // - `.max-bs-8`: Sets the `max-block-size` property to `var(--graupl-spacer-8)`.
60
+ // - `.max-bs-9`: Sets the `max-block-size` property to `var(--graupl-spacer-9)`.
61
+ // - `.max-bs-10`: Sets the `max-block-size` property to `var(--graupl-spacer-10)`.
62
+ // - `.min-bs-auto`: Sets the `min-block-size` property to `auto`.
63
+ // - `.min-bs-fit-content`: Sets the `min-block-size` property to `fit-content`.
64
+ // - `.min-bs-max-content`: Sets the `min-block-size` property to `max-content`.
65
+ // - `.min-bs-min-content`: Sets the `min-block-size` property to `min-content`.
66
+ // - `.min-bs-stretch`: Sets the `min-block-size` property to `stretch`.
67
+ // - `.min-bs-full`: Sets the `min-block-size` property to `100%`.
68
+ // - `.min-bs-quarter`: Sets the `min-block-size` property to `25%`.
69
+ // - `.min-bs-half`: Sets the `min-block-size` property to `50%`.
70
+ // - `.min-bs-three-quarters`: Sets the `min-block-size` property to `75%`.
71
+ // - `.min-bs-third`: Sets the `min-block-size` property to `calc(100% / 3)`.
72
+ // - `.min-bs-two-thirds`: Sets the `min-block-size` property to `calc(100% / 1.5)`.
73
+ // - `.min-bs-half-screen`: Sets the `min-block-size` property to `50vh`.
74
+ // - `.min-bs-third-screen`: Sets the `min-block-size` property to `calc(100vh / 3)`.
75
+ // - `.min-bs-two-thirds-screen`: Sets the `min-block-size` property to `calc(100vh / 1.5)`.
76
+ // - `.min-bs-quarter-screen`: Sets the `min-block-size` property to `25vh`.
77
+ // - `.min-bs-three-quarters-screen`: Sets the `min-block-size` property to `75vh`.
78
+ // - `.min-bs-full-screen`: Sets the `min-block-size` property to `100vh`.
79
+ // - `.min-bs-0`: Sets the `min-block-size` property to `var(--graupl-spacer-0)`.
80
+ // - `.min-bs-1`: Sets the `min-block-size` property to `var(--graupl-spacer-1)`.
81
+ // - `.min-bs-2`: Sets the `min-block-size` property to `var(--graupl-spacer-2)`.
82
+ // - `.min-bs-3`: Sets the `min-block-size` property to `var(--graupl-spacer-3)`.
83
+ // - `.min-bs-4`: Sets the `min-block-size` property to `var(--graupl-spacer-4)`.
84
+ // - `.min-bs-5`: Sets the `min-block-size` property to `var(--graupl-spacer-5)`.
85
+ // - `.min-bs-6`: Sets the `min-block-size` property to `var(--graupl-spacer-6)`.
86
+ // - `.min-bs-7`: Sets the `min-block-size` property to `var(--graupl-spacer-7)`.
87
+ // - `.min-bs-8`: Sets the `min-block-size` property to `var(--graupl-spacer-8)`.
88
+ // - `.min-bs-9`: Sets the `min-block-size` property to `var(--graupl-spacer-9)`.
89
+ // - `.min-bs-10`: Sets the `min-block-size` property to `var(--graupl-spacer-10)`.
90
90
  //
91
91
  // The following custom properties control the generated classes:
92
92
  // | Property | Description | Default Value |
@@ -0,0 +1,89 @@
1
+ // @graupl/core grid utilities 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 "../../defaults" as root-defaults;
10
+ @use "../../functions/utility";
11
+ @use "../../variables" as root-variables;
12
+ @use "sass:map";
13
+
14
+ // Utility modifiers.
15
+ $selector-base: root-defaults.$utility-selector-base !default;
16
+ $selector-prefix: root-defaults.$utility-selector-prefix !default;
17
+ $selector-suffix: root-defaults.$utility-selector-suffix !default;
18
+ $selector-separator: root-defaults.$utility-selector-separator !default;
19
+ $use-important: root-defaults.$use-important !default;
20
+ $generate-base-utilities: root-defaults.$generate-base-utilities !default;
21
+ $screen-aware: false !default;
22
+ $theme-aware: false !default;
23
+ $scheme-aware: false !default;
24
+ $state-aware: false !default;
25
+ $container-aware: false !default;
26
+ $screen-aware-selector-prefix: root-defaults.$utility-screen-aware-selector-prefix !default;
27
+ $screen-aware-selector-suffix: root-defaults.$utility-screen-aware-selector-suffix !default;
28
+ $screen-aware-selector-separator: root-defaults.$utility-screen-aware-selector-separator !default;
29
+ $theme-aware-selector-prefix: root-defaults.$utility-theme-aware-selector-prefix !default;
30
+ $theme-aware-selector-suffix: root-defaults.$utility-theme-aware-selector-suffix !default;
31
+ $theme-aware-selector-separator: root-defaults.$utility-theme-aware-selector-separator !default;
32
+ $scheme-aware-selector-prefix: root-defaults.$utility-scheme-aware-selector-prefix !default;
33
+ $scheme-aware-selector-suffix: root-defaults.$utility-scheme-aware-selector-suffix !default;
34
+ $scheme-aware-selector-separator: root-defaults.$utility-scheme-aware-selector-separator !default;
35
+ $state-aware-selector-prefix: root-defaults.$utility-state-aware-selector-prefix !default;
36
+ $state-aware-selector-suffix: root-defaults.$utility-state-aware-selector-suffix !default;
37
+ $state-aware-selector-separator: root-defaults.$utility-state-aware-selector-separator !default;
38
+ $container-aware-selector-prefix: root-defaults.$utility-container-aware-selector-prefix !default;
39
+ $container-aware-selector-suffix: root-defaults.$utility-container-aware-selector-suffix !default;
40
+ $container-aware-selector-separator: root-defaults.$utility-container-aware-selector-separator !default;
41
+ $grid-column-min-count: root-defaults.$column-layout-min-count !default;
42
+ $grid-column-max-count: root-defaults.$column-layout-max-count !default;
43
+ $grid-row-min-count: root-defaults.$row-layout-min-count !default;
44
+ $grid-row-max-count: root-defaults.$row-layout-max-count !default;
45
+
46
+ // Properties.
47
+ $-utility-properties: ();
48
+ $utility-properties: () !default;
49
+
50
+ // Values.
51
+ $-utility-values: ();
52
+ $utility-values: () !default;
53
+
54
+ // Merge custom and base properties/values if generating base utilities.
55
+ @if $generate-base-utilities {
56
+ $utility-properties: map.deep-merge(
57
+ $-utility-properties,
58
+ $utility-properties
59
+ );
60
+ $utility-values: map.deep-merge($-utility-values, $utility-values);
61
+ }
62
+
63
+ // Set up all utility classes and properties for cleaner generation in the index file.
64
+ //
65
+ // The end result of this map is something like:
66
+ // $-utility-map: (
67
+ // class-name: (
68
+ // property: value,
69
+ // property: value,
70
+ // ...
71
+ // ),
72
+ // class-name: (
73
+ // property: value,
74
+ // property: value,
75
+ // ...
76
+ // ),
77
+ // ...
78
+ // );
79
+ $-utility-map: ();
80
+ $-utility-map: map.deep-merge(
81
+ $-utility-map,
82
+ utility.generate-utility-map(
83
+ $utility-properties,
84
+ $utility-values,
85
+ $selector-separator
86
+ )
87
+ );
88
+ $utility-map: () !default;
89
+ $utility-map: map.deep-merge($-utility-map, $utility-map);