yummacss 1.0.3 → 1.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/CHANGELOG.md +22 -0
- package/README.md +7 -7
- package/dist/yumma.css +42920 -437
- package/dist/yumma.min.css +1 -1
- package/gulpfile.js +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
- package/yumma-css/_breakpoints.scss +8 -8
- package/yumma-css/_colors.scss +14 -2
- package/yumma-css/_fonts.scss +9 -9
- package/yumma-css/_functions.scss +2 -2
- package/yumma-css/_grid.scss +11 -12
- package/yumma-css/_layout.scss +5 -5
- package/yumma-css/{_utilities.scss → _utils.scss} +308 -70
- package/yumma-css/_variables.scss +28 -24
- package/yumma-css/components/_button.scss +3 -2
- package/yumma-css/components/_card.scss +1 -1
- package/yumma-css/index.scss +13 -13
package/gulpfile.js
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
$breakpoints: (
|
|
2
|
-
"
|
|
2
|
+
"xs": 0,
|
|
3
3
|
"sm": 480px,
|
|
4
4
|
"md": 720px,
|
|
5
5
|
"lg": 960px,
|
|
6
|
-
"
|
|
6
|
+
"xl": 1200px
|
|
7
7
|
);
|
|
8
8
|
|
|
9
|
-
@mixin
|
|
10
|
-
@media (min-width: map-get($breakpoints, "
|
|
9
|
+
@mixin xs {
|
|
10
|
+
@media (min-width: map-get($breakpoints, "xs")) {
|
|
11
11
|
@content;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -30,14 +30,14 @@ $breakpoints: (
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
@mixin
|
|
34
|
-
@media (min-width: map-get($breakpoints, "
|
|
33
|
+
@mixin xl {
|
|
34
|
+
@media (min-width: map-get($breakpoints, "xl")) {
|
|
35
35
|
@content;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
@mixin breakpoint($bp: 0) {
|
|
40
|
-
@media(min-width: $bp) {
|
|
40
|
+
@media (min-width: $bp) {
|
|
41
41
|
@content;
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
}
|
package/yumma-css/_colors.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@each $k, $v in $base-colors {
|
|
2
|
+
|
|
2
3
|
// backgrounds
|
|
3
4
|
.bg-#{$k} {
|
|
4
5
|
background-color: $v;
|
|
@@ -103,7 +104,18 @@
|
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
|
|
107
|
+
.td-#{$k} {
|
|
108
|
+
text-decoration-color: $v;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.h\:td-#{$k} {
|
|
112
|
+
&:hover {
|
|
113
|
+
text-decoration-color: $v;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
@if ($v !=black and $v !=white) {
|
|
118
|
+
|
|
107
119
|
// light variations
|
|
108
120
|
@for $i from 1 through 6 {
|
|
109
121
|
.bg-l-#{$k}-#{$i} {
|
|
@@ -200,7 +212,7 @@
|
|
|
200
212
|
caret-color: mix(white, $v, $i * 10%);
|
|
201
213
|
}
|
|
202
214
|
|
|
203
|
-
.h\:cc-#{$k}-#{$i} {
|
|
215
|
+
.h\:cc-l-#{$k}-#{$i} {
|
|
204
216
|
&:hover {
|
|
205
217
|
caret-color: mix(white, $v, $i * 10%);
|
|
206
218
|
}
|
|
@@ -299,7 +311,7 @@
|
|
|
299
311
|
}
|
|
300
312
|
}
|
|
301
313
|
|
|
302
|
-
.cc-#{$k}-#{$i} {
|
|
314
|
+
.cc-d-#{$k}-#{$i} {
|
|
303
315
|
caret-color: mix(black, $v, $i * 10%);
|
|
304
316
|
}
|
|
305
317
|
|
package/yumma-css/_fonts.scss
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.ff-d {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
font-family: $base-system-fonts;
|
|
3
|
+
font-weight: $base-font-weight;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.ff-c {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
font-family: $base-charter-fonts;
|
|
8
|
+
font-weight: $base-font-weight;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.ff-i {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
font-family: $base-inter-fonts;
|
|
13
|
+
font-weight: $base-font-weight;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ff-m {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
17
|
+
font-family: $base-monospace-fonts;
|
|
18
|
+
font-weight: $base-font-weight;
|
|
19
|
+
}
|
package/yumma-css/_grid.scss
CHANGED
|
@@ -9,12 +9,11 @@ $grid-gaps: (
|
|
|
9
9
|
"3": 30px,
|
|
10
10
|
"4": 40px,
|
|
11
11
|
"5": 50px,
|
|
12
|
-
"6": 60px
|
|
12
|
+
"6": 60px
|
|
13
13
|
);
|
|
14
14
|
|
|
15
|
-
@each $k,
|
|
16
|
-
$
|
|
17
|
-
.gap-#{$k}>* {
|
|
15
|
+
@each $k, $v in $grid-gaps {
|
|
16
|
+
.gap-#{$k} > * {
|
|
18
17
|
padding: $v;
|
|
19
18
|
}
|
|
20
19
|
|
|
@@ -25,9 +24,9 @@ $v in $grid-gaps {
|
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
// column classes
|
|
28
|
-
@include
|
|
27
|
+
@include xs {
|
|
29
28
|
@for $i from 1 through $grid-columns {
|
|
30
|
-
.col-#{$i}
|
|
29
|
+
.xs\:col-#{$i} {
|
|
31
30
|
box-sizing: border-box;
|
|
32
31
|
flex-grow: 0;
|
|
33
32
|
width: math.div($i * 100%, $grid-columns);
|
|
@@ -37,7 +36,7 @@ $v in $grid-gaps {
|
|
|
37
36
|
|
|
38
37
|
@include sm {
|
|
39
38
|
@for $i from 1 through $grid-columns {
|
|
40
|
-
.col-#{$i}
|
|
39
|
+
.sm\:col-#{$i} {
|
|
41
40
|
box-sizing: border-box;
|
|
42
41
|
flex-grow: 0;
|
|
43
42
|
width: math.div($i * 100%, $grid-columns);
|
|
@@ -47,7 +46,7 @@ $v in $grid-gaps {
|
|
|
47
46
|
|
|
48
47
|
@include md {
|
|
49
48
|
@for $i from 1 through $grid-columns {
|
|
50
|
-
.col-#{$i}
|
|
49
|
+
.md\:col-#{$i} {
|
|
51
50
|
box-sizing: border-box;
|
|
52
51
|
flex-grow: 0;
|
|
53
52
|
width: math.div($i * 100%, $grid-columns);
|
|
@@ -57,7 +56,7 @@ $v in $grid-gaps {
|
|
|
57
56
|
|
|
58
57
|
@include lg {
|
|
59
58
|
@for $i from 1 through $grid-columns {
|
|
60
|
-
.col-#{$i}
|
|
59
|
+
.lg\:col-#{$i} {
|
|
61
60
|
box-sizing: border-box;
|
|
62
61
|
flex-grow: 0;
|
|
63
62
|
width: math.div($i * 100%, $grid-columns);
|
|
@@ -65,12 +64,12 @@ $v in $grid-gaps {
|
|
|
65
64
|
}
|
|
66
65
|
}
|
|
67
66
|
|
|
68
|
-
@include
|
|
67
|
+
@include xl {
|
|
69
68
|
@for $i from 1 through $grid-columns {
|
|
70
|
-
.col-#{$i}
|
|
69
|
+
.xl\:col-#{$i} {
|
|
71
70
|
box-sizing: border-box;
|
|
72
71
|
flex-grow: 0;
|
|
73
72
|
width: math.div($i * 100%, $grid-columns);
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
}
|
|
75
|
+
}
|
package/yumma-css/_layout.scss
CHANGED