yummacss 3.0.2 → 3.1.0
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/README.md +66 -66
- package/dist/cli/commands/init.js +3 -5
- package/dist/cli/services/configLoader.js +4 -30
- package/package.json +6 -13
- package/src/_fonts.scss +16 -16
- package/src/abstracts/_breakpoints.scss +45 -45
- package/src/abstracts/_index.scss +5 -5
- package/src/abstracts/_theme.scss +21 -21
- package/src/abstracts/_variables.scss +83 -82
- package/src/abstracts/functions/_create-values.scss +16 -16
- package/src/abstracts/functions/_ignore-neutral.scss +7 -9
- package/src/abstracts/functions/_index.scss +2 -2
- package/src/abstracts/mixins/_create-colors.scss +90 -39
- package/src/abstracts/mixins/_create-utilities.scss +53 -39
- package/src/abstracts/mixins/_index.scss +2 -3
- package/src/reset/_stylecent.scss +231 -231
- package/src/utilities/_background.scss +95 -95
- package/src/utilities/_border.scss +313 -313
- package/src/utilities/_box-model.scss +290 -290
- package/src/utilities/_color.scss +85 -85
- package/src/utilities/_effect.scss +98 -98
- package/src/utilities/_flexbox.scss +213 -175
- package/src/utilities/_grid.scss +322 -322
- package/src/utilities/_index.scss +14 -14
- package/src/utilities/_interactivity.scss +304 -304
- package/src/utilities/_outline.scss +53 -53
- package/src/utilities/_positioning.scss +436 -436
- package/src/utilities/_svg.scss +27 -27
- package/src/utilities/_table.scss +35 -35
- package/src/utilities/_transform.scss +164 -164
- package/src/utilities/_typography.scss +278 -278
- package/src/utilities/maps/_index.scss +12 -12
- package/src/utilities/maps/box-model/_dimension.scss +16 -16
- package/src/utilities/maps/box-model/_height.scss +16 -16
- package/src/utilities/maps/box-model/_margin.scss +10 -10
- package/src/utilities/maps/box-model/_padding.scss +10 -10
- package/src/utilities/maps/box-model/_width.scss +16 -16
- package/src/utilities/maps/flexbox/_flex-basis.scss +12 -12
- package/src/utilities/maps/grid/_gap.scss +5 -5
- package/src/yummacss-core.scss +3 -3
- package/src/yummacss.scss +4 -4
- package/dist/cli/config/templates.js +0 -33
- package/src/abstracts/mixins/_extend-utilities.scss +0 -24
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
@use "../abstracts/variables" as vars;
|
|
4
|
-
@use "../abstracts/mixins/" as mix;
|
|
5
|
-
|
|
6
|
-
$yma-background-utils: (
|
|
7
|
-
"background-attachment": (
|
|
8
|
-
"prefix": "ba",
|
|
9
|
-
"properties": (
|
|
10
|
-
"background-attachment",
|
|
11
|
-
),
|
|
12
|
-
"values": (
|
|
13
|
-
"f": fixed,
|
|
14
|
-
"l": local,
|
|
15
|
-
"s": scroll,
|
|
16
|
-
),
|
|
17
|
-
),
|
|
18
|
-
|
|
19
|
-
"background-clip": (
|
|
20
|
-
"prefix": "bc",
|
|
21
|
-
"properties": (
|
|
22
|
-
"background-clip",
|
|
23
|
-
),
|
|
24
|
-
"values": (
|
|
25
|
-
"bb": border-box,
|
|
26
|
-
"cb": content-box,
|
|
27
|
-
"pb": padding-box,
|
|
28
|
-
"t": text,
|
|
29
|
-
),
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
"background-origin": (
|
|
33
|
-
"prefix": "bo",
|
|
34
|
-
"properties": (
|
|
35
|
-
"background-origin",
|
|
36
|
-
),
|
|
37
|
-
"values": (
|
|
38
|
-
"bb": border-box,
|
|
39
|
-
"cb": content-box,
|
|
40
|
-
"pb": padding-box,
|
|
41
|
-
),
|
|
42
|
-
),
|
|
43
|
-
|
|
44
|
-
"background-position": (
|
|
45
|
-
"prefix": "bp",
|
|
46
|
-
"properties": (
|
|
47
|
-
"background-position",
|
|
48
|
-
),
|
|
49
|
-
"values": (
|
|
50
|
-
"b": bottom,
|
|
51
|
-
"c": center,
|
|
52
|
-
"l": left,
|
|
53
|
-
"lb": left bottom,
|
|
54
|
-
"lt": left top,
|
|
55
|
-
"r": right,
|
|
56
|
-
"rb": right bottom,
|
|
57
|
-
"rt": right top,
|
|
58
|
-
"t": top,
|
|
59
|
-
),
|
|
60
|
-
),
|
|
61
|
-
|
|
62
|
-
"background-repeat": (
|
|
63
|
-
"prefix": "br",
|
|
64
|
-
"properties": (
|
|
65
|
-
"background-repeat",
|
|
66
|
-
),
|
|
67
|
-
"values": (
|
|
68
|
-
"nr": no-repeat,
|
|
69
|
-
"r": repeat,
|
|
70
|
-
"ro": round,
|
|
71
|
-
"rx": repeat-x,
|
|
72
|
-
"ry": repeat-y,
|
|
73
|
-
"s": space,
|
|
74
|
-
),
|
|
75
|
-
),
|
|
76
|
-
|
|
77
|
-
"background-size": (
|
|
78
|
-
"prefix": "bs",
|
|
79
|
-
"properties": (
|
|
80
|
-
"background-size",
|
|
81
|
-
),
|
|
82
|
-
"values": (
|
|
83
|
-
"auto": auto,
|
|
84
|
-
"c": cover,
|
|
85
|
-
"co": contain,
|
|
86
|
-
),
|
|
87
|
-
),
|
|
88
|
-
);
|
|
89
|
-
|
|
90
|
-
@each $properties, $map in $yma-background-utils {
|
|
91
|
-
$prefix: map.get($map, "prefix");
|
|
92
|
-
$properties: map.get($map, "properties");
|
|
93
|
-
|
|
94
|
-
@include mix.create-utilities($map, $prefix, $properties);
|
|
95
|
-
}
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../abstracts/variables" as vars;
|
|
4
|
+
@use "../abstracts/mixins/" as mix;
|
|
5
|
+
|
|
6
|
+
$yma-background-utils: (
|
|
7
|
+
"background-attachment": (
|
|
8
|
+
"prefix": "ba",
|
|
9
|
+
"properties": (
|
|
10
|
+
"background-attachment",
|
|
11
|
+
),
|
|
12
|
+
"values": (
|
|
13
|
+
"f": fixed,
|
|
14
|
+
"l": local,
|
|
15
|
+
"s": scroll,
|
|
16
|
+
),
|
|
17
|
+
),
|
|
18
|
+
|
|
19
|
+
"background-clip": (
|
|
20
|
+
"prefix": "bc",
|
|
21
|
+
"properties": (
|
|
22
|
+
"background-clip",
|
|
23
|
+
),
|
|
24
|
+
"values": (
|
|
25
|
+
"bb": border-box,
|
|
26
|
+
"cb": content-box,
|
|
27
|
+
"pb": padding-box,
|
|
28
|
+
"t": text,
|
|
29
|
+
),
|
|
30
|
+
),
|
|
31
|
+
|
|
32
|
+
"background-origin": (
|
|
33
|
+
"prefix": "bo",
|
|
34
|
+
"properties": (
|
|
35
|
+
"background-origin",
|
|
36
|
+
),
|
|
37
|
+
"values": (
|
|
38
|
+
"bb": border-box,
|
|
39
|
+
"cb": content-box,
|
|
40
|
+
"pb": padding-box,
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
|
|
44
|
+
"background-position": (
|
|
45
|
+
"prefix": "bp",
|
|
46
|
+
"properties": (
|
|
47
|
+
"background-position",
|
|
48
|
+
),
|
|
49
|
+
"values": (
|
|
50
|
+
"b": bottom,
|
|
51
|
+
"c": center,
|
|
52
|
+
"l": left,
|
|
53
|
+
"lb": left bottom,
|
|
54
|
+
"lt": left top,
|
|
55
|
+
"r": right,
|
|
56
|
+
"rb": right bottom,
|
|
57
|
+
"rt": right top,
|
|
58
|
+
"t": top,
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
|
|
62
|
+
"background-repeat": (
|
|
63
|
+
"prefix": "br",
|
|
64
|
+
"properties": (
|
|
65
|
+
"background-repeat",
|
|
66
|
+
),
|
|
67
|
+
"values": (
|
|
68
|
+
"nr": no-repeat,
|
|
69
|
+
"r": repeat,
|
|
70
|
+
"ro": round,
|
|
71
|
+
"rx": repeat-x,
|
|
72
|
+
"ry": repeat-y,
|
|
73
|
+
"s": space,
|
|
74
|
+
),
|
|
75
|
+
),
|
|
76
|
+
|
|
77
|
+
"background-size": (
|
|
78
|
+
"prefix": "bs",
|
|
79
|
+
"properties": (
|
|
80
|
+
"background-size",
|
|
81
|
+
),
|
|
82
|
+
"values": (
|
|
83
|
+
"auto": auto,
|
|
84
|
+
"c": cover,
|
|
85
|
+
"co": contain,
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
@each $properties, $map in $yma-background-utils {
|
|
91
|
+
$prefix: map.get($map, "prefix");
|
|
92
|
+
$properties: map.get($map, "properties");
|
|
93
|
+
|
|
94
|
+
@include mix.create-utilities($map, $prefix, $properties);
|
|
95
|
+
}
|