@graupl/graupl 1.0.0-beta.5 → 1.0.0-beta.6
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 +26 -0
- package/dist/css/base/button.css +1 -1
- package/dist/css/base/button.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.css +1 -1
- package/dist/css/base.css.map +1 -1
- 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/container.css +1 -1
- package/dist/css/layout/container.css.map +1 -1
- package/dist/css/layout.css +1 -1
- package/dist/css/layout.css.map +1 -1
- package/dist/css/utilities/background.css +1 -1
- package/dist/css/utilities/background.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/position.css +2 -0
- package/dist/css/utilities/position.css.map +1 -0
- package/dist/css/utilities/spacing.css +1 -1
- package/dist/css/utilities/spacing.css.map +1 -1
- package/dist/css/utilities/visually-hidden.css +1 -1
- package/dist/css/utilities/visually-hidden.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/z-index.css +2 -0
- package/dist/css/utilities/z-index.css.map +1 -0
- package/dist/css/utilities.css +1 -1
- package/dist/css/utilities.css.map +1 -1
- package/docs/.vitepress/config.js +30 -1
- package/docs/.vitepress/theme/custom.scss +14 -15
- package/docs/compiling-graupl.md +6 -5
- package/docs/utilities/alignment.md +405 -0
- package/docs/utilities/background.md +186 -0
- package/docs/utilities/border.md +262 -0
- package/docs/utilities/color.md +342 -0
- package/docs/utilities/display.md +3 -0
- package/docs/utilities/flex.md +3 -0
- package/docs/utilities/gradient.md +3 -0
- package/docs/utilities/height.md +3 -0
- package/docs/utilities/inset.md +3 -0
- package/docs/utilities/justification.md +3 -0
- package/docs/utilities/list.md +3 -0
- package/docs/utilities/order.md +3 -0
- package/docs/utilities/position.md +3 -0
- package/docs/utilities/ratio.md +3 -0
- package/docs/utilities/responsive-classes.md +3 -0
- package/docs/utilities/spacing.md +3 -0
- package/docs/utilities/typography.md +3 -0
- package/docs/utilities/visibility.md +3 -0
- package/docs/utilities/visually-hidden.md +3 -0
- package/docs/utilities/width.md +3 -0
- package/docs/utilities/z-index.md +3 -0
- package/index.html +82 -0
- package/package.json +1 -1
- package/scss/utilities/z-index.scss +3 -0
- package/src/scss/_defaults.scss +6 -0
- package/src/scss/layout/container/_defaults.scss +10 -0
- package/src/scss/layout/container/_index.scss +472 -1
- package/src/scss/layout/container/_variables.scss +22 -0
- package/src/scss/utilities/_index.scss +1 -0
- package/src/scss/utilities/background/_defaults.scss +0 -35
- package/src/scss/utilities/background/_index.scss +0 -35
- package/src/scss/utilities/z-index/_defaults.scss +34 -0
- package/src/scss/utilities/z-index/_index.scss +140 -0
- package/src/scss/utilities/z-index/_variables.scss +6 -0
- package/dist/css/utilities/postion.css +0 -2
- package/dist/css/utilities/postion.css.map +0 -1
- /package/scss/utilities/{postion.scss → position.scss} +0 -0
|
@@ -16,6 +16,10 @@ $container-content-max-width: var(
|
|
|
16
16
|
--#{root-defaults.$prefix}container-content-max-width,
|
|
17
17
|
#{root-variables.$content-max-width}
|
|
18
18
|
);
|
|
19
|
+
$container-sidebar-width: var(
|
|
20
|
+
--#{root-defaults.$prefix}container-sidebar-width,
|
|
21
|
+
#{defaults.$container-sidebar-width}
|
|
22
|
+
);
|
|
19
23
|
$container-breakout-max-width: var(
|
|
20
24
|
--#{root-defaults.$prefix}container-breakout-max-width,
|
|
21
25
|
calc(#{$container-content-max-width} + #{defaults.$container-breakout-width})
|
|
@@ -90,3 +94,21 @@ $container-content-section-width: var(
|
|
|
90
94
|
#{$container-content-section-max-width}
|
|
91
95
|
)
|
|
92
96
|
);
|
|
97
|
+
$container-sidebar-left-section-width: var(
|
|
98
|
+
--#{root-defaults.$prefix}container-sidebar-left-section-width,
|
|
99
|
+
$container-sidebar-width
|
|
100
|
+
);
|
|
101
|
+
$container-sidebar-right-section-width: var(
|
|
102
|
+
--#{root-defaults.$prefix}container-sidebar-right-section-width,
|
|
103
|
+
$container-sidebar-width
|
|
104
|
+
);
|
|
105
|
+
/* stylelint-disable scss/operator-no-newline-after -- Prettier wants to format it this way. */
|
|
106
|
+
$container-inner-content-section-width: var(
|
|
107
|
+
--#{root-defaults.$prefix}container-inner-content-section-width,
|
|
108
|
+
calc(
|
|
109
|
+
#{$container-content-section-width} -
|
|
110
|
+
#{$container-sidebar-left-section-width} -
|
|
111
|
+
#{$container-sidebar-right-section-width}
|
|
112
|
+
)
|
|
113
|
+
);
|
|
114
|
+
/* stylelint-enable scss/operator-no-newline-after */
|
|
@@ -25,11 +25,6 @@ $base-background-attachment-properties: (
|
|
|
25
25
|
scroll: scroll,
|
|
26
26
|
fixed: fixed,
|
|
27
27
|
local: local,
|
|
28
|
-
inherit: inherit,
|
|
29
|
-
initial: initial,
|
|
30
|
-
revert: revert,
|
|
31
|
-
revert-layer: revert-layer,
|
|
32
|
-
unset: unset,
|
|
33
28
|
);
|
|
34
29
|
$custom-background-attachment-properties: () !default;
|
|
35
30
|
$background-attachment-properties: map.merge(
|
|
@@ -45,11 +40,6 @@ $base-background-clip-properties: (
|
|
|
45
40
|
content-box: content-box,
|
|
46
41
|
text: text,
|
|
47
42
|
border-area: border-area,
|
|
48
|
-
inherit: inherit,
|
|
49
|
-
initial: initial,
|
|
50
|
-
revert: revert,
|
|
51
|
-
revert-layer: revert-layer,
|
|
52
|
-
unset: unset,
|
|
53
43
|
);
|
|
54
44
|
$custom-background-clip-properties: () !default;
|
|
55
45
|
$background-clip-properties: map.merge(
|
|
@@ -61,11 +51,6 @@ $background-clip-properties: map.merge(
|
|
|
61
51
|
$background-image-selector-prefix: "bg-image-" !default;
|
|
62
52
|
$base-background-image-properties: (
|
|
63
53
|
none: none,
|
|
64
|
-
inherit: inherit,
|
|
65
|
-
initial: initial,
|
|
66
|
-
revert: revert,
|
|
67
|
-
revert-layer: revert-layer,
|
|
68
|
-
unset: unset,
|
|
69
54
|
);
|
|
70
55
|
$custom-background-image-properties: () !default;
|
|
71
56
|
$background-image-properties: map.merge(
|
|
@@ -79,11 +64,6 @@ $base-background-origin-properties: (
|
|
|
79
64
|
border-box: border-box,
|
|
80
65
|
padding-box: padding-box,
|
|
81
66
|
content-box: content-box,
|
|
82
|
-
inherit: inherit,
|
|
83
|
-
initial: initial,
|
|
84
|
-
revert: revert,
|
|
85
|
-
revert-layer: revert-layer,
|
|
86
|
-
unset: unset,
|
|
87
67
|
);
|
|
88
68
|
$custom-background-origin-properties: () !default;
|
|
89
69
|
$background-origin-properties: map.merge(
|
|
@@ -99,11 +79,6 @@ $base-background-position-properties: (
|
|
|
99
79
|
bottom: bottom,
|
|
100
80
|
left: left,
|
|
101
81
|
center: center,
|
|
102
|
-
inherit: inherit,
|
|
103
|
-
initial: initial,
|
|
104
|
-
revert: revert,
|
|
105
|
-
revert-layer: revert-layer,
|
|
106
|
-
unset: unset,
|
|
107
82
|
);
|
|
108
83
|
$custom-background-position-properties: () !default;
|
|
109
84
|
$background-position-properties: map.merge(
|
|
@@ -120,11 +95,6 @@ $base-background-repeat-properties: (
|
|
|
120
95
|
space: space,
|
|
121
96
|
round: round,
|
|
122
97
|
no-repeat: no-repeat,
|
|
123
|
-
inherit: inherit,
|
|
124
|
-
initial: initial,
|
|
125
|
-
revert: revert,
|
|
126
|
-
revert-layer: revert-layer,
|
|
127
|
-
unset: unset,
|
|
128
98
|
);
|
|
129
99
|
$custom-background-repeat-properties: () !default;
|
|
130
100
|
$background-repeat-properties: map.merge(
|
|
@@ -138,11 +108,6 @@ $base-background-size-properties: (
|
|
|
138
108
|
auto: auto,
|
|
139
109
|
cover: cover,
|
|
140
110
|
contain: contain,
|
|
141
|
-
inherit: inherit,
|
|
142
|
-
initial: initial,
|
|
143
|
-
revert: revert,
|
|
144
|
-
revert-layer: revert-layer,
|
|
145
|
-
unset: unset,
|
|
146
111
|
);
|
|
147
112
|
$custom-background-size-properties: () !default;
|
|
148
113
|
$background-size-properties: map.merge(
|
|
@@ -6,64 +6,29 @@
|
|
|
6
6
|
// - `.bg-attachment-scroll`: Sets the background attachment property to `scroll`.
|
|
7
7
|
// - `.bg-attachment-fixed`: Sets the background attachment property to `fixed`.
|
|
8
8
|
// - `.bg-attachment-local`: Sets the background attachment property to `local`.
|
|
9
|
-
// - `.bg-attachment-inherit`: Sets the background attachment property to `inherit`.
|
|
10
|
-
// - `.bg-attachment-initial`: Sets the background attachment property to `initial`.
|
|
11
|
-
// - `.bg-attachment-revert`: Sets the background attachment property to `revert`.
|
|
12
|
-
// - `.bg-attachment-revert-layer`: Sets the background attachment property to `revert-layer`.
|
|
13
|
-
// - `.bg-attachment-unset`: Sets the background attachment property to `unset`.
|
|
14
9
|
// - `.bg-clip-border-box`: Sets the background clip property to `border-box`.
|
|
15
10
|
// - `.bg-clip-padding-box`: Sets the background clip property to `padding-box`.
|
|
16
11
|
// - `.bg-clip-content-box`: Sets the background clip property to `content-box`.
|
|
17
12
|
// - `.bg-clip-text`: Sets the background clip property to `text`.
|
|
18
13
|
// - `.bg-clip-border-area`: Sets the background clip property to `border-area`.
|
|
19
|
-
// - `.bg-clip-inherit`: Sets the background clip property to `inherit`.
|
|
20
|
-
// - `.bg-clip-initial`: Sets the background clip property to `initial`.
|
|
21
|
-
// - `.bg-clip-revert`: Sets the background clip property to `revert`.
|
|
22
|
-
// - `.bg-clip-revert-layer`: Sets the background clip property to `revert-layer`.
|
|
23
|
-
// - `.bg-clip-unset`: Sets the background clip property to `unset`.
|
|
24
14
|
// - `.bg-image-none`: Sets the background image property to `none`.
|
|
25
|
-
// - `.bg-image-inherit`: Sets the background image property to `inherit`.
|
|
26
|
-
// - `.bg-image-initial`: Sets the background image property to `initial`.
|
|
27
|
-
// - `.bg-image-revert`: Sets the background image property to `revert`.
|
|
28
|
-
// - `.bg-image-revert-layer`: Sets the background image property to `revert-layer`.
|
|
29
|
-
// - `.bg-image-unset`: Sets the background image property to `unset`.
|
|
30
15
|
// - `.bg-origin-border-box`: Sets the background origin property to `border-box`.
|
|
31
16
|
// - `.bg-origin-padding-box`: Sets the background origin property to `padding-box`.
|
|
32
17
|
// - `.bg-origin-content-box`: Sets the background origin property to `content-box`.
|
|
33
|
-
// - `.bg-origin-inherit`: Sets the background origin property to `inherit`.
|
|
34
|
-
// - `.bg-origin-initial`: Sets the background origin property to `initial`.
|
|
35
|
-
// - `.bg-origin-revert`: Sets the background origin property to `revert`.
|
|
36
|
-
// - `.bg-origin-revert-layer`: Sets the background origin property to `revert-layer`.
|
|
37
|
-
// - `.bg-origin-unset`: Sets the background origin property to `unset`.
|
|
38
18
|
// - `.bg-position-top`: Sets the background position property to `top`.
|
|
39
19
|
// - `.bg-position-right`: Sets the background position property to `right`.
|
|
40
20
|
// - `.bg-position-bottom`: Sets the background position property to `bottom`.
|
|
41
21
|
// - `.bg-position-left`: Sets the background position property to `left`.
|
|
42
22
|
// - `.bg-position-center`: Sets the background position property to `center`.
|
|
43
|
-
// - `.bg-position-inherit`: Sets the background position property to `inherit`.
|
|
44
|
-
// - `.bg-position-initial`: Sets the background position property to `initial`.
|
|
45
|
-
// - `.bg-position-revert`: Sets the background position property to `revert`.
|
|
46
|
-
// - `.bg-position-revert-layer`: Sets the background position property to `revert-layer`.
|
|
47
|
-
// - `.bg-position-unset`: Sets the background position property to `unset`.
|
|
48
23
|
// - `.bg-repeat-repeat`: Sets the background repeat property to `repeat`.
|
|
49
24
|
// - `.bg-repeat-repeat-x`: Sets the background repeat property to `repeat-x`.
|
|
50
25
|
// - `.bg-repeat-repeat-y`: Sets the background repeat property to `repeat-y`.
|
|
51
26
|
// - `.bg-repeat-space`: Sets the background repeat property to `space`.
|
|
52
27
|
// - `.bg-repeat-round`: Sets the background repeat property to `round`.
|
|
53
28
|
// - `.bg-repeat-no-repeat`: Sets the background repeat property to `no-repeat`.
|
|
54
|
-
// - `.bg-repeat-inherit`: Sets the background repeat property to `inherit`.
|
|
55
|
-
// - `.bg-repeat-initial`: Sets the background repeat property to `initial`.
|
|
56
|
-
// - `.bg-repeat-revert`: Sets the background repeat property to `revert`.
|
|
57
|
-
// - `.bg-repeat-revert-layer`: Sets the background repeat property to `revert-layer`.
|
|
58
|
-
// - `.bg-repeat-unset`: Sets the background repeat property to `unset`.
|
|
59
29
|
// - `.bg-size-auto`: Sets the background size property to `auto`.
|
|
60
30
|
// - `.bg-size-cover`: Sets the background size property to `cover`.
|
|
61
31
|
// - `.bg-size-contain`: Sets the background size property to `contain`.
|
|
62
|
-
// - `.bg-size-inherit`: Sets the background size property to `inherit`.
|
|
63
|
-
// - `.bg-size-initial`: Sets the background size property to `initial`.
|
|
64
|
-
// - `.bg-size-revert`: Sets the background size property to `revert`.
|
|
65
|
-
// - `.bg-size-revert-layer`: Sets the background size property to `revert-layer`.
|
|
66
|
-
// - `.bg-size-unset`: Sets the background size property to `unset`.
|
|
67
32
|
//
|
|
68
33
|
// The following custom properties control the generated classes:
|
|
69
34
|
// - N/A.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @graupl/graupl z-index 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 "sass:map";
|
|
11
|
+
|
|
12
|
+
// Utility modifiers.
|
|
13
|
+
$selector-base: root-defaults.$utility-selector-base !default;
|
|
14
|
+
$use-important: root-defaults.$use-important !default;
|
|
15
|
+
$screen-aware: false !default;
|
|
16
|
+
$theme-aware: false !default;
|
|
17
|
+
$state-aware: false !default;
|
|
18
|
+
$screen-aware-separator: root-defaults.$utility-screen-aware-separator !default;
|
|
19
|
+
$theme-aware-separator: root-defaults.$utility-theme-aware-separator !default;
|
|
20
|
+
$state-aware-separator: root-defaults.$utility-state-aware-separator !default;
|
|
21
|
+
|
|
22
|
+
// Z-index properties.
|
|
23
|
+
|
|
24
|
+
$z-index-selector-prefix: "z-" !default;
|
|
25
|
+
$base-z-index-properties: (
|
|
26
|
+
"n1": -1,
|
|
27
|
+
0: 0,
|
|
28
|
+
1: 1,
|
|
29
|
+
);
|
|
30
|
+
$custom-z-index-properties: () !default;
|
|
31
|
+
$z-index-properties: map.merge(
|
|
32
|
+
$base-z-index-properties,
|
|
33
|
+
$custom-z-index-properties
|
|
34
|
+
);
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// @graupl/graupl z-index utilities styles.
|
|
2
|
+
//
|
|
3
|
+
// This file generates the z-index utility classes provided by Graupl.
|
|
4
|
+
//
|
|
5
|
+
// The following classes are generated by default:
|
|
6
|
+
// - `.z-n1`: Sets the z-index to -1.
|
|
7
|
+
// - `.z-0`: Sets the z-index to 0.
|
|
8
|
+
// - `.z-1`: Sets the z-index to 1.
|
|
9
|
+
//
|
|
10
|
+
// The following custom properties control the generated classes:
|
|
11
|
+
// - N/A.
|
|
12
|
+
//
|
|
13
|
+
// The following variables control the generated classes:
|
|
14
|
+
// - `$selector-base`: The base selector for the utility classes.
|
|
15
|
+
// - `$use-important`: A flag to determine if the `!important` flag should be added to the utility classes.
|
|
16
|
+
// - `$screen-aware`: A flag to generate screen-aware utility classes.
|
|
17
|
+
// - `$theme-aware`: A flag to generate theme-aware utility classes.
|
|
18
|
+
// - `$state-aware`: A flag to generate state-aware utility classes.
|
|
19
|
+
// - `$screen-aware-separator`: The separator for screen-aware utility classes.
|
|
20
|
+
// - `$theme-aware-separator`: The separator for theme-aware utility classes.
|
|
21
|
+
// - `$state-aware-separator`: The separator for state-aware utility classes.
|
|
22
|
+
// - `$z-index-selector-prefix`: The prefix for the utility classes.
|
|
23
|
+
// - `$base-z-index-properties`: The base properties and values for the z-index utility classes.
|
|
24
|
+
// - `$custom-z-index-properties`: The custom properties and values for the z-index utility classes.
|
|
25
|
+
// - `$z-index-properties`: The merged properties and values for the z-index utility classes.
|
|
26
|
+
//
|
|
27
|
+
// Generating responsive utility classes can be done by setting `$screen-aware`, `$theme-aware`, or `$state-aware` to `true`.
|
|
28
|
+
// By default, no responsive utility classes are generated.
|
|
29
|
+
//
|
|
30
|
+
// When set to true, screen-aware utility classes will be generated for each screen size in the following pattern:
|
|
31
|
+
// - `.{screen-name}:{prefix}{value}`
|
|
32
|
+
//
|
|
33
|
+
// e.g. `.sm:z-0` will set the z-index property to 0 on screens equal to or larger than the `sm` breakpoint.
|
|
34
|
+
//
|
|
35
|
+
// When set to true, theme-aware utility classes will be generated for each theme in the following pattern:
|
|
36
|
+
// - `.{theme-name}:{prefix}{value}`
|
|
37
|
+
//
|
|
38
|
+
// e.g. `.dark:z-0` will set the z-index property to 0 when the `dark` theme is active.
|
|
39
|
+
//
|
|
40
|
+
// When set to true, state-aware utility classes will be generated for each state in the following pattern:
|
|
41
|
+
// - `.{state-name}:{prefix}{value}`
|
|
42
|
+
//
|
|
43
|
+
// e.g. `.hover:z-0` will set the z-index property to 0 when the element is hovered.
|
|
44
|
+
//
|
|
45
|
+
// @example
|
|
46
|
+
// <div class="z-0">This element has a z-index of 0.</div>
|
|
47
|
+
|
|
48
|
+
@use "../../defaults" as root-defaults;
|
|
49
|
+
@use "../../mixins/layer" as *;
|
|
50
|
+
@use "../../mixins/utility";
|
|
51
|
+
@use "../../theme/color/variables" as color;
|
|
52
|
+
@use "defaults";
|
|
53
|
+
@use "sass:map";
|
|
54
|
+
@use "variables" as *;
|
|
55
|
+
|
|
56
|
+
@include layer(utilities) {
|
|
57
|
+
// `.`
|
|
58
|
+
$selector-prefix: defaults.$selector-base;
|
|
59
|
+
|
|
60
|
+
// For each z-index property, create a utility class.
|
|
61
|
+
@each $name, $value in defaults.$z-index-properties {
|
|
62
|
+
// e.g. `.z-0`
|
|
63
|
+
$selector: #{$selector-prefix}#{defaults.$z-index-selector-prefix}#{$name};
|
|
64
|
+
|
|
65
|
+
@include utility.create(
|
|
66
|
+
$selector,
|
|
67
|
+
property,
|
|
68
|
+
$value,
|
|
69
|
+
$important: #{defaults.$use-important}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Generate screen-aware utilities.
|
|
74
|
+
@if defaults.$screen-aware and root-defaults.$screen-aware-utilities {
|
|
75
|
+
@each $screen-name in map.keys(root-defaults.$screen-sizes) {
|
|
76
|
+
// e.g. `.md:` or `.lg:`
|
|
77
|
+
$selector-prefix: #{defaults.$selector-base}#{$screen-name}#{defaults.$screen-aware-separator};
|
|
78
|
+
|
|
79
|
+
// For each template property, create a utility class.
|
|
80
|
+
@each $name, $value in defaults.$z-index-properties {
|
|
81
|
+
// e.g. `.md:z-0`
|
|
82
|
+
$selector: #{$selector-prefix}#{defaults.$z-index-selector-prefix}#{$name};
|
|
83
|
+
|
|
84
|
+
@include utility.create(
|
|
85
|
+
$selector,
|
|
86
|
+
property,
|
|
87
|
+
$value,
|
|
88
|
+
$important: #{defaults.$use-important},
|
|
89
|
+
$screen: $screen-name
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Generate theme-aware utilities.
|
|
96
|
+
@if defaults.$theme-aware and root-defaults.$theme-aware-utilities {
|
|
97
|
+
@each $theme-name, $colors in color.$themes {
|
|
98
|
+
@if $theme-name != active {
|
|
99
|
+
// e.g. `.dark:` or `.light:`
|
|
100
|
+
$selector-prefix: #{defaults.$selector-base}#{$theme-name}#{defaults.$theme-aware-separator};
|
|
101
|
+
|
|
102
|
+
// For each template property, create a utility class.
|
|
103
|
+
@each $name, $value in defaults.$z-index-properties {
|
|
104
|
+
// e.g. `.dark:z-0` or `.light:z-n1`
|
|
105
|
+
$selector: #{$selector-prefix}#{defaults.$z-index-selector-prefix}#{$name};
|
|
106
|
+
|
|
107
|
+
@include utility.create(
|
|
108
|
+
$selector,
|
|
109
|
+
property,
|
|
110
|
+
$value,
|
|
111
|
+
$important: #{defaults.$use-important},
|
|
112
|
+
$theme: $theme-name
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Generate state-aware utilities.
|
|
120
|
+
@if defaults.$state-aware and root-defaults.$state-aware-utilities {
|
|
121
|
+
@each $state-name, $value in root-defaults.$state-selectors {
|
|
122
|
+
// e.g. `.hover:` or `.focus:`
|
|
123
|
+
$selector-prefix: #{defaults.$selector-base}#{$state-name}#{defaults.$state-aware-separator};
|
|
124
|
+
|
|
125
|
+
// For each template property, create a utility class.
|
|
126
|
+
@each $name, $value in defaults.$z-index-properties {
|
|
127
|
+
// e.g. `.hover:z-0` or `.focus:z-n1`
|
|
128
|
+
$selector: #{$selector-prefix}#{defaults.$z-index-selector-prefix}#{$name};
|
|
129
|
+
|
|
130
|
+
@include utility.create(
|
|
131
|
+
$selector,
|
|
132
|
+
property,
|
|
133
|
+
$value,
|
|
134
|
+
$important: #{defaults.$use-important},
|
|
135
|
+
$state: $state-name
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer graupl.utilities{.position-static{position:static!important}.position-fixed{position:fixed!important}.position-absolute{position:absolute!important}.position-relative{position:relative!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}@media screen and (0 <= width){.xs\:position-static{position:static!important}.xs\:position-fixed{position:fixed!important}.xs\:position-absolute{position:absolute!important}.xs\:position-relative{position:relative!important}.xs\:position-sticky{position:-webkit-sticky!important;position:sticky!important}}@media screen and (48ch <= width){.sm\:position-static{position:static!important}.sm\:position-fixed{position:fixed!important}.sm\:position-absolute{position:absolute!important}.sm\:position-relative{position:relative!important}.sm\:position-sticky{position:-webkit-sticky!important;position:sticky!important}}@media screen and (72ch <= width){.md\:position-static{position:static!important}.md\:position-fixed{position:fixed!important}.md\:position-absolute{position:absolute!important}.md\:position-relative{position:relative!important}.md\:position-sticky{position:-webkit-sticky!important;position:sticky!important}}@media screen and (108ch <= width){.lg\:position-static{position:static!important}.lg\:position-fixed{position:fixed!important}.lg\:position-absolute{position:absolute!important}.lg\:position-relative{position:relative!important}.lg\:position-sticky{position:-webkit-sticky!important;position:sticky!important}}@media screen and (156ch <= width){.xl\:position-static{position:static!important}.xl\:position-fixed{position:fixed!important}.xl\:position-absolute{position:absolute!important}.xl\:position-relative{position:relative!important}.xl\:position-sticky{position:-webkit-sticky!important;position:sticky!important}}}
|
|
2
|
-
/*# sourceMappingURL=postion.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/scss/mixins/_layer.scss","../../../src/scss/mixins/_utility.scss","postion.css","../../../src/scss/mixins/_screen.scss"],"names":[],"mappings":"AASI,wBC+HA,iBAlHE,yBCnBJ,CDqIE,gBAlHE,wBChBJ,CDkIE,mBAlHE,2BCbJ,CD+HE,mBAlHE,2BCVJ,CD4HE,iBAlHE,iCAAA,CAAA,yBCPJ,CCDA,+BF0HE,qBAlHE,yBCHF,CDqHA,oBAlHE,wBCEF,CDgHA,uBAlHE,2BCOF,CD2GA,uBAlHE,2BCYF,CDsGA,qBAlHE,iCAAA,CAAA,yBCiBF,CAnBF,CCNA,kCF0HE,qBAlHE,yBCsBF,CD4FA,oBAlHE,wBC2BF,CDuFA,uBAlHE,2BCgCF,CDkFA,uBAlHE,2BCqCF,CD6EA,qBAlHE,iCAAA,CAAA,yBC0CF,CAnBF,CC/BA,kCF0HE,qBAlHE,yBC+CF,CDmEA,oBAlHE,wBCoDF,CD8DA,uBAlHE,2BCyDF,CDyDA,uBAlHE,2BC8DF,CDoDA,qBAlHE,iCAAA,CAAA,yBCmEF,CAnBF,CCxDA,mCF0HE,qBAlHE,yBCwEF,CD0CA,oBAlHE,wBC6EF,CDqCA,uBAlHE,2BCkFF,CDgCA,uBAlHE,2BCuFF,CD2BA,qBAlHE,iCAAA,CAAA,yBC4FF,CAnBF,CCjFA,mCF0HE,qBAlHE,yBCiGF,CDiBA,oBAlHE,wBCsGF,CDYA,uBAlHE,2BC2GF,CDOA,uBAlHE,2BCgHF,CDEA,qBAlHE,iCAAA,CAAA,yBCqHF,CAnBF,CAqBF","file":"postion.css"}
|
|
File without changes
|