@nulllogic/scssleon 1.0.31 → 1.0.33
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
CHANGED
package/scss/_root.scss
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/* Load settings and functions */
|
|
8
|
-
@use
|
|
9
|
-
@use
|
|
8
|
+
@use '../mixins' as mixins;
|
|
9
|
+
@use '../functions' as functions;
|
|
10
10
|
|
|
11
11
|
/* SCSS variables definition requirement */
|
|
12
12
|
$config: nil !default;
|
|
13
13
|
$theme: nil !default;
|
|
14
14
|
|
|
15
|
-
@include mixins.generate-component(
|
|
15
|
+
@include mixins.generate-component('card', 'card', $config, $theme);
|
|
@@ -8,36 +8,28 @@
|
|
|
8
8
|
@mixin generate-css-properties($tag, $property, $value, $config) {
|
|
9
9
|
$prefix: functions.get-config($config, "prefix");
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
--#{$prefix}-#{$tag}-#{functions.str-replace($property, '--', '')}: #{meta.inspect(
|
|
11
|
+
--#{$prefix}-#{$tag}-#{functions.str-replace($property, '--', '')}: #{meta.inspect(
|
|
13
12
|
$value
|
|
14
13
|
)};
|
|
15
|
-
}
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
@mixin generate-css-variables($tag, $property, $value, $config) {
|
|
19
17
|
$prefix: functions.get-config($config, "prefix");
|
|
20
18
|
|
|
21
19
|
@if (meta.type-of($value) == "string" and str-index($value, "var(--") == 1) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)};
|
|
26
|
-
}
|
|
20
|
+
#{$property}: #{meta.inspect(
|
|
21
|
+
functions.str-replace($value, "--", "--" + $prefix + "-" + $tag + "-")
|
|
22
|
+
)};
|
|
27
23
|
} @else if (type-of($value) == "string" and str-index($value, "var(global(") == 1) {
|
|
28
|
-
|
|
29
|
-
#{$property}: #{meta.inspect(
|
|
24
|
+
#{$property}: #{meta.inspect(
|
|
30
25
|
functions.str-replace(
|
|
31
26
|
string.slice($value, 0, string.length($value) - 1),
|
|
32
27
|
"global(--",
|
|
33
28
|
"--" + $prefix + "-root-"
|
|
34
29
|
)
|
|
35
30
|
)};
|
|
36
|
-
}
|
|
37
31
|
} @else {
|
|
38
|
-
|
|
39
|
-
#{$property}: #{meta.inspect($value)};
|
|
40
|
-
}
|
|
32
|
+
#{$property}: #{meta.inspect($value)};
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
|
|
@@ -49,11 +41,9 @@
|
|
|
49
41
|
@if $scheme == $color {
|
|
50
42
|
@include mixin.generate-color-scheme($color) {
|
|
51
43
|
@each $color-property, $color-value in $color-properties {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
)};
|
|
56
|
-
}
|
|
44
|
+
--#{$prefix}-#{$tag}-#{functions.str-replace($color-property, '--', '')}: #{meta.inspect(
|
|
45
|
+
$color-value
|
|
46
|
+
)};
|
|
57
47
|
}
|
|
58
48
|
}
|
|
59
49
|
}
|
|
@@ -89,7 +79,7 @@
|
|
|
89
79
|
// Looking for "--" symbols in the beginning of the property
|
|
90
80
|
// Example: --flex-direction : row
|
|
91
81
|
@if (
|
|
92
|
-
|
|
82
|
+
meta.type-of($property) == "string" and str-index($property, "--") == 1
|
|
93
83
|
) {
|
|
94
84
|
@include generate-css-properties($tag, $property, $value, $config);
|
|
95
85
|
}
|
|
@@ -35,7 +35,7 @@ $html-config: (
|
|
|
35
35
|
),
|
|
36
36
|
a : (
|
|
37
37
|
text-decoration : underline,
|
|
38
|
-
color: var(--
|
|
38
|
+
color: var(--color),
|
|
39
39
|
colors: (
|
|
40
40
|
light : (
|
|
41
41
|
color: '#ccc',
|
|
@@ -544,7 +544,7 @@ $components-config: (
|
|
|
544
544
|
|
|
545
545
|
card : (
|
|
546
546
|
--border-radius: .25rem,
|
|
547
|
-
--padding:
|
|
547
|
+
--padding: .5rem,
|
|
548
548
|
|
|
549
549
|
background: var(--background),
|
|
550
550
|
padding: var(--padding),
|