@nulllogic/scssleon 1.0.31 → 1.0.32

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nulllogic/scssleon",
3
3
  "description": "Most advanced, simple and clean SCSS framework",
4
- "version": "1.0.31",
4
+ "version": "1.0.32",
5
5
  "version_short": "1.0",
6
6
  "keywords": [
7
7
  "css",
package/scss/_root.scss CHANGED
@@ -24,9 +24,7 @@ $root-variables: functions.get-theme($theme, "root.variables");
24
24
  }
25
25
  }
26
26
 
27
- & {
28
- color-scheme: string.unquote($color_scheme);
29
- }
27
+ color-scheme: string.unquote($color_scheme);
30
28
 
31
29
  @include mixins.generate-properties(
32
30
  "root",
@@ -5,11 +5,11 @@
5
5
  */
6
6
 
7
7
  /* Load settings and functions */
8
- @use "../mixins" as mixins;
9
- @use "../functions" as functions;
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("card", "card", $config, $theme);
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
- #{$property}: #{meta.inspect(
24
- functions.str-replace($value, "--", "--" + $prefix + "-" + $tag + "-")
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
- --#{$prefix}-#{$tag}-#{functions.str-replace($color-property, '--', '')}: #{meta.inspect(
54
- $color-value
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
- meta.type-of($property) == "string" and str-index($property, "--") == 1
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
  }
@@ -544,7 +544,7 @@ $components-config: (
544
544
 
545
545
  card : (
546
546
  --border-radius: .25rem,
547
- --padding: 10px,
547
+ --padding: .5rem,
548
548
 
549
549
  background: var(--background),
550
550
  padding: var(--padding),