yummacss 1.2.0 → 2.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/.prettierrc +9 -0
- package/CHANGELOG.md +56 -205
- package/LICENSE +1 -1
- package/README.md +20 -47
- package/dist/yumma-core.css +238809 -0
- package/dist/yumma-core.min.css +1 -0
- package/dist/yumma.css +212208 -51572
- package/dist/yumma.min.css +1 -1
- package/gulpfile.js +32 -16
- package/package.json +13 -21
- package/src/_base.scss +72 -0
- package/src/_fonts.scss +14 -0
- package/src/abstracts/_breakpoints.scss +43 -0
- package/src/abstracts/_colors.scss +29 -0
- package/src/abstracts/_extensions.scss +19 -0
- package/src/abstracts/_functions.scss +3 -0
- package/src/abstracts/_layout.scss +18 -0
- package/src/abstracts/_mixins.scss +575 -0
- package/src/abstracts/_theme.scss +18 -0
- package/src/abstracts/_variables.scss +68 -0
- package/src/core.scss +3 -0
- package/src/utilities/_borders.scss +214 -0
- package/src/utilities/_box-model.scss +107 -0
- package/src/utilities/_effects.scss +74 -0
- package/src/utilities/_filters.scss +57 -0
- package/src/utilities/_flexbox.scss +192 -0
- package/src/utilities/_grid.scss +320 -0
- package/src/utilities/_interactions.scss +111 -0
- package/src/utilities/_layout.scss +310 -0
- package/src/utilities/_outlines.scss +76 -0
- package/src/utilities/_tables.scss +61 -0
- package/src/utilities/_typography.scss +168 -0
- package/src/yumma.scss +23 -0
- package/index.js +0 -8
- package/yumma-css/_base.scss +0 -62
- package/yumma-css/_breakpoints.scss +0 -43
- package/yumma-css/_colors.scss +0 -323
- package/yumma-css/_fonts.scss +0 -19
- package/yumma-css/_grid.scss +0 -75
- package/yumma-css/_layout.scss +0 -18
- package/yumma-css/_utils.scss +0 -1330
- package/yumma-css/_variables.scss +0 -94
- package/yumma-css/components/_badge.scss +0 -33
- package/yumma-css/components/_button.scss +0 -55
- package/yumma-css/components/_card.scss +0 -23
- package/yumma-css/components/_navbar.scss +0 -23
- package/yumma-css/index.scss +0 -21
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
$yma-layout-utils: (
|
|
4
|
+
"aspect-ratio": (
|
|
5
|
+
"prefix": "ar",
|
|
6
|
+
"values": (
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"l": "16/9",
|
|
9
|
+
"s": "1/1",
|
|
10
|
+
),
|
|
11
|
+
),
|
|
12
|
+
|
|
13
|
+
"columns": (
|
|
14
|
+
"prefix": "cols",
|
|
15
|
+
"values": (
|
|
16
|
+
"1": 1,
|
|
17
|
+
"2": 2,
|
|
18
|
+
"3": 3,
|
|
19
|
+
"4": 4,
|
|
20
|
+
"5": 5,
|
|
21
|
+
"6": 6,
|
|
22
|
+
"7": 7,
|
|
23
|
+
"8": 8,
|
|
24
|
+
"9": 9,
|
|
25
|
+
"10": 10,
|
|
26
|
+
"11": 11,
|
|
27
|
+
"12": 12,
|
|
28
|
+
"13": 13,
|
|
29
|
+
"14": 14,
|
|
30
|
+
"15": 15,
|
|
31
|
+
"16": 16,
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
|
|
35
|
+
"bottom": (
|
|
36
|
+
"prefix": "dir-b",
|
|
37
|
+
"values": (
|
|
38
|
+
"0": $yma-direction * 0,
|
|
39
|
+
"1": $yma-direction,
|
|
40
|
+
"2": $yma-direction * 2,
|
|
41
|
+
"3": $yma-direction * 3,
|
|
42
|
+
"4": $yma-direction * 4,
|
|
43
|
+
"5": $yma-direction * 5,
|
|
44
|
+
"6": $yma-direction * 6,
|
|
45
|
+
"7": $yma-direction * 7,
|
|
46
|
+
"8": $yma-direction * 8,
|
|
47
|
+
"9": $yma-direction * 9,
|
|
48
|
+
"10": $yma-direction * 10,
|
|
49
|
+
"11": $yma-direction * 11,
|
|
50
|
+
"12": $yma-direction * 12,
|
|
51
|
+
"13": $yma-direction * 13,
|
|
52
|
+
"14": $yma-direction * 14,
|
|
53
|
+
"15": $yma-direction * 15,
|
|
54
|
+
"16": $yma-direction * 16,
|
|
55
|
+
"none": none,
|
|
56
|
+
),
|
|
57
|
+
),
|
|
58
|
+
|
|
59
|
+
"inset": (
|
|
60
|
+
"prefix": "dir-i",
|
|
61
|
+
"values": (
|
|
62
|
+
"0": $yma-direction * 0,
|
|
63
|
+
"1": $yma-direction,
|
|
64
|
+
"2": $yma-direction * 2,
|
|
65
|
+
"3": $yma-direction * 3,
|
|
66
|
+
"4": $yma-direction * 4,
|
|
67
|
+
"5": $yma-direction * 5,
|
|
68
|
+
"6": $yma-direction * 6,
|
|
69
|
+
"7": $yma-direction * 7,
|
|
70
|
+
"8": $yma-direction * 8,
|
|
71
|
+
"9": $yma-direction * 9,
|
|
72
|
+
"10": $yma-direction * 10,
|
|
73
|
+
"11": $yma-direction * 11,
|
|
74
|
+
"12": $yma-direction * 12,
|
|
75
|
+
"13": $yma-direction * 13,
|
|
76
|
+
"14": $yma-direction * 14,
|
|
77
|
+
"15": $yma-direction * 15,
|
|
78
|
+
"16": $yma-direction * 16,
|
|
79
|
+
"none": none,
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
|
|
83
|
+
"left": (
|
|
84
|
+
"prefix": "dir-l",
|
|
85
|
+
"values": (
|
|
86
|
+
"0": $yma-direction * 0,
|
|
87
|
+
"1": $yma-direction,
|
|
88
|
+
"2": $yma-direction * 2,
|
|
89
|
+
"3": $yma-direction * 3,
|
|
90
|
+
"4": $yma-direction * 4,
|
|
91
|
+
"5": $yma-direction * 5,
|
|
92
|
+
"6": $yma-direction * 6,
|
|
93
|
+
"7": $yma-direction * 7,
|
|
94
|
+
"8": $yma-direction * 8,
|
|
95
|
+
"9": $yma-direction * 9,
|
|
96
|
+
"10": $yma-direction * 10,
|
|
97
|
+
"11": $yma-direction * 11,
|
|
98
|
+
"12": $yma-direction * 12,
|
|
99
|
+
"13": $yma-direction * 13,
|
|
100
|
+
"14": $yma-direction * 14,
|
|
101
|
+
"15": $yma-direction * 15,
|
|
102
|
+
"16": $yma-direction * 16,
|
|
103
|
+
"none": none,
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
|
|
107
|
+
"right": (
|
|
108
|
+
"prefix": "dir-r",
|
|
109
|
+
"values": (
|
|
110
|
+
"0": $yma-direction * 0,
|
|
111
|
+
"1": $yma-direction,
|
|
112
|
+
"2": $yma-direction * 2,
|
|
113
|
+
"3": $yma-direction * 3,
|
|
114
|
+
"4": $yma-direction * 4,
|
|
115
|
+
"5": $yma-direction * 5,
|
|
116
|
+
"6": $yma-direction * 6,
|
|
117
|
+
"7": $yma-direction * 7,
|
|
118
|
+
"8": $yma-direction * 8,
|
|
119
|
+
"9": $yma-direction * 9,
|
|
120
|
+
"10": $yma-direction * 10,
|
|
121
|
+
"11": $yma-direction * 11,
|
|
122
|
+
"12": $yma-direction * 12,
|
|
123
|
+
"13": $yma-direction * 13,
|
|
124
|
+
"14": $yma-direction * 14,
|
|
125
|
+
"15": $yma-direction * 15,
|
|
126
|
+
"16": $yma-direction * 16,
|
|
127
|
+
"none": none,
|
|
128
|
+
),
|
|
129
|
+
),
|
|
130
|
+
|
|
131
|
+
"top": (
|
|
132
|
+
"prefix": "dir-t",
|
|
133
|
+
"values": (
|
|
134
|
+
"0": $yma-direction * 0,
|
|
135
|
+
"1": $yma-direction,
|
|
136
|
+
"2": $yma-direction * 2,
|
|
137
|
+
"3": $yma-direction * 3,
|
|
138
|
+
"4": $yma-direction * 4,
|
|
139
|
+
"5": $yma-direction * 5,
|
|
140
|
+
"6": $yma-direction * 6,
|
|
141
|
+
"7": $yma-direction * 7,
|
|
142
|
+
"8": $yma-direction * 8,
|
|
143
|
+
"9": $yma-direction * 9,
|
|
144
|
+
"10": $yma-direction * 10,
|
|
145
|
+
"11": $yma-direction * 11,
|
|
146
|
+
"12": $yma-direction * 12,
|
|
147
|
+
"13": $yma-direction * 13,
|
|
148
|
+
"14": $yma-direction * 14,
|
|
149
|
+
"15": $yma-direction * 15,
|
|
150
|
+
"16": $yma-direction * 16,
|
|
151
|
+
"none": none,
|
|
152
|
+
),
|
|
153
|
+
),
|
|
154
|
+
|
|
155
|
+
"display": (
|
|
156
|
+
"prefix": "d",
|
|
157
|
+
"values": (
|
|
158
|
+
"b": block,
|
|
159
|
+
"f": flex,
|
|
160
|
+
"fr": flow-root,
|
|
161
|
+
"g": grid,
|
|
162
|
+
"i": inline,
|
|
163
|
+
"ib": inline-block,
|
|
164
|
+
"if": inline-flex,
|
|
165
|
+
"ig": inline-grid,
|
|
166
|
+
"it": inline-table,
|
|
167
|
+
"none": none,
|
|
168
|
+
"t": table,
|
|
169
|
+
),
|
|
170
|
+
),
|
|
171
|
+
|
|
172
|
+
"float": (
|
|
173
|
+
"prefix": "flo",
|
|
174
|
+
"values": (
|
|
175
|
+
"ie": inline-end,
|
|
176
|
+
"is": inline-start,
|
|
177
|
+
"l": left,
|
|
178
|
+
"none": none,
|
|
179
|
+
"r": right,
|
|
180
|
+
),
|
|
181
|
+
),
|
|
182
|
+
|
|
183
|
+
"object-fit": (
|
|
184
|
+
"prefix": "of",
|
|
185
|
+
"values": (
|
|
186
|
+
"c": cover,
|
|
187
|
+
"f": fill,
|
|
188
|
+
"none": none,
|
|
189
|
+
"sd": scale-down,
|
|
190
|
+
),
|
|
191
|
+
),
|
|
192
|
+
|
|
193
|
+
"object-position": (
|
|
194
|
+
"prefix": "op",
|
|
195
|
+
"values": (
|
|
196
|
+
"b": bottom,
|
|
197
|
+
"c": center,
|
|
198
|
+
"l": left,
|
|
199
|
+
"lb": left bottom,
|
|
200
|
+
"lt": left top,
|
|
201
|
+
"r": right,
|
|
202
|
+
"rb": right bottom,
|
|
203
|
+
"rt": right top,
|
|
204
|
+
"t": top,
|
|
205
|
+
),
|
|
206
|
+
),
|
|
207
|
+
|
|
208
|
+
"overflow": (
|
|
209
|
+
"prefix": "ovf",
|
|
210
|
+
"values": (
|
|
211
|
+
"auto": auto,
|
|
212
|
+
"c": clip,
|
|
213
|
+
"h": hidden,
|
|
214
|
+
"s": scroll,
|
|
215
|
+
"v": visible,
|
|
216
|
+
),
|
|
217
|
+
),
|
|
218
|
+
|
|
219
|
+
"overflow-x": (
|
|
220
|
+
"prefix": "ovf-x",
|
|
221
|
+
"values": (
|
|
222
|
+
"auto": auto,
|
|
223
|
+
"c": clip,
|
|
224
|
+
"h": hidden,
|
|
225
|
+
"s": scroll,
|
|
226
|
+
"v": visible,
|
|
227
|
+
),
|
|
228
|
+
),
|
|
229
|
+
|
|
230
|
+
"overflow-y": (
|
|
231
|
+
"prefix": "ovf-y",
|
|
232
|
+
"values": (
|
|
233
|
+
"auto": auto,
|
|
234
|
+
"c": clip,
|
|
235
|
+
"h": hidden,
|
|
236
|
+
"s": scroll,
|
|
237
|
+
"v": visible,
|
|
238
|
+
),
|
|
239
|
+
),
|
|
240
|
+
|
|
241
|
+
"position": (
|
|
242
|
+
"prefix": "p",
|
|
243
|
+
"values": (
|
|
244
|
+
"a": absolute,
|
|
245
|
+
"f": fixed,
|
|
246
|
+
"r": relative,
|
|
247
|
+
"s": static,
|
|
248
|
+
"st": sticky,
|
|
249
|
+
),
|
|
250
|
+
),
|
|
251
|
+
|
|
252
|
+
"z-index": (
|
|
253
|
+
"prefix": "zi",
|
|
254
|
+
"values": (
|
|
255
|
+
"0": 0,
|
|
256
|
+
"10": 10,
|
|
257
|
+
"20": 20,
|
|
258
|
+
"30": 30,
|
|
259
|
+
"40": 40,
|
|
260
|
+
"50": 50,
|
|
261
|
+
"60": 60,
|
|
262
|
+
"70": 70,
|
|
263
|
+
"80": 80,
|
|
264
|
+
"90": 90,
|
|
265
|
+
"auto": auto,
|
|
266
|
+
),
|
|
267
|
+
),
|
|
268
|
+
);
|
|
269
|
+
|
|
270
|
+
// base variants
|
|
271
|
+
@each $property, $map in $yma-layout-utils {
|
|
272
|
+
$prefix: map-get($map, "prefix");
|
|
273
|
+
$values: map-get($map, "values");
|
|
274
|
+
|
|
275
|
+
@each $k, $v in $values {
|
|
276
|
+
@if ($k == "default") {
|
|
277
|
+
.#{$prefix} {
|
|
278
|
+
#{$property}: $v;
|
|
279
|
+
}
|
|
280
|
+
} @else {
|
|
281
|
+
.#{$prefix}-#{$k} {
|
|
282
|
+
#{$property}: $v;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// hover variants
|
|
288
|
+
@each $k, $v in $values {
|
|
289
|
+
@if ($k == "default") {
|
|
290
|
+
.h\:#{$prefix}:hover {
|
|
291
|
+
#{$property}: $v;
|
|
292
|
+
}
|
|
293
|
+
} @else {
|
|
294
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
295
|
+
#{$property}: $v;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// responsive variants
|
|
301
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
302
|
+
@each $k, $v in $values {
|
|
303
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
304
|
+
@media (min-width: $bp-value) {
|
|
305
|
+
#{$property}: $v;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
$yma-outline-utils: (
|
|
4
|
+
"outline-offset": (
|
|
5
|
+
"prefix": "oo",
|
|
6
|
+
"values": (
|
|
7
|
+
"0": $yma-outline-offset * 0,
|
|
8
|
+
"1": $yma-outline-offset,
|
|
9
|
+
"2": $yma-outline-offset * 2,
|
|
10
|
+
"3": $yma-outline-offset * 3,
|
|
11
|
+
"4": $yma-outline-offset * 4,
|
|
12
|
+
),
|
|
13
|
+
),
|
|
14
|
+
|
|
15
|
+
"outline-style": (
|
|
16
|
+
"prefix": "os",
|
|
17
|
+
"values": (
|
|
18
|
+
"none": none,
|
|
19
|
+
"d": dashed,
|
|
20
|
+
"s": solid,
|
|
21
|
+
),
|
|
22
|
+
),
|
|
23
|
+
|
|
24
|
+
"outline-width": (
|
|
25
|
+
"prefix": "ow",
|
|
26
|
+
"values": (
|
|
27
|
+
"0": $yma-outline-width * 0,
|
|
28
|
+
"1": $yma-outline-width,
|
|
29
|
+
"2": $yma-outline-width * 2,
|
|
30
|
+
"3": $yma-outline-width * 3,
|
|
31
|
+
"4": $yma-outline-width * 4,
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
// base variants
|
|
37
|
+
@each $property, $map in $yma-outline-utils {
|
|
38
|
+
$prefix: map-get($map, "prefix");
|
|
39
|
+
$values: map-get($map, "values");
|
|
40
|
+
|
|
41
|
+
@each $k, $v in $values {
|
|
42
|
+
@if ($k == "default") {
|
|
43
|
+
.#{$prefix} {
|
|
44
|
+
#{$property}: $v;
|
|
45
|
+
}
|
|
46
|
+
} @else {
|
|
47
|
+
.#{$prefix}-#{$k} {
|
|
48
|
+
#{$property}: $v;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// hover variants
|
|
54
|
+
@each $k, $v in $values {
|
|
55
|
+
@if ($k == "default") {
|
|
56
|
+
.h\:#{$prefix}:hover {
|
|
57
|
+
#{$property}: $v;
|
|
58
|
+
}
|
|
59
|
+
} @else {
|
|
60
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
61
|
+
#{$property}: $v;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// responsive variants
|
|
67
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
68
|
+
@each $k, $v in $values {
|
|
69
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
70
|
+
@media (min-width: $bp-value) {
|
|
71
|
+
#{$property}: $v;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
$yma-table-utils: (
|
|
4
|
+
"caption-side": (
|
|
5
|
+
"prefix": "cs",
|
|
6
|
+
"values": (
|
|
7
|
+
"b": bottom,
|
|
8
|
+
"t": top,
|
|
9
|
+
),
|
|
10
|
+
),
|
|
11
|
+
|
|
12
|
+
"table-layout": (
|
|
13
|
+
"prefix": "tl",
|
|
14
|
+
"values": (
|
|
15
|
+
"auto": auto,
|
|
16
|
+
"f": fixed,
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
// base variants
|
|
22
|
+
@each $property, $map in $yma-table-utils {
|
|
23
|
+
$prefix: map-get($map, "prefix");
|
|
24
|
+
$values: map-get($map, "values");
|
|
25
|
+
|
|
26
|
+
@each $k, $v in $values {
|
|
27
|
+
@if ($k == "default") {
|
|
28
|
+
.#{$prefix} {
|
|
29
|
+
#{$property}: $v;
|
|
30
|
+
}
|
|
31
|
+
} @else {
|
|
32
|
+
.#{$prefix}-#{$k} {
|
|
33
|
+
#{$property}: $v;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// hover variants
|
|
39
|
+
@each $k, $v in $values {
|
|
40
|
+
@if ($k == "default") {
|
|
41
|
+
.h\:#{$prefix}:hover {
|
|
42
|
+
#{$property}: $v;
|
|
43
|
+
}
|
|
44
|
+
} @else {
|
|
45
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
46
|
+
#{$property}: $v;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// responsive variants
|
|
52
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
53
|
+
@each $k, $v in $values {
|
|
54
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
55
|
+
@media (min-width: $bp-value) {
|
|
56
|
+
#{$property}: $v;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
$yma-typography-utils: (
|
|
4
|
+
"font-size": (
|
|
5
|
+
"prefix": "fs",
|
|
6
|
+
"values": (
|
|
7
|
+
"xs": $yma-font-size-xs,
|
|
8
|
+
"b": 1rem,
|
|
9
|
+
"sm": $yma-font-size-sm,
|
|
10
|
+
"md": $yma-font-size-md,
|
|
11
|
+
"lg": $yma-font-size-lg,
|
|
12
|
+
"xl": $yma-font-size-xl,
|
|
13
|
+
"xxl": $yma-font-size-xxl,
|
|
14
|
+
"3xl": $yma-font-size-3xl,
|
|
15
|
+
"6xl": $yma-font-size-6xl,
|
|
16
|
+
"9xl": $yma-font-size-9xl,
|
|
17
|
+
),
|
|
18
|
+
),
|
|
19
|
+
|
|
20
|
+
"font-style": (
|
|
21
|
+
"prefix": "fs",
|
|
22
|
+
"values": (
|
|
23
|
+
"i": italic,
|
|
24
|
+
"n": normal,
|
|
25
|
+
),
|
|
26
|
+
),
|
|
27
|
+
|
|
28
|
+
"font-weight": (
|
|
29
|
+
"prefix": "fw",
|
|
30
|
+
"values": (
|
|
31
|
+
"100": 100,
|
|
32
|
+
"200": 200,
|
|
33
|
+
"300": 300,
|
|
34
|
+
"400": 400,
|
|
35
|
+
"500": 500,
|
|
36
|
+
"600": 600,
|
|
37
|
+
"700": 700,
|
|
38
|
+
"800": 800,
|
|
39
|
+
"900": 900,
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
|
|
43
|
+
"line-height": (
|
|
44
|
+
"prefix": "lh",
|
|
45
|
+
"values": (
|
|
46
|
+
"1": 1,
|
|
47
|
+
"2": 1.25,
|
|
48
|
+
"3": 1.375,
|
|
49
|
+
"4": 1.5,
|
|
50
|
+
"5": 1.625,
|
|
51
|
+
"6": 2,
|
|
52
|
+
),
|
|
53
|
+
),
|
|
54
|
+
|
|
55
|
+
"list-style-type": (
|
|
56
|
+
"prefix": "lst",
|
|
57
|
+
"values": (
|
|
58
|
+
"c": circle,
|
|
59
|
+
"d": disc,
|
|
60
|
+
"s": square,
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
|
|
64
|
+
"overflow-wrap": (
|
|
65
|
+
"prefix": "ow",
|
|
66
|
+
"values": (
|
|
67
|
+
"bw": break-word,
|
|
68
|
+
"n": normal,
|
|
69
|
+
),
|
|
70
|
+
),
|
|
71
|
+
|
|
72
|
+
"text-align": (
|
|
73
|
+
"prefix": "ta",
|
|
74
|
+
"values": (
|
|
75
|
+
"c": center,
|
|
76
|
+
"e": end,
|
|
77
|
+
"j": justify,
|
|
78
|
+
"ja": justify-all,
|
|
79
|
+
"l": left,
|
|
80
|
+
"mp": match-parent,
|
|
81
|
+
"r": right,
|
|
82
|
+
"s": start,
|
|
83
|
+
),
|
|
84
|
+
),
|
|
85
|
+
|
|
86
|
+
"text-decoration-line": (
|
|
87
|
+
"prefix": "tdl",
|
|
88
|
+
"values": (
|
|
89
|
+
"lt": line-through,
|
|
90
|
+
"none": none,
|
|
91
|
+
"o": overline,
|
|
92
|
+
"u": underline,
|
|
93
|
+
),
|
|
94
|
+
),
|
|
95
|
+
|
|
96
|
+
"text-decoration-style": (
|
|
97
|
+
"prefix": "tds",
|
|
98
|
+
"values": (
|
|
99
|
+
"d": dashed,
|
|
100
|
+
"h": hidden,
|
|
101
|
+
"none": none,
|
|
102
|
+
"s": solid,
|
|
103
|
+
),
|
|
104
|
+
),
|
|
105
|
+
|
|
106
|
+
"text-decoration-thickness": (
|
|
107
|
+
"prefix": "tdt",
|
|
108
|
+
"values": (
|
|
109
|
+
"0": $yma-decoration-thickness * 0,
|
|
110
|
+
"1": $yma-decoration-thickness,
|
|
111
|
+
"2": $yma-decoration-thickness * 2,
|
|
112
|
+
"3": $yma-decoration-thickness * 3,
|
|
113
|
+
"4": $yma-decoration-thickness * 4,
|
|
114
|
+
"auto": auto,
|
|
115
|
+
"ff": from-font,
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
|
|
119
|
+
"text-decoration": (
|
|
120
|
+
"prefix": "td",
|
|
121
|
+
"values": (
|
|
122
|
+
"none": none,
|
|
123
|
+
"u": underline,
|
|
124
|
+
),
|
|
125
|
+
),
|
|
126
|
+
);
|
|
127
|
+
|
|
128
|
+
// base variants
|
|
129
|
+
@each $property, $map in $yma-typography-utils {
|
|
130
|
+
$prefix: map-get($map, "prefix");
|
|
131
|
+
$values: map-get($map, "values");
|
|
132
|
+
|
|
133
|
+
@each $k, $v in $values {
|
|
134
|
+
@if ($k == "default") {
|
|
135
|
+
.#{$prefix} {
|
|
136
|
+
#{$property}: $v;
|
|
137
|
+
}
|
|
138
|
+
} @else {
|
|
139
|
+
.#{$prefix}-#{$k} {
|
|
140
|
+
#{$property}: $v;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// hover variants
|
|
146
|
+
@each $k, $v in $values {
|
|
147
|
+
@if ($k == "default") {
|
|
148
|
+
.h\:#{$prefix}:hover {
|
|
149
|
+
#{$property}: $v;
|
|
150
|
+
}
|
|
151
|
+
} @else {
|
|
152
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
153
|
+
#{$property}: $v;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// responsive variants
|
|
159
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
160
|
+
@each $k, $v in $values {
|
|
161
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
162
|
+
@media (min-width: $bp-value) {
|
|
163
|
+
#{$property}: $v;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
package/src/yumma.scss
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import "abstracts/variables";
|
|
2
|
+
@import "abstracts/theme";
|
|
3
|
+
@import "abstracts/functions";
|
|
4
|
+
@import "abstracts/mixins";
|
|
5
|
+
@import "abstracts/breakpoints";
|
|
6
|
+
@import "abstracts/layout";
|
|
7
|
+
@import "abstracts/colors";
|
|
8
|
+
@import "abstracts/extensions";
|
|
9
|
+
|
|
10
|
+
@import "utilities/borders";
|
|
11
|
+
@import "utilities/box-model";
|
|
12
|
+
@import "utilities/effects";
|
|
13
|
+
@import "utilities/filters";
|
|
14
|
+
@import "utilities/flexbox";
|
|
15
|
+
@import "utilities/grid";
|
|
16
|
+
@import "utilities/interactions";
|
|
17
|
+
@import "utilities/layout";
|
|
18
|
+
@import "utilities/outlines";
|
|
19
|
+
@import "utilities/tables";
|
|
20
|
+
@import "utilities/typography";
|
|
21
|
+
|
|
22
|
+
@import "fonts";
|
|
23
|
+
@import "base";
|
package/index.js
DELETED
package/yumma-css/_base.scss
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* Yumma CSS - https://yummacss.com */
|
|
2
|
-
|
|
3
|
-
*,
|
|
4
|
-
*::before,
|
|
5
|
-
*::after {
|
|
6
|
-
border-width: 0;
|
|
7
|
-
border-style: solid;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
* {
|
|
12
|
-
margin: 0;
|
|
13
|
-
color: inherit;
|
|
14
|
-
font-family: $yma-system-fonts;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body {
|
|
18
|
-
line-height: 1.5;
|
|
19
|
-
font-family: inherit;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
img,
|
|
23
|
-
picture,
|
|
24
|
-
video,
|
|
25
|
-
canvas,
|
|
26
|
-
svg {
|
|
27
|
-
display: block;
|
|
28
|
-
max-width: 100%;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
input,
|
|
32
|
-
button,
|
|
33
|
-
textarea,
|
|
34
|
-
select {
|
|
35
|
-
font: inherit;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
p,
|
|
39
|
-
h1,
|
|
40
|
-
h2,
|
|
41
|
-
h3,
|
|
42
|
-
h4,
|
|
43
|
-
h5,
|
|
44
|
-
h6 {
|
|
45
|
-
overflow-wrap: break-word;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
a {
|
|
49
|
-
text-decoration: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
ol,
|
|
53
|
-
ul {
|
|
54
|
-
padding: 0;
|
|
55
|
-
list-style: none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
hr {
|
|
59
|
-
border: 0;
|
|
60
|
-
margin: 1em 0;
|
|
61
|
-
border-top: $ym-colors-transparent;
|
|
62
|
-
}
|