@oardi/css-utils 0.111.0 → 0.112.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/package.json +4 -2
- package/scss/components/input-group.scss +1 -1
- package/scss/gap-responsive.scss +5 -3
- package/scss/gap.scss +5 -3
- package/scss/spacings-responsive.scss +18 -12
- package/scss/spacings.scss +18 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oardi/css-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"author": "Ardian Shala",
|
|
5
5
|
"homepage": "https://css-utils.oardi.com",
|
|
6
6
|
"description": "Powerful set of semantic css classes with support for breakpoints, directions and spacings",
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"LICENSE.md"
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
|
-
"scripts": {
|
|
26
|
+
"scripts": {
|
|
27
|
+
"prepublishOnly": "npm --prefix .. run validate"
|
|
28
|
+
},
|
|
27
29
|
"publishConfig": {
|
|
28
30
|
"access": "public"
|
|
29
31
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--input-group-border-width: var(--border-width);
|
|
7
7
|
--input-group-border-color: var(--control-border-color);
|
|
8
8
|
--input-group-border-radius: var(--border-radius-lg);
|
|
9
|
-
--input-group-box-shadow:
|
|
9
|
+
--input-group-box-shadow: none;
|
|
10
10
|
--input-group-color: var(--text-color);
|
|
11
11
|
--input-group-addon-bg-color: var(--bg-highlight);
|
|
12
12
|
--input-group-addon-color: var(--text-muted);
|
package/scss/gap-responsive.scss
CHANGED
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
@each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
|
|
8
8
|
@media (min-width: #{$bp-value}) {
|
|
9
9
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
10
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
11
|
+
|
|
10
12
|
.gap-#{$bp}-#{$key} {
|
|
11
|
-
gap: $
|
|
13
|
+
gap: $spacing;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
.row-gap-#{$bp}-#{$key} {
|
|
15
|
-
row-gap: $
|
|
17
|
+
row-gap: $spacing;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.column-gap-#{$bp}-#{$key} {
|
|
19
|
-
column-gap: $
|
|
21
|
+
column-gap: $spacing;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
package/scss/gap.scss
CHANGED
|
@@ -4,16 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
@layer utilities {
|
|
6
6
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
7
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
8
|
+
|
|
7
9
|
.gap-#{$key} {
|
|
8
|
-
gap: $
|
|
10
|
+
gap: $spacing;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
.row-gap-#{$key} {
|
|
12
|
-
row-gap: $
|
|
14
|
+
row-gap: $spacing;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
.column-gap-#{$key} {
|
|
16
|
-
column-gap: $
|
|
18
|
+
column-gap: $spacing;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -36,45 +36,51 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
39
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
40
|
+
|
|
39
41
|
.m-#{$bp}-#{$key} {
|
|
40
|
-
margin: $
|
|
42
|
+
margin: $spacing;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.p-#{$bp}-#{$key} {
|
|
44
|
-
padding: $
|
|
46
|
+
padding: $spacing;
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
51
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
52
|
+
|
|
49
53
|
.mx-#{$bp}-#{$key} {
|
|
50
|
-
margin-left: $
|
|
51
|
-
margin-right: $
|
|
54
|
+
margin-left: $spacing;
|
|
55
|
+
margin-right: $spacing;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
.my-#{$bp}-#{$key} {
|
|
55
|
-
margin-top: $
|
|
56
|
-
margin-bottom: $
|
|
59
|
+
margin-top: $spacing;
|
|
60
|
+
margin-bottom: $spacing;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
.px-#{$bp}-#{$key} {
|
|
60
|
-
padding-left: $
|
|
61
|
-
padding-right: $
|
|
64
|
+
padding-left: $spacing;
|
|
65
|
+
padding-right: $spacing;
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
.py-#{$bp}-#{$key} {
|
|
65
|
-
padding-top: $
|
|
66
|
-
padding-bottom: $
|
|
69
|
+
padding-top: $spacing;
|
|
70
|
+
padding-bottom: $spacing;
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
75
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
76
|
+
|
|
71
77
|
@each $dir, $prop in map.get(theme.$theme, directions) {
|
|
72
78
|
.m#{$dir}-#{$bp}-#{$key} {
|
|
73
|
-
margin-#{$prop}: $
|
|
79
|
+
margin-#{$prop}: $spacing;
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
.p#{$dir}-#{$bp}-#{$key} {
|
|
77
|
-
padding-#{$prop}: $
|
|
83
|
+
padding-#{$prop}: $spacing;
|
|
78
84
|
}
|
|
79
85
|
}
|
|
80
86
|
}
|
package/scss/spacings.scss
CHANGED
|
@@ -36,46 +36,52 @@
|
|
|
36
36
|
// margin / padding spacings
|
|
37
37
|
// i.e. .m-2, .m-5, p-1,
|
|
38
38
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
39
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
40
|
+
|
|
39
41
|
.m-#{$key} {
|
|
40
|
-
margin: $
|
|
42
|
+
margin: $spacing;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.p-#{$key} {
|
|
44
|
-
padding: $
|
|
46
|
+
padding: $spacing;
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
50
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
51
|
+
|
|
48
52
|
.mx-#{$key} {
|
|
49
|
-
margin-left: $
|
|
50
|
-
margin-right: $
|
|
53
|
+
margin-left: $spacing;
|
|
54
|
+
margin-right: $spacing;
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
.my-#{$key} {
|
|
54
|
-
margin-top: $
|
|
55
|
-
margin-bottom: $
|
|
58
|
+
margin-top: $spacing;
|
|
59
|
+
margin-bottom: $spacing;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
.px-#{$key} {
|
|
59
|
-
padding-left: $
|
|
60
|
-
padding-right: $
|
|
63
|
+
padding-left: $spacing;
|
|
64
|
+
padding-right: $spacing;
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
.py-#{$key} {
|
|
64
|
-
padding-top: $
|
|
65
|
-
padding-bottom: $
|
|
68
|
+
padding-top: $spacing;
|
|
69
|
+
padding-bottom: $spacing;
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
// margin / padding with directions
|
|
70
74
|
// i.e. mt-2, mb-5, pt-1, ...
|
|
71
75
|
@each $key, $value in map.get(theme.$theme, spacings) {
|
|
76
|
+
$spacing: var(--spacer-#{$key}, #{$value});
|
|
77
|
+
|
|
72
78
|
@each $dir, $prop in map.get(theme.$theme, directions) {
|
|
73
79
|
.m#{$dir}-#{$key} {
|
|
74
|
-
margin-#{$prop}: $
|
|
80
|
+
margin-#{$prop}: $spacing;
|
|
75
81
|
}
|
|
76
82
|
|
|
77
83
|
.p#{$dir}-#{$key} {
|
|
78
|
-
padding-#{$prop}: $
|
|
84
|
+
padding-#{$prop}: $spacing;
|
|
79
85
|
}
|
|
80
86
|
}
|
|
81
87
|
}
|