yummacss 1.1.0 → 1.2.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 +38 -1
- package/README.md +8 -9
- package/dist/yumma.css +13643 -6408
- package/dist/yumma.min.css +1 -1
- package/gulpfile.js +8 -8
- package/package.json +9 -11
- package/yumma-css/_base.scss +41 -22
- package/yumma-css/_colors.scss +1 -3
- package/yumma-css/_fonts.scss +8 -8
- package/yumma-css/_layout.scss +1 -1
- package/yumma-css/_utils.scss +414 -356
- package/yumma-css/_variables.scss +76 -54
- package/yumma-css/components/_badge.scss +5 -5
- package/yumma-css/components/_button.scss +6 -17
- package/yumma-css/components/_card.scss +9 -9
- package/yumma-css/components/_navbar.scss +2 -4
- package/yumma-css/index.scss +1 -2
- package/yumma-css/_functions.scss +0 -5
|
@@ -1,72 +1,94 @@
|
|
|
1
|
-
//
|
|
2
|
-
$
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
) !default;
|
|
1
|
+
// colors
|
|
2
|
+
$ym-colors-red: rgb(215, 61, 61);
|
|
3
|
+
$ym-colors-orange: rgb(224, 104, 20);
|
|
4
|
+
$ym-colors-yellow: rgb(211, 161, 7);
|
|
5
|
+
$ym-colors-green: rgb(31, 177, 85);
|
|
6
|
+
$ym-colors-teal: rgb(18, 166, 149);
|
|
7
|
+
$ym-colors-cyan: rgb(5, 164, 191);
|
|
8
|
+
$ym-colors-blue: rgb(53, 117, 221);
|
|
9
|
+
$ym-colors-indigo: rgb(89, 92, 217);
|
|
10
|
+
$ym-colors-violet: rgb(125, 83, 221);
|
|
11
|
+
$ym-colors-pink: rgb(212, 65, 138);
|
|
12
|
+
$ym-colors-gray: rgb(96, 103, 115);
|
|
13
|
+
$ym-colors-lead: rgb(63, 63, 78);
|
|
14
|
+
$ym-colors-black: rgb(0, 0, 0);
|
|
15
|
+
$ym-colors-white: rgb(255, 255, 255);
|
|
16
|
+
$ym-colors-transparent: rgba(255, 255, 255, 0);
|
|
18
17
|
|
|
19
|
-
//borders & background
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$
|
|
18
|
+
// borders & background
|
|
19
|
+
$yma-border: 1px;
|
|
20
|
+
$yma-border-radius: 4px;
|
|
21
|
+
$yma-box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.1);
|
|
23
22
|
|
|
24
23
|
// box model
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
24
|
+
$yma-height: 0.25rem;
|
|
25
|
+
$yma-width: 0.25rem;
|
|
26
|
+
$yma-padding: 0.75rem;
|
|
27
|
+
$yma-margin: 0.75rem;
|
|
28
|
+
$yma-flex-basis: 1rem;
|
|
29
|
+
$yma-flex-grow: 1;
|
|
30
|
+
$yma-flex-shrink: 1;
|
|
32
31
|
|
|
33
32
|
// flexbox & grid
|
|
34
|
-
$
|
|
35
|
-
$
|
|
36
|
-
$
|
|
37
|
-
$base-template-rows: 0.25rem !default;
|
|
38
|
-
$base-row-gap: 0.25rem !default;
|
|
33
|
+
$yma-column-gap: 0.25rem;
|
|
34
|
+
$yma-flex: 1;
|
|
35
|
+
$yma-row-gap: 0.25rem;
|
|
39
36
|
|
|
40
37
|
// positioning
|
|
41
|
-
$
|
|
42
|
-
$
|
|
38
|
+
$yma-columns: 1;
|
|
39
|
+
$yma-direction: 1px;
|
|
43
40
|
|
|
44
41
|
// typography & text
|
|
45
|
-
$
|
|
46
|
-
$
|
|
47
|
-
$
|
|
48
|
-
$
|
|
49
|
-
$
|
|
50
|
-
$
|
|
51
|
-
$
|
|
52
|
-
$
|
|
53
|
-
$
|
|
54
|
-
$
|
|
55
|
-
$base-monospace-fonts: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
42
|
+
$yma-font-size: 16px;
|
|
43
|
+
$yma-font-weight: 500;
|
|
44
|
+
$yma-font-size-xs: $yma-font-size * 0.75;
|
|
45
|
+
$yma-font-size-sm: $yma-font-size * 0.9;
|
|
46
|
+
$yma-font-size-md: $yma-font-size;
|
|
47
|
+
$yma-font-size-lg: $yma-font-size * 1.2;
|
|
48
|
+
$yma-font-size-xl: $yma-font-size * 1.44;
|
|
49
|
+
$yma-font-size-2xl: $yma-font-size * 1.88;
|
|
50
|
+
$yma-font-size-3xl: $yma-font-size * 2.22;
|
|
51
|
+
$yma-font-size-6xl: $yma-font-size * 3.66;
|
|
56
52
|
|
|
57
|
-
|
|
58
|
-
$
|
|
53
|
+
$yma-system-fonts: system-ui, sans-serif;
|
|
54
|
+
$yma-charter-fonts: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif;
|
|
55
|
+
$yma-inter-fonts: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
|
|
56
|
+
$yma-monospace-fonts: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
|
57
|
+
|
|
58
|
+
// additional values map
|
|
59
|
+
$additional-classes: (
|
|
59
60
|
"auto": auto,
|
|
61
|
+
"fc": fit-content,
|
|
60
62
|
"full": 100%,
|
|
61
63
|
"half": 50%
|
|
62
64
|
);
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"1\\/
|
|
66
|
+
//dynamic values map
|
|
67
|
+
$dynamic-height-values: (
|
|
68
|
+
"1\\/1": 100dvh,
|
|
69
|
+
"1\\/2": 50dvh
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
$dynamic-width-values: (
|
|
73
|
+
"1\\/1": 100dvw,
|
|
74
|
+
"2\\/1": 50dvw
|
|
67
75
|
);
|
|
68
76
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
77
|
+
// colors map
|
|
78
|
+
$yma-colors: (
|
|
79
|
+
"red": $ym-colors-red,
|
|
80
|
+
"orange": $ym-colors-orange,
|
|
81
|
+
"yellow": $ym-colors-yellow,
|
|
82
|
+
"green": $ym-colors-green,
|
|
83
|
+
"teal": $ym-colors-teal,
|
|
84
|
+
"cyan": $ym-colors-cyan,
|
|
85
|
+
"blue": $ym-colors-blue,
|
|
86
|
+
"indigo": $ym-colors-indigo,
|
|
87
|
+
"violet": $ym-colors-violet,
|
|
88
|
+
"pink": $ym-colors-pink,
|
|
89
|
+
"gray": $ym-colors-gray,
|
|
90
|
+
"lead": $ym-colors-lead,
|
|
91
|
+
"black": $ym-colors-black,
|
|
92
|
+
"white": $ym-colors-white,
|
|
93
|
+
"transparent": $ym-colors-transparent
|
|
72
94
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
|
|
3
|
-
@mixin badge($bg-color: map-get($
|
|
4
|
-
border-radius: $
|
|
3
|
+
@mixin badge($bg-color: map-get($yma-colors, "white")) {
|
|
4
|
+
border-radius: $yma-border-radius * 4;
|
|
5
5
|
background-color: $bg-color;
|
|
6
|
-
padding: math.div($
|
|
7
|
-
font-size: $
|
|
6
|
+
padding: math.div($yma-padding, 4) math.div($yma-padding, 2);
|
|
7
|
+
font-size: $yma-font-size-sm;
|
|
8
8
|
font-weight: normal;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@include badge;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@each $k, $v in $
|
|
15
|
+
@each $k, $v in $yma-colors {
|
|
16
16
|
.badge-#{$k} {
|
|
17
17
|
@include badge($v);
|
|
18
18
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
text-decoration: none;
|
|
3
3
|
display: inline-block;
|
|
4
4
|
border: 0;
|
|
5
|
-
padding:
|
|
6
|
-
border-radius: $
|
|
5
|
+
padding: 0.625rem 0.875rem;
|
|
6
|
+
border-radius: $yma-border-radius * 2;
|
|
7
7
|
background-color: $bg-color;
|
|
8
8
|
transition: background-color 0.3s ease;
|
|
9
9
|
cursor: pointer;
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
@include btn;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@each $k,
|
|
17
|
-
$v in $base-colors {
|
|
16
|
+
@each $k, $v in $yma-colors {
|
|
18
17
|
.btn-#{$k} {
|
|
19
18
|
@include btn($v);
|
|
20
19
|
|
|
@@ -23,7 +22,7 @@ $v in $base-colors {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
@if($v !=black and $v !=white) {
|
|
25
|
+
@if ($v !=black and $v !=white) {
|
|
27
26
|
@for $i from 1 through 6 {
|
|
28
27
|
.btn-l-#{$k}-#{$i} {
|
|
29
28
|
@include btn(mix(white, $v, $i * 10%));
|
|
@@ -47,20 +46,10 @@ $v in $base-colors {
|
|
|
47
46
|
|
|
48
47
|
.btn-otl-#{$k} {
|
|
49
48
|
@include btn(#fff);
|
|
50
|
-
border: $
|
|
49
|
+
border: $yma-border solid $v;
|
|
51
50
|
|
|
52
51
|
&:hover {
|
|
53
52
|
background-color: $v;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
|
-
|
|
57
|
-
.btn-cmp-#{$k} {
|
|
58
|
-
@include btn($v);
|
|
59
|
-
color: light-comp($v);
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
color: $v;
|
|
63
|
-
background-color: light-comp($v);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
55
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "sass:math";
|
|
2
2
|
|
|
3
3
|
.card {
|
|
4
4
|
display: block;
|
|
5
|
-
padding: $
|
|
6
|
-
border: $
|
|
7
|
-
box-shadow: $
|
|
8
|
-
border-radius: math.div($
|
|
5
|
+
padding: $yma-padding;
|
|
6
|
+
border: $yma-border solid #ddd;
|
|
7
|
+
box-shadow: $yma-box-shadow;
|
|
8
|
+
border-radius: math.div($yma-border-radius, 2);
|
|
9
9
|
|
|
10
10
|
.card-t {
|
|
11
|
-
font-size: $
|
|
12
|
-
padding-bottom: $
|
|
11
|
+
font-size: $yma-font-size;
|
|
12
|
+
padding-bottom: $yma-padding;
|
|
13
13
|
font-weight: bold;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.card-b {
|
|
17
|
-
font-size: $
|
|
17
|
+
font-size: $yma-font-size;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
a {
|
|
21
21
|
text-decoration: underline;
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
}
|
|
@@ -8,18 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
.nav {
|
|
10
10
|
@extend %flex-layout;
|
|
11
|
-
padding: $
|
|
12
|
-
box-shadow: $base-box-shadow;
|
|
11
|
+
padding: $yma-padding $yma-padding * 2;
|
|
13
12
|
|
|
14
13
|
.cnn {
|
|
15
14
|
@extend %flex-layout;
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
@each $k, $v in $
|
|
18
|
+
@each $k, $v in $yma-colors {
|
|
20
19
|
.nav-#{$k} {
|
|
21
20
|
@extend .nav;
|
|
22
21
|
background-color: $v;
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
|
package/yumma-css/index.scss
CHANGED