@graupl/core 1.0.0-beta.51 → 1.0.0-beta.52
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/dist/css/graupl.css +1 -1
- package/dist/css/graupl.css.map +1 -1
- package/dist/css/layout/columns.css +1 -1
- package/dist/css/layout/columns.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/utilities/grid.css +2 -0
- package/dist/css/utilities/grid.css.map +1 -0
- package/dist/css/utilities.css +1 -1
- package/dist/css/utilities.css.map +1 -1
- package/package.json +1 -1
- package/scss/utilities/grid.scss +3 -0
- package/src/scss/_defaults.scss +4 -0
- package/src/scss/layout/columns/_defaults.scss +26 -4
- package/src/scss/layout/columns/_index.scss +346 -35
- package/src/scss/layout/flex-columns/_defaults.scss +2 -2
- package/src/scss/layout/flex-columns/_index.scss +41 -41
- package/src/scss/utilities/_index.scss +1 -0
- package/src/scss/utilities/_template/_index.scss +1 -1
- package/src/scss/utilities/grid/_defaults.scss +89 -0
- package/src/scss/utilities/grid/_index.scss +236 -0
- package/src/scss/utilities/grid/_variables.scss +6 -0
- package/src/scss/utilities/grid/col-span/_defaults.scss +102 -0
- package/src/scss/utilities/grid/col-span/_index.scss +124 -0
- package/src/scss/utilities/grid/col-span/_variables.scss +6 -0
- package/src/scss/utilities/grid/grid-column/_defaults.scss +104 -0
- package/src/scss/utilities/grid/grid-column/_index.scss +140 -0
- package/src/scss/utilities/grid/grid-column/_variables.scss +6 -0
- package/src/scss/utilities/grid/grid-row/_defaults.scss +104 -0
- package/src/scss/utilities/grid/grid-row/_index.scss +140 -0
- package/src/scss/utilities/grid/grid-row/_variables.scss +6 -0
- package/src/scss/utilities/grid/grid-template-columns/_defaults.scss +102 -0
- package/src/scss/utilities/grid/grid-template-columns/_index.scss +124 -0
- package/src/scss/utilities/grid/grid-template-columns/_variables.scss +6 -0
- package/src/scss/utilities/grid/grid-template-rows/_defaults.scss +102 -0
- package/src/scss/utilities/grid/grid-template-rows/_index.scss +124 -0
- package/src/scss/utilities/grid/grid-template-rows/_variables.scss +6 -0
- package/src/scss/utilities/grid/row-span/_defaults.scss +102 -0
- package/src/scss/utilities/grid/row-span/_index.scss +124 -0
- package/src/scss/utilities/grid/row-span/_variables.scss +6 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// @graupl/core row-span utilities styles.
|
|
2
|
+
//
|
|
3
|
+
// This file generates the grid utility classes provided by Graupl.
|
|
4
|
+
//
|
|
5
|
+
// The following classes are generated by default:
|
|
6
|
+
// - `.row-span-auto`: Sets the `grid-row` property to `span auto`.
|
|
7
|
+
// - `.row-span-full`: Sets the `grid-row` property to `1 / -1`.
|
|
8
|
+
// - `.row-span-1`: Sets the `grid-row` property to `span 1`.
|
|
9
|
+
// - `.row-span-2`: Sets the `grid-row` property to `span 2`.
|
|
10
|
+
// - `.row-span-3`: Sets the `grid-row` property to `span 3`.
|
|
11
|
+
// - `.row-span-4`: Sets the `grid-row` property to `span 4`.
|
|
12
|
+
// - `.row-span-5`: Sets the `grid-row` property to `span 5`.
|
|
13
|
+
// - `.row-span-6`: Sets the `grid-row` property to `span 6`.
|
|
14
|
+
// - `.row-span-7`: Sets the `grid-row` property to `span 7`.
|
|
15
|
+
// - `.row-span-8`: Sets the `grid-row` property to `span 8`.
|
|
16
|
+
// - `.row-span-9`: Sets the `grid-row` property to `span 9`.
|
|
17
|
+
// - `.row-span-10`: Sets the `grid-row` property to `span 10`.
|
|
18
|
+
// - `.row-span-11`: Sets the `grid-row` property to `span 11`.
|
|
19
|
+
// - `.row-span-12`: Sets the `grid-row` property to `span 12`.
|
|
20
|
+
//
|
|
21
|
+
// The following custom properties control the generated classes:
|
|
22
|
+
// | Property | Description | Default Value |
|
|
23
|
+
// | -------- | ----------- | ------------- |
|
|
24
|
+
// | N/A | N/A | N/A |
|
|
25
|
+
//
|
|
26
|
+
// This utility does not define any custom properties.
|
|
27
|
+
//
|
|
28
|
+
// The following variables control the generated classes:
|
|
29
|
+
// | Variable | Description | Default Value |
|
|
30
|
+
// | ------------------------------------ | ----------------------------------------------------------- | ------------- |
|
|
31
|
+
// | `$selector-base` | Base selector for utility classes. | `"."` |
|
|
32
|
+
// | `$selector-prefix` | The selector prefix for all utility classes. | `""` |
|
|
33
|
+
// | `$selector-suffix` | The selctor suffix for all utility classes. | `""` |
|
|
34
|
+
// | `$selector-separator` | The selector separator for all utility classes. | `""` |
|
|
35
|
+
// | `$use-important` | Appends `!important` to generated utility declarations. | `true` |
|
|
36
|
+
// | `$generate-base-utilities` | Generates the base utility classes. | `true` |
|
|
37
|
+
// | `$screen-aware` | Enables screen-aware utility variants. | `false` |
|
|
38
|
+
// | `$theme-aware` | Enables theme-aware utility variants. | `false` |
|
|
39
|
+
// | `$scheme-aware` | Enables scheme-aware utility variants. | `false` |
|
|
40
|
+
// | `$state-aware` | Enables state-aware utility variants. | `false` |
|
|
41
|
+
// | `$container-aware` | Enables container-aware utility variants. | `false` |
|
|
42
|
+
// | `$screen-aware-selector-prefix` | Prefix to the screen-aware portion of utility selectors. | `""` |
|
|
43
|
+
// | `$screen-aware-selector-suffix` | Suffix to the screen-aware portion of utility selectors. | `""` |
|
|
44
|
+
// | `$screen-aware-selector-separator` | Separator inserted for screen-aware utility selectors. | `"\\:"` |
|
|
45
|
+
// | `$theme-aware-selector-prefix` | Prefix to the theme-aware portion of utility selectors. | `""` |
|
|
46
|
+
// | `$theme-aware-selector-suffix` | Suffix to the theme-aware portion of utility selectors. | `"-theme"` |
|
|
47
|
+
// | `$theme-aware-selector-separator` | Separator inserted for theme-aware utility selectors. | `"\\:"` |
|
|
48
|
+
// | `$scheme-aware-selector-prefix` | Prefix to the scheme-aware portion of utility selectors. | `""` |
|
|
49
|
+
// | `$scheme-aware-selector-suffix` | Suffix to the scheme-aware portion of utility selectors. | `"-mode"` |
|
|
50
|
+
// | `$scheme-aware-selector-separator` | Separator inserted for scheme-aware utility selectors. | `"\\:"` |
|
|
51
|
+
// | `$state-aware-selector-prefix` | Prefix to the state-aware portion of utility selectors. | `""` |
|
|
52
|
+
// | `$state-aware-selector-suffix` | Suffix to the state-aware portion of utility selectors. | `""` |
|
|
53
|
+
// | `$state-aware-selector-separator` | Separator inserted for state-aware utility selectors. | `"\\:"` |
|
|
54
|
+
// | `$container-aware-selector-prefix` | Prefix to the container-aware portion of utility selectors. | `"cq\\:"` |
|
|
55
|
+
// | `$container-aware-selector-suffix` | Suffix to the container-aware portion of utility selectors. | `""` |
|
|
56
|
+
// | `$container-aware-selector-separator`| Separator inserted for container-aware utility selectors. | `"\\:"` |
|
|
57
|
+
// | `$utility-properties` | Map of utility properties. | `()` |
|
|
58
|
+
// | `$utility-values` | Map of utility values. | `()` |
|
|
59
|
+
// | `$utility-map` | Map of utility property/value pairs. | `()` |
|
|
60
|
+
// | `$grid-row-min-count` | The minimum row count for generated utilities. | `1` |
|
|
61
|
+
// | `$grid-row-max-count` | The maximum row count for generated utilities. | `12` |
|
|
62
|
+
//
|
|
63
|
+
// Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, `$scheme-aware`, `$state-aware`, or `$container-aware` to `true`.
|
|
64
|
+
// By default, no responsive utility classes are generated for row-span.
|
|
65
|
+
//
|
|
66
|
+
// When set to true, screen-aware utility classes will be generated for each screen size in the following pattern: `.{screen-modifier}:{utility-selector}`
|
|
67
|
+
//
|
|
68
|
+
// e.g. `sm:row-span-full` will apply the `row-span-full` class on small-sized screens and up.
|
|
69
|
+
//
|
|
70
|
+
// When set to true, theme-aware utility classes will be generated for each theme in the following pattern: `.{theme-modifier}:{utility-selector}`
|
|
71
|
+
//
|
|
72
|
+
// e.g. `default-theme:row-span-full` will apply the `row-span-full` class when using the default theme.
|
|
73
|
+
//
|
|
74
|
+
// When set to true, scheme-aware utility classes will be generated for each theme in the following pattern: `.{scheme-modifier}:{utility-selector}`
|
|
75
|
+
//
|
|
76
|
+
// e.g. `dark-mode:row-span-full` will apply the `row-span-full` class when dark-mode is active.
|
|
77
|
+
//
|
|
78
|
+
// When set to true, state-aware utility classes will be generated for each state in the following pattern: `.{state-modifier}:{utility-selector}`
|
|
79
|
+
//
|
|
80
|
+
// e.g. `hover:row-span-full` will apply the `row-span-full` class when hovered.
|
|
81
|
+
//
|
|
82
|
+
// When set to true, container-aware utility classes will be generated for each container in the following pattern: `.{container-modifier}:{utility-selector}`
|
|
83
|
+
//
|
|
84
|
+
// e.g. `cq:md:row-span-full` will apply the `row-span-full` class on medium-sized containers and up.
|
|
85
|
+
//
|
|
86
|
+
// @example
|
|
87
|
+
// <div class="row-span-full">This content spanall rows.</div>
|
|
88
|
+
|
|
89
|
+
@use "../../../mixins/layer" as *;
|
|
90
|
+
@use "../../../mixins/utility";
|
|
91
|
+
@use "defaults";
|
|
92
|
+
@use "variables" as *;
|
|
93
|
+
|
|
94
|
+
@include layer(utilities) {
|
|
95
|
+
// Create a utitlity for each entry in the utility map.
|
|
96
|
+
@include utility.generate(
|
|
97
|
+
$map: defaults.$utility-map,
|
|
98
|
+
$selector-base: defaults.$selector-base,
|
|
99
|
+
$selector-prefix: defaults.$selector-prefix,
|
|
100
|
+
$selector-suffix: defaults.$selector-suffix,
|
|
101
|
+
$screen-aware: defaults.$screen-aware,
|
|
102
|
+
$screen-aware-selector-prefix: defaults.$screen-aware-selector-prefix,
|
|
103
|
+
$screen-aware-selector-suffix: defaults.$screen-aware-selector-suffix,
|
|
104
|
+
$screen-aware-selector-separator: defaults.$screen-aware-selector-separator,
|
|
105
|
+
$theme-aware: defaults.$theme-aware,
|
|
106
|
+
$theme-aware-selector-prefix: defaults.$theme-aware-selector-prefix,
|
|
107
|
+
$theme-aware-selector-suffix: defaults.$theme-aware-selector-suffix,
|
|
108
|
+
$theme-aware-selector-separator: defaults.$theme-aware-selector-separator,
|
|
109
|
+
$scheme-aware: defaults.$scheme-aware,
|
|
110
|
+
$scheme-aware-selector-prefix: defaults.$scheme-aware-selector-prefix,
|
|
111
|
+
$scheme-aware-selector-suffix: defaults.$scheme-aware-selector-suffix,
|
|
112
|
+
$scheme-aware-selector-separator: defaults.$scheme-aware-selector-separator,
|
|
113
|
+
$state-aware: defaults.$state-aware,
|
|
114
|
+
$state-aware-selector-prefix: defaults.$state-aware-selector-prefix,
|
|
115
|
+
$state-aware-selector-suffix: defaults.$state-aware-selector-suffix,
|
|
116
|
+
$state-aware-selector-separator: defaults.$state-aware-selector-separator,
|
|
117
|
+
$container-aware: defaults.$container-aware,
|
|
118
|
+
$container-aware-selector-prefix: defaults.$container-aware-selector-prefix,
|
|
119
|
+
$container-aware-selector-suffix: defaults.$container-aware-selector-suffix,
|
|
120
|
+
$container-aware-selector-separator:
|
|
121
|
+
defaults.$container-aware-selector-separator,
|
|
122
|
+
$important: defaults.$use-important
|
|
123
|
+
);
|
|
124
|
+
}
|