yummacss 0.2.0 → 1.0.1
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 +59 -0
- package/LICENSE +1 -1
- package/README.md +8 -8
- package/dist/yumma.css +12965 -7426
- package/gulpfile.js +2 -2
- package/index.js +3 -3
- package/package.json +2 -2
- package/public/css/yumma.min.css +1 -1
- package/yumma-css/_base.scss +13 -7
- package/yumma-css/_colors.scss +56 -25
- package/yumma-css/_fonts.scss +19 -0
- package/yumma-css/_grid.scss +1 -36
- package/yumma-css/_layout.scss +18 -0
- package/yumma-css/_utilities.scss +796 -431
- package/yumma-css/_variables.scss +53 -36
- package/yumma-css/components/_badge.scss +6 -7
- package/yumma-css/components/_navbar.scss +3 -7
- package/yumma-css/index.scss +3 -1
|
@@ -1,51 +1,68 @@
|
|
|
1
|
-
//
|
|
1
|
+
// default colors
|
|
2
2
|
$base-colors: (
|
|
3
|
-
"red":
|
|
4
|
-
"orange":
|
|
5
|
-
"yellow":
|
|
6
|
-
"green":
|
|
7
|
-
"teal":
|
|
8
|
-
"aqua":
|
|
9
|
-
"blue":
|
|
10
|
-
"violet":
|
|
11
|
-
"magenta":
|
|
12
|
-
"pink":
|
|
13
|
-
"gray":
|
|
3
|
+
"red": rgb(242, 109, 80),
|
|
4
|
+
"orange": rgb(246, 142, 85),
|
|
5
|
+
"yellow": rgb(255, 244, 103),
|
|
6
|
+
"green": rgb(59, 184, 120),
|
|
7
|
+
"teal": rgb(26, 187, 180),
|
|
8
|
+
"aqua": rgb(0, 191, 243),
|
|
9
|
+
"blue": rgb(67, 140, 202),
|
|
10
|
+
"violet": rgb(133, 95, 168),
|
|
11
|
+
"magenta": rgb(168, 99, 168),
|
|
12
|
+
"pink": rgb(240, 110, 169),
|
|
13
|
+
"gray": rgb(153, 153, 153),
|
|
14
|
+
"lead": rgb(63, 63, 78),
|
|
14
15
|
"black": black,
|
|
15
|
-
"white": white
|
|
16
|
+
"white": white
|
|
16
17
|
) !default;
|
|
17
18
|
|
|
18
|
-
//
|
|
19
|
-
$base-columns: 1 !default;
|
|
20
|
-
|
|
21
|
-
// directions
|
|
22
|
-
$base-direction: 1px !default;
|
|
23
|
-
|
|
24
|
-
// borders
|
|
19
|
+
//borders & background
|
|
25
20
|
$base-border-thickness: 1px !default;
|
|
26
21
|
$base-border: 1px !default;
|
|
27
22
|
$base-border-radius: 8px !default;
|
|
28
|
-
|
|
29
|
-
// effect
|
|
30
23
|
$base-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1) !default;
|
|
31
24
|
|
|
32
|
-
//
|
|
33
|
-
$base-
|
|
34
|
-
$
|
|
35
|
-
$
|
|
36
|
-
$
|
|
37
|
-
$
|
|
25
|
+
// box model
|
|
26
|
+
$base-height: 0.25rem !default;
|
|
27
|
+
$base-width: 0.25rem !default;
|
|
28
|
+
$base-padding: 0.75rem !default;
|
|
29
|
+
$base-margin: 0.75rem !default;
|
|
30
|
+
$base-flex-basis: 1rem !default;
|
|
31
|
+
$base-flex-grow: 1 !default;
|
|
32
|
+
$base-flex-shrink: 1 !default;
|
|
38
33
|
|
|
39
|
-
// grid
|
|
34
|
+
// flexbox & grid
|
|
40
35
|
$base-column-gap: 0.25rem !default;
|
|
41
|
-
$base-
|
|
36
|
+
$base-flex: 1 !default;
|
|
42
37
|
$base-template-columns: 0.25rem !default;
|
|
43
38
|
$base-template-rows: 0.25rem !default;
|
|
39
|
+
$base-row-gap: 0.25rem !default;
|
|
44
40
|
|
|
45
|
-
//
|
|
46
|
-
$base-
|
|
47
|
-
$base-
|
|
41
|
+
// positioning
|
|
42
|
+
$base-columns: 1 !default;
|
|
43
|
+
$base-direction: 1px !default;
|
|
48
44
|
|
|
49
|
-
//
|
|
50
|
-
$base-
|
|
51
|
-
$base-
|
|
45
|
+
// typography & text
|
|
46
|
+
$base-font-size: 1rem !default;
|
|
47
|
+
$base-font: normal !default;
|
|
48
|
+
$base-font-size-sm: $base-font-size * 0.75 !default;
|
|
49
|
+
$base-font-size-md: $base-font-size * 1.75 !default;
|
|
50
|
+
$base-font-size-lg: $base-font-size * 2 !default;
|
|
51
|
+
$base-font-size-xlg: $base-font-size * 3 !default;
|
|
52
|
+
|
|
53
|
+
// custom values
|
|
54
|
+
$custom-values: (
|
|
55
|
+
"auto": auto,
|
|
56
|
+
"full": 100%,
|
|
57
|
+
"half": 50%
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
$custom-height-values: (
|
|
61
|
+
"1\\/1": 100vh,
|
|
62
|
+
"1\\/2": 50vh,
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
$custom-width-values: (
|
|
66
|
+
"1\\/1": 100vw,
|
|
67
|
+
"2\\/1": 50vw,
|
|
68
|
+
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "sass:math";
|
|
2
2
|
|
|
3
|
-
@mixin badge($bg-color: map-get($base-colors, "
|
|
3
|
+
@mixin badge($bg-color: map-get($base-colors, "white")) {
|
|
4
4
|
border-radius: $base-border-radius * 4;
|
|
5
5
|
background-color: $bg-color;
|
|
6
6
|
padding: math.div($base-padding, 4) math.div($base-padding, 2);
|
|
7
|
-
font-size: $font-size-sm;
|
|
7
|
+
font-size: $base-font-size-sm;
|
|
8
8
|
font-weight: normal;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -12,13 +12,12 @@
|
|
|
12
12
|
@include badge;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@each $k,
|
|
16
|
-
$v in $base-colors {
|
|
15
|
+
@each $k, $v in $base-colors {
|
|
17
16
|
.badge-#{$k} {
|
|
18
17
|
@include badge($v);
|
|
19
18
|
}
|
|
20
19
|
|
|
21
|
-
@if($v !=black and $v !=white) {
|
|
20
|
+
@if ($v !=black and $v !=white) {
|
|
22
21
|
@for $i from 1 through 6 {
|
|
23
22
|
.badge-l-#{$k}-#{$i} {
|
|
24
23
|
@include badge(mix(white, $v, $i * 10%));
|
|
@@ -31,4 +30,4 @@ $v in $base-colors {
|
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
}
|
|
33
|
+
}
|
|
@@ -11,19 +11,15 @@
|
|
|
11
11
|
padding: $base-padding $base-padding * 2;
|
|
12
12
|
box-shadow: $base-box-shadow;
|
|
13
13
|
|
|
14
|
-
.nav-l {
|
|
15
|
-
font-size: $font-size-lg;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
14
|
.cnn {
|
|
19
15
|
@extend %flex-layout;
|
|
20
16
|
}
|
|
21
17
|
}
|
|
22
18
|
|
|
23
|
-
@each $k,
|
|
24
|
-
$v in $base-colors {
|
|
19
|
+
@each $k, $v in $base-colors {
|
|
25
20
|
.nav-#{$k} {
|
|
26
21
|
@extend .nav;
|
|
27
22
|
background-color: $v;
|
|
28
23
|
}
|
|
29
|
-
}
|
|
24
|
+
}
|
|
25
|
+
|
package/yumma-css/index.scss
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import 'base';
|
|
7
7
|
@import 'breakpoints';
|
|
8
8
|
@import 'grid';
|
|
9
|
+
@import 'layout';
|
|
9
10
|
|
|
10
11
|
// colors
|
|
11
12
|
@import 'colors';
|
|
@@ -17,4 +18,5 @@
|
|
|
17
18
|
@import 'components/badge';
|
|
18
19
|
|
|
19
20
|
// utilities
|
|
20
|
-
@import 'utilities';
|
|
21
|
+
@import 'utilities';
|
|
22
|
+
@import 'fonts';
|