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/gulpfile.js CHANGED
@@ -25,4 +25,4 @@ exports.buildStyles = buildStyles;
25
25
  exports.minifyStyles = minifyStyles;
26
26
  exports.watch = watchTask;
27
27
 
28
- exports.default = series(buildStyles, minifyStyles, watchTask);
28
+ exports.default = series(buildStyles, minifyStyles, watchTask);
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
- const packageJson = require('./package.json');
1
+ const pkg = require('./package.json');
2
2
 
3
3
  const showVer = () => {
4
- const version = packageJson.version;
4
+ const version = pkg.version;
5
5
  console.log(`You're running Yumma CSS v${version}!`);
6
6
  };
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yummacss",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "A CSS library for streamlined UI development.",
5
5
  "main": "index.js",
6
6
  "style": "dist/yumma.css",
@@ -1,13 +1,13 @@
1
1
  $breakpoints: (
2
- "xsm": 0,
2
+ "xs": 0,
3
3
  "sm": 480px,
4
4
  "md": 720px,
5
5
  "lg": 960px,
6
- "xlg": 1200px,
6
+ "xl": 1200px
7
7
  );
8
8
 
9
- @mixin xsm {
10
- @media (min-width: map-get($breakpoints, "xsm")) {
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 xlg {
34
- @media (min-width: map-get($breakpoints, "xlg")) {
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
+ }
@@ -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
 
@@ -1,19 +1,19 @@
1
1
  .ff-d {
2
- font-family: system-ui, sans-serif;
3
- font-weight: $base-font;
2
+ font-family: $base-system-fonts;
3
+ font-weight: $base-font-weight;
4
4
  }
5
5
 
6
6
  .ff-c {
7
- font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
8
- font-weight: $base-font;
7
+ font-family: $base-charter-fonts;
8
+ font-weight: $base-font-weight;
9
9
  }
10
10
 
11
11
  .ff-i {
12
- font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
13
- font-weight: $base-font;
12
+ font-family: $base-inter-fonts;
13
+ font-weight: $base-font-weight;
14
14
  }
15
15
 
16
16
  .ff-m {
17
- font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
18
- font-weight: $base-font;
19
- }
17
+ font-family: $base-monospace-fonts;
18
+ font-weight: $base-font-weight;
19
+ }
@@ -1,5 +1,5 @@
1
- @function light-comp($color){
1
+ @function light-comp($color) {
2
2
  $complement: complement($color);
3
3
  $light-complement: lighten($complement, 30%);
4
4
  @return $light-complement;
5
- }
5
+ }
@@ -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
- $v in $grid-gaps {
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 xsm {
27
+ @include xs {
29
28
  @for $i from 1 through $grid-columns {
30
- .col-#{$i}-xsm {
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}-sm {
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}-md {
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}-lg {
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 xlg {
67
+ @include xl {
69
68
  @for $i from 1 through $grid-columns {
70
- .col-#{$i}-xlg {
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
+ }
@@ -6,13 +6,13 @@
6
6
  box-sizing: border-box;
7
7
  }
8
8
 
9
- .row {
10
- display: flex;
11
- flex-flow: row wrap;
12
- }
13
-
14
9
  .ins {
15
10
  display: flex;
16
11
  align-items: center;
17
12
  justify-content: center;
13
+ }
14
+
15
+ .row {
16
+ display: flex;
17
+ flex-flow: row wrap;
18
18
  }