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,575 @@
|
|
|
1
|
+
@import "breakpoints";
|
|
2
|
+
|
|
3
|
+
@mixin color-variants($property, $prefix, $k, $v) {
|
|
4
|
+
.#{$prefix}-#{$k} {
|
|
5
|
+
#{$property}: $v;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.h\:#{$prefix}-#{$k} {
|
|
9
|
+
&:hover {
|
|
10
|
+
#{$property}: $v;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin shade-variants($property, $prefix, $k, $v, $mod) {
|
|
16
|
+
@for $i from 1 through 6 {
|
|
17
|
+
// light variants
|
|
18
|
+
.#{$prefix}-l-#{$k}-#{$i} {
|
|
19
|
+
#{$property}: mix(white, $v, $i * $mod);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.h\:#{$prefix}-l-#{$k}-#{$i} {
|
|
23
|
+
&:hover {
|
|
24
|
+
#{$property}: mix(white, $v, $i * $mod);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// dark variants
|
|
29
|
+
.#{$prefix}-d-#{$k}-#{$i} {
|
|
30
|
+
#{$property}: mix(black, $v, $i * $mod);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.h\:#{$prefix}-d-#{$k}-#{$i} {
|
|
34
|
+
&:hover {
|
|
35
|
+
#{$property}: mix(black, $v, $i * $mod);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin variants($property, $prefix, $unit) {
|
|
42
|
+
@for $i from 0 through 100 {
|
|
43
|
+
.#{$prefix}-#{$i} {
|
|
44
|
+
#{$property}: $i * $unit;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Hover variant
|
|
48
|
+
.h\:#{$prefix}-#{$i}:hover {
|
|
49
|
+
#{$property}: $i * $unit;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
53
|
+
.#{$bp}\:#{$prefix}-#{$i} {
|
|
54
|
+
@include breakpoint($bp-value) {
|
|
55
|
+
#{$property}: $i * $unit;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Responsive hover variant
|
|
60
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover {
|
|
61
|
+
@include breakpoint($bp-value) {
|
|
62
|
+
#{$property}: $i * $unit;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin dimension-variants($prefix, $height-unit, $width-unit) {
|
|
70
|
+
@for $i from 0 through 100 {
|
|
71
|
+
.#{$prefix}-#{$i} {
|
|
72
|
+
height: $i * $height-unit;
|
|
73
|
+
width: $i * $width-unit;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Hover variant
|
|
77
|
+
.h\:#{$prefix}-#{$i}:hover {
|
|
78
|
+
height: $i * $height-unit;
|
|
79
|
+
width: $i * $width-unit;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
83
|
+
.#{$bp}\:#{$prefix}-#{$i} {
|
|
84
|
+
@include breakpoint($bp-value) {
|
|
85
|
+
height: $i * $height-unit;
|
|
86
|
+
width: $i * $width-unit;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Responsive hover variant
|
|
91
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover {
|
|
92
|
+
@include breakpoint($bp-value) {
|
|
93
|
+
height: $i * $height-unit;
|
|
94
|
+
width: $i * $width-unit;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@mixin x-axis-variants($property, $prefix, $unit) {
|
|
102
|
+
@for $i from 0 through 100 {
|
|
103
|
+
.#{$prefix}-#{$i} {
|
|
104
|
+
#{$property}-left: $i * $unit;
|
|
105
|
+
#{$property}-right: $i * $unit;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Hover variant
|
|
109
|
+
.h\:#{$prefix}-#{$i}:hover {
|
|
110
|
+
#{$property}-left: $i * $unit;
|
|
111
|
+
#{$property}-right: $i * $unit;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Responsive variant
|
|
115
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
116
|
+
.#{$bp}\:#{$prefix}-#{$i} {
|
|
117
|
+
@include breakpoint($bp-value) {
|
|
118
|
+
#{$property}-left: $i * $unit;
|
|
119
|
+
#{$property}-right: $i * $unit;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Responsive hover variant
|
|
124
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover {
|
|
125
|
+
@include breakpoint($bp-value) {
|
|
126
|
+
#{$property}-left: $i * $unit;
|
|
127
|
+
#{$property}-right: $i * $unit;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin y-axis-variants($property, $prefix, $unit) {
|
|
135
|
+
@for $i from 0 through 100 {
|
|
136
|
+
.#{$prefix}-#{$i} {
|
|
137
|
+
#{$property}-top: $i * $unit;
|
|
138
|
+
#{$property}-bottom: $i * $unit;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Hover variant
|
|
142
|
+
.h\:#{$prefix}-#{$i}:hover {
|
|
143
|
+
#{$property}-top: $i * $unit;
|
|
144
|
+
#{$property}-bottom: $i * $unit;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Responsive hover variant
|
|
148
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
149
|
+
.#{$bp}\:#{$prefix}-#{$i} {
|
|
150
|
+
@include breakpoint($bp-value) {
|
|
151
|
+
#{$property}-top: $i * $unit;
|
|
152
|
+
#{$property}-bottom: $i * $unit;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Responsive hover variant
|
|
157
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover {
|
|
158
|
+
@include breakpoint($bp-value) {
|
|
159
|
+
#{$property}-top: $i * $unit;
|
|
160
|
+
#{$property}-bottom: $i * $unit;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@mixin spacing-x($prefix, $unit) {
|
|
168
|
+
@for $i from 0 through 100 {
|
|
169
|
+
.#{$prefix}-#{$i} > :not([hidden]) ~ :not([hidden]) {
|
|
170
|
+
margin-left: calc(#{$i * $unit} * calc(1 - 0));
|
|
171
|
+
margin-right: calc(#{$i * $unit} * 0);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.h\:#{$prefix}-#{$i}:hover > :not([hidden]) ~ :not([hidden]) {
|
|
175
|
+
margin-left: calc(#{$i * $unit} * calc(1 - 0));
|
|
176
|
+
margin-right: calc(#{$i * $unit} * 0);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
180
|
+
.#{$bp}\:#{$prefix}-#{$i} > :not([hidden]) ~ :not([hidden]) {
|
|
181
|
+
@include breakpoint($bp-value) {
|
|
182
|
+
margin-left: calc(#{$i * $unit} * calc(1 - 0));
|
|
183
|
+
margin-right: calc(#{$i * $unit} * 0);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover > :not([hidden]) ~ :not([hidden]) {
|
|
188
|
+
@include breakpoint($bp-value) {
|
|
189
|
+
margin-left: calc(#{$i * $unit} * calc(1 - 0));
|
|
190
|
+
margin-right: calc(#{$i * $unit} * 0);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@mixin spacing-y($prefix, $unit) {
|
|
198
|
+
@for $i from 0 through 100 {
|
|
199
|
+
.#{$prefix}-#{$i} > :not([hidden]) ~ :not([hidden]) {
|
|
200
|
+
margin-top: calc(#{$i * $unit} * calc(1 - 0));
|
|
201
|
+
margin-bottom: calc(#{$i * $unit} * 0);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.h\:#{$prefix}-#{$i}:hover > :not([hidden]) ~ :not([hidden]) {
|
|
205
|
+
margin-top: calc(#{$i * $unit} * calc(1 - 0));
|
|
206
|
+
margin-bottom: calc(#{$i * $unit} * 0);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
210
|
+
.#{$bp}\:#{$prefix}-#{$i} > :not([hidden]) ~ :not([hidden]) {
|
|
211
|
+
@include breakpoint($bp-value) {
|
|
212
|
+
margin-top: calc(#{$i * $unit} * calc(1 - 0));
|
|
213
|
+
margin-bottom: calc(#{$i * $unit} * 0);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.h\:#{$bp}\:#{$prefix}-#{$i}:hover > :not([hidden]) ~ :not([hidden]) {
|
|
218
|
+
@include breakpoint($bp-value) {
|
|
219
|
+
margin-top: calc(#{$i * $unit} * calc(1 - 0));
|
|
220
|
+
margin-bottom: calc(#{$i * $unit} * 0);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// Utility extensions
|
|
228
|
+
@mixin extensions($map, $prefixes) {
|
|
229
|
+
@each $k, $v in $map {
|
|
230
|
+
@each $prefix, $property in $prefixes {
|
|
231
|
+
.#{$prefix}-#{$k} {
|
|
232
|
+
#{$property}: $v;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Hover variant
|
|
236
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
237
|
+
#{$property}: $v;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// Responsive hover variant
|
|
241
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
242
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
243
|
+
@include breakpoint($bp-value) {
|
|
244
|
+
#{$property}: $v;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Responsive hover variant
|
|
249
|
+
.h\:#{$bp}\:#{$prefix}-#{$k}:hover {
|
|
250
|
+
@include breakpoint($bp-value) {
|
|
251
|
+
#{$property}: $v;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@mixin dimension-extensions($map) {
|
|
260
|
+
@each $k, $v in $map {
|
|
261
|
+
.dim-#{$k} {
|
|
262
|
+
height: $v;
|
|
263
|
+
width: $v;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.h\:dim-#{$k}:hover {
|
|
267
|
+
height: $v;
|
|
268
|
+
width: $v;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.max-dim-#{$k} {
|
|
272
|
+
max-height: $v;
|
|
273
|
+
max-width: $v;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.h\:max-dim-#{$k}:hover {
|
|
277
|
+
max-height: $v;
|
|
278
|
+
max-width: $v;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.min-dim-#{$k} {
|
|
282
|
+
min-height: $v;
|
|
283
|
+
min-width: $v;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.h\:min-dim-#{$k}:hover {
|
|
287
|
+
min-height: $v;
|
|
288
|
+
min-width: $v;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
292
|
+
.#{$bp}\:dim-#{$k} {
|
|
293
|
+
@include breakpoint($bp-value) {
|
|
294
|
+
height: $v;
|
|
295
|
+
width: $v;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.h\:#{$bp}\:dim-#{$k}:hover {
|
|
300
|
+
@include breakpoint($bp-value) {
|
|
301
|
+
height: $v;
|
|
302
|
+
width: $v;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.#{$bp}\:max-dim-#{$k} {
|
|
307
|
+
@include breakpoint($bp-value) {
|
|
308
|
+
max-height: $v;
|
|
309
|
+
max-width: $v;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.h\:#{$bp}\:max-dim-#{$k}:hover {
|
|
314
|
+
@include breakpoint($bp-value) {
|
|
315
|
+
max-height: $v;
|
|
316
|
+
max-width: $v;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.#{$bp}\:min-dim-#{$k} {
|
|
321
|
+
@include breakpoint($bp-value) {
|
|
322
|
+
min-height: $v;
|
|
323
|
+
min-width: $v;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.h\:#{$bp}\:min-dim-#{$k}:hover {
|
|
328
|
+
@include breakpoint($bp-value) {
|
|
329
|
+
min-height: $v;
|
|
330
|
+
min-width: $v;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
@mixin box-model-extensions($map, $prefixes, $property) {
|
|
338
|
+
@each $k, $v in $map {
|
|
339
|
+
@if $k == "auto" {
|
|
340
|
+
@each $prefix in $prefixes {
|
|
341
|
+
.#{$prefix}-#{$k} {
|
|
342
|
+
#{$property}: $v;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.h\:#{$prefix}-#{$k}:hover {
|
|
346
|
+
#{$property}: $v;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.mx-#{$k} {
|
|
351
|
+
margin-left: $v;
|
|
352
|
+
margin-right: $v;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.h\:mx-#{$k}:hover {
|
|
356
|
+
margin-left: $v;
|
|
357
|
+
margin-right: $v;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.px-#{$k} {
|
|
361
|
+
padding-left: $v;
|
|
362
|
+
padding-right: $v;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.h\:px-#{$k}:hover {
|
|
366
|
+
padding-left: $v;
|
|
367
|
+
padding-right: $v;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.my-#{$k} {
|
|
371
|
+
margin-bottom: $v;
|
|
372
|
+
margin-top: $v;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.h\:my-#{$k}:hover {
|
|
376
|
+
margin-bottom: $v;
|
|
377
|
+
margin-top: $v;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.py-#{$k} {
|
|
381
|
+
padding-bottom: $v;
|
|
382
|
+
padding-top: $v;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.h\:py-#{$k}:hover {
|
|
386
|
+
padding-bottom: $v;
|
|
387
|
+
padding-top: $v;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
391
|
+
@each $prefix in $prefixes {
|
|
392
|
+
.#{$bp}\:#{$prefix}-#{$k} {
|
|
393
|
+
@include breakpoint($bp-value) {
|
|
394
|
+
#{$property}: $v;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.h\:#{$bp}\:#{$prefix}-#{$k}:hover {
|
|
399
|
+
@include breakpoint($bp-value) {
|
|
400
|
+
#{$property}: $v;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.#{$bp}\:mx-#{$k} {
|
|
406
|
+
@include breakpoint($bp-value) {
|
|
407
|
+
margin-left: $v;
|
|
408
|
+
margin-right: $v;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.h\:#{$bp}\:mx-#{$k}:hover {
|
|
413
|
+
@include breakpoint($bp-value) {
|
|
414
|
+
margin-left: $v;
|
|
415
|
+
margin-right: $v;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.#{$bp}\:px-#{$k} {
|
|
420
|
+
@include breakpoint($bp-value) {
|
|
421
|
+
padding-left: $v;
|
|
422
|
+
padding-right: $v;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.h\:#{$bp}\:px-#{$k}:hover {
|
|
427
|
+
@include breakpoint($bp-value) {
|
|
428
|
+
padding-left: $v;
|
|
429
|
+
padding-right: $v;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.#{$bp}\:my-#{$k} {
|
|
434
|
+
@include breakpoint($bp-value) {
|
|
435
|
+
margin-bottom: $v;
|
|
436
|
+
margin-top: $v;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.h\:#{$bp}\:my-#{$k}:hover {
|
|
441
|
+
@include breakpoint($bp-value) {
|
|
442
|
+
margin-bottom: $v;
|
|
443
|
+
margin-top: $v;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.#{$bp}\:py-#{$k} {
|
|
448
|
+
@include breakpoint($bp-value) {
|
|
449
|
+
padding-bottom: $v;
|
|
450
|
+
padding-top: $v;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.h\:#{$bp}\:py-#{$k}:hover {
|
|
455
|
+
@include breakpoint($bp-value) {
|
|
456
|
+
padding-bottom: $v;
|
|
457
|
+
padding-top: $v;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
@mixin height-extensions($map) {
|
|
466
|
+
@each $k, $v in $map {
|
|
467
|
+
.h-#{$k} {
|
|
468
|
+
height: $v;
|
|
469
|
+
}
|
|
470
|
+
.h\:h-#{$k}:hover {
|
|
471
|
+
height: $v;
|
|
472
|
+
}
|
|
473
|
+
.max-h-#{$k} {
|
|
474
|
+
max-height: $v;
|
|
475
|
+
}
|
|
476
|
+
.h\:max-h-#{$k}:hover {
|
|
477
|
+
max-height: $v;
|
|
478
|
+
}
|
|
479
|
+
.min-h-#{$k} {
|
|
480
|
+
min-height: $v;
|
|
481
|
+
}
|
|
482
|
+
.h\:min-h-#{$k}:hover {
|
|
483
|
+
min-height: $v;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
487
|
+
.#{$bp}\:h-#{$k} {
|
|
488
|
+
@include breakpoint($bp-value) {
|
|
489
|
+
height: $v;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
.h\:#{$bp}\:h-#{$k}:hover {
|
|
493
|
+
@include breakpoint($bp-value) {
|
|
494
|
+
height: $v;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
.#{$bp}\:max-h-#{$k} {
|
|
498
|
+
@include breakpoint($bp-value) {
|
|
499
|
+
max-height: $v;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
.h\:#{$bp}\:max-h-#{$k}:hover {
|
|
503
|
+
@include breakpoint($bp-value) {
|
|
504
|
+
max-height: $v;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
.#{$bp}\:min-h-#{$k} {
|
|
508
|
+
@include breakpoint($bp-value) {
|
|
509
|
+
min-height: $v;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
.h\:#{$bp}\:min-h-#{$k}:hover {
|
|
513
|
+
@include breakpoint($bp-value) {
|
|
514
|
+
min-height: $v;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@mixin width-extensions($map) {
|
|
522
|
+
@each $k, $v in $map {
|
|
523
|
+
.w-#{$k} {
|
|
524
|
+
width: $v;
|
|
525
|
+
}
|
|
526
|
+
.h\:w-#{$k}:hover {
|
|
527
|
+
width: $v;
|
|
528
|
+
}
|
|
529
|
+
.max-w-#{$k} {
|
|
530
|
+
max-width: $v;
|
|
531
|
+
}
|
|
532
|
+
.h\:max-w-#{$k}:hover {
|
|
533
|
+
max-width: $v;
|
|
534
|
+
}
|
|
535
|
+
.min-w-#{$k} {
|
|
536
|
+
min-width: $v;
|
|
537
|
+
}
|
|
538
|
+
.h\:min-w-#{$k}:hover {
|
|
539
|
+
min-width: $v;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
@each $bp, $bp-value in $yma-breakpoints {
|
|
543
|
+
.#{$bp}\:w-#{$k} {
|
|
544
|
+
@include breakpoint($bp-value) {
|
|
545
|
+
width: $v;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
.h\:#{$bp}\:w-#{$k}:hover {
|
|
549
|
+
@include breakpoint($bp-value) {
|
|
550
|
+
width: $v;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
.#{$bp}\:max-w-#{$k} {
|
|
554
|
+
@include breakpoint($bp-value) {
|
|
555
|
+
max-width: $v;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
.h\:#{$bp}\:max-w-#{$k}:hover {
|
|
559
|
+
@include breakpoint($bp-value) {
|
|
560
|
+
max-width: $v;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
.#{$bp}\:min-w-#{$k} {
|
|
564
|
+
@include breakpoint($bp-value) {
|
|
565
|
+
min-width: $v;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
.h\:#{$bp}\:min-w-#{$k}:hover {
|
|
569
|
+
@include breakpoint($bp-value) {
|
|
570
|
+
min-width: $v;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$yma-theme: (
|
|
2
|
+
"red": $yma-color-red,
|
|
3
|
+
"orange": $yma-color-orange,
|
|
4
|
+
"yellow": $yma-color-yellow,
|
|
5
|
+
"green": $yma-color-green,
|
|
6
|
+
"teal": $yma-color-teal,
|
|
7
|
+
"cyan": $yma-color-cyan,
|
|
8
|
+
"blue": $yma-color-blue,
|
|
9
|
+
"indigo": $yma-color-indigo,
|
|
10
|
+
"violet": $yma-color-violet,
|
|
11
|
+
"pink": $yma-color-pink,
|
|
12
|
+
"silver": $yma-color-silver,
|
|
13
|
+
"gray": $yma-color-gray,
|
|
14
|
+
"lead": $yma-color-lead,
|
|
15
|
+
"black": $yma-color-black,
|
|
16
|
+
"white": $yma-color-white,
|
|
17
|
+
"transparent": $yma-color-transparent,
|
|
18
|
+
);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// base colors
|
|
2
|
+
$yma-color-red: #d73d3d;
|
|
3
|
+
$yma-color-orange: #e06814;
|
|
4
|
+
$yma-color-yellow: #d3a107;
|
|
5
|
+
$yma-color-green: #1fb155;
|
|
6
|
+
$yma-color-teal: #12a695;
|
|
7
|
+
$yma-color-cyan: #05a4bf;
|
|
8
|
+
$yma-color-blue: #3575dd;
|
|
9
|
+
$yma-color-indigo: #595cd9;
|
|
10
|
+
$yma-color-violet: #7d53dd;
|
|
11
|
+
$yma-color-pink: #d4418a;
|
|
12
|
+
$yma-color-silver: #bfc2c7;
|
|
13
|
+
$yma-color-gray: #606773;
|
|
14
|
+
$yma-color-lead: #3f3f4e;
|
|
15
|
+
$yma-color-black: black;
|
|
16
|
+
$yma-color-white: white;
|
|
17
|
+
$yma-color-transparent: transparent;
|
|
18
|
+
|
|
19
|
+
// borders
|
|
20
|
+
$yma-border: 1px;
|
|
21
|
+
$yma-border-radius: 0.25rem;
|
|
22
|
+
|
|
23
|
+
// outlines
|
|
24
|
+
$yma-outline-offset: 1px;
|
|
25
|
+
$yma-outline-width: 1px;
|
|
26
|
+
$yma-decoration-thickness: 1px;
|
|
27
|
+
|
|
28
|
+
// box model
|
|
29
|
+
$yma-height: 0.25rem;
|
|
30
|
+
$yma-width: 0.25rem;
|
|
31
|
+
$yma-padding: 0.25rem;
|
|
32
|
+
$yma-margin: 0.25rem;
|
|
33
|
+
$yma-spacing: 0.25rem;
|
|
34
|
+
|
|
35
|
+
// effects
|
|
36
|
+
$yma-backdrop-blur: 4px;
|
|
37
|
+
|
|
38
|
+
// filters
|
|
39
|
+
$yma-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
|
|
40
|
+
|
|
41
|
+
// flexbox
|
|
42
|
+
$yma-flex-basis: 0.25rem;
|
|
43
|
+
|
|
44
|
+
// grid
|
|
45
|
+
$yma-gap: 0.25rem;
|
|
46
|
+
$yma-column-gap: 0.25rem;
|
|
47
|
+
$yma-row-gap: 0.25rem;
|
|
48
|
+
|
|
49
|
+
// layout
|
|
50
|
+
$yma-direction: 0.25;
|
|
51
|
+
|
|
52
|
+
// typography
|
|
53
|
+
$yma-font-size: 0.75rem;
|
|
54
|
+
$yma-font-weight: 500;
|
|
55
|
+
$yma-font-size-xs: $yma-font-size;
|
|
56
|
+
$yma-font-size-b: 1rem;
|
|
57
|
+
$yma-font-size-sm: $yma-font-size * 2;
|
|
58
|
+
$yma-font-size-md: $yma-font-size * 3;
|
|
59
|
+
$yma-font-size-lg: $yma-font-size * 4;
|
|
60
|
+
$yma-font-size-xl: $yma-font-size * 5;
|
|
61
|
+
$yma-font-size-xxl: $yma-font-size * 6;
|
|
62
|
+
$yma-font-size-3xl: $yma-font-size * 7;
|
|
63
|
+
$yma-font-size-6xl: $yma-font-size * 8;
|
|
64
|
+
$yma-font-size-9xl: $yma-font-size * 9;
|
|
65
|
+
|
|
66
|
+
$yma-font-charter: Charter, Cambria, serif;
|
|
67
|
+
$yma-font-mono: ui-monospace, Consolas, monospace;
|
|
68
|
+
$yma-font-system: system-ui, sans-serif;
|
package/src/core.scss
ADDED