@nulllogic/scssleon 1.0.37 → 1.0.39

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,8 +1,8 @@
1
1
  {
2
2
  "name": "@nulllogic/scssleon",
3
3
  "description": "Most advanced, simple and clean SCSS framework",
4
- "version": "1.0.37",
5
- "version_short": "1.0",
4
+ "version": "1.0.39",
5
+ "version_short": "1.0.39",
6
6
  "keywords": [
7
7
  "css",
8
8
  "sass",
@@ -21,7 +21,7 @@
21
21
  "watch": "sass --watch ./scss:./dist/css"
22
22
  },
23
23
  "dependencies": {
24
- "sass": "^1.87.0"
24
+ "sass": "^1.89.0"
25
25
  },
26
26
  "devDependencies": {
27
27
 
package/scss/_base.scss CHANGED
@@ -13,6 +13,7 @@ $config: nil !default;
13
13
  $theme: nil !default;
14
14
 
15
15
  @each $tag, $properties in functions.get-theme($theme, 'html') {
16
+ @debug $tag;
16
17
  #{$tag} {
17
18
  @include mixins.generate-properties(#{$tag}, $properties, $config);
18
19
  }
@@ -1,25 +1,12 @@
1
1
  @use 'sass:list';
2
2
  @use 'sass:map';
3
+ @use 'sass:string';
3
4
 
4
- @function str-split($string, $separator) {
5
- $split-arr: ();
6
- $index : str-index($string, $separator);
7
- @while $index != null {
8
- $item: str-slice($string, 1, $index - 1);
9
- $split-arr: append($split-arr, $item);
10
- $string: str-slice($string, $index + 1);
11
- $index : str-index($string, $separator);
12
- }
13
- $split-arr: append($split-arr, $string);
14
-
15
- @return $split-arr;
16
- }
17
-
18
- @function str-replace($string, $search, $replace: '') {
19
- $index: str-index($string, $search);
5
+ @function replace($string, $search, $replace: '') {
6
+ $index: string.index($string, $search);
20
7
 
21
8
  @if $index {
22
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
9
+ @return string.slice($string, 1, $index - 1) + $replace + replace(string.slice($string, $index + string.length($search)), $search, $replace);
23
10
  }
24
11
 
25
12
  @return $string;
@@ -33,8 +20,8 @@
33
20
  @return nil;
34
21
  }
35
22
 
36
- @if (str-index($value, '.')) {
37
- $path: str-split($value, '.');
23
+ @if (string.index($value, '.')) {
24
+ $path: string.split($value, '.');
38
25
  $val: map.get($config, $path...);
39
26
  } @else {
40
27
  $val: map.get($config, $value);
@@ -55,8 +42,8 @@
55
42
  @return nil;
56
43
  }
57
44
 
58
- @if (str-index($value, '.')) {
59
- $path: str-split($value, '.');
45
+ @if (string.index($value, '.')) {
46
+ $path: string.split($value, '.');
60
47
  $val: map.get($theme, $path...);
61
48
  } @else {
62
49
  $val: map.get($theme, $value);
@@ -74,13 +61,13 @@
74
61
  //
75
62
  // Requires the use of quotes around data URIs.
76
63
  @function escape-svg($string) {
77
- @if str-index($string, "data:image/svg+xml") {
64
+ @if string.index($string, "data:image/svg+xml") {
78
65
  @each $char, $encoded in $escaped-characters {
79
66
  // Do not escape the url brackets
80
- @if str-index($string, "url(") == 1 {
81
- $string: url("#{str-replace(str-slice($string, 6, -3), $char, $encoded)}");
67
+ @if string.index($string, "url(") == 1 {
68
+ $string: url("#{string.replace(string.slice($string, 6, -3), $char, $encoded)}");
82
69
  } @else {
83
- $string: str-replace($string, $char, $encoded);
70
+ $string: string.replace($string, $char, $encoded);
84
71
  }
85
72
  }
86
73
  }
package/scss/_reset.scss CHANGED
@@ -48,11 +48,13 @@ $color_scheme: functions.get-config($config, "color-scheme");
48
48
  h5,
49
49
  h6 {
50
50
  margin: 0;
51
+ line-height: normal;
51
52
  }
52
53
 
53
54
  // Paragraph
54
55
  p {
55
56
  margin: 0;
57
+ line-height: normal;
56
58
  }
57
59
 
58
60
  // Lists
@@ -8,7 +8,7 @@
8
8
  @mixin generate-css-properties($tag, $property, $value, $config) {
9
9
  $prefix: functions.get-config($config, "prefix");
10
10
 
11
- --#{$prefix}-#{$tag}-#{functions.str-replace($property, '--', '')}: #{meta.inspect(
11
+ --#{$prefix}-#{$tag}-#{functions.replace($property, '--', '')}: #{meta.inspect(
12
12
  $value
13
13
  )};
14
14
  }
@@ -16,13 +16,13 @@
16
16
  @mixin generate-css-variables($tag, $property, $value, $config) {
17
17
  $prefix: functions.get-config($config, "prefix");
18
18
 
19
- @if (meta.type-of($value) == "string" and str-index($value, "var(--") == 1) {
19
+ @if (meta.type-of($value) == "string" and string.index($value, "var(--") == 1) {
20
20
  #{$property}: #{meta.inspect(
21
- functions.str-replace($value, "--", "--" + $prefix + "-" + $tag + "-")
21
+ functions.replace($value, "--", "--" + $prefix + "-" + $tag + "-")
22
22
  )};
23
- } @else if (type-of($value) == "string" and str-index($value, "var(global(") == 1) {
23
+ } @else if (meta.type-of($value) == "string" and string.index($value, "var(global(") == 1) {
24
24
  #{$property}: #{meta.inspect(
25
- functions.str-replace(
25
+ functions.replace(
26
26
  string.slice($value, 0, string.length($value) - 1),
27
27
  "global(--",
28
28
  "--" + $prefix + "-root-"
@@ -37,11 +37,11 @@
37
37
  $prefix: functions.get-config($config, "prefix");
38
38
 
39
39
  @each $color, $color-properties in $value {
40
- @each $scheme in functions.str-split(functions.get-config($config, "color-scheme"), " ") {
40
+ @each $scheme in string.split(functions.get-config($config, "color-scheme"), " ") {
41
41
  @if $scheme == $color {
42
42
  @include mixin.generate-color-scheme($color) {
43
43
  @each $color-property, $color-value in $color-properties {
44
- --#{$prefix}-#{$tag}-#{functions.str-replace($color-property, '--', '')}: #{meta.inspect(
44
+ --#{$prefix}-#{$tag}-#{functions.replace($color-property, '--', '')}: #{meta.inspect(
45
45
  $color-value
46
46
  )};
47
47
  }
@@ -79,7 +79,7 @@
79
79
  // Looking for "--" symbols in the beginning of the property
80
80
  // Example: --flex-direction : row
81
81
  @if (
82
- meta.type-of($property) == "string" and str-index($property, "--") == 1
82
+ meta.type-of($property) == "string" and string.index($property, "--") == 1
83
83
  ) {
84
84
  @include generate-css-properties($tag, $property, $value, $config);
85
85
  }
@@ -72,7 +72,7 @@ $html-config: (
72
72
  ),
73
73
  )
74
74
  )
75
-
75
+
76
76
  ),
77
77
  ol: (
78
78
  margin: 0,
@@ -104,42 +104,42 @@ $content-config: (
104
104
  content : (
105
105
  h1 : (
106
106
  font-size: 3.75rem,
107
- line-height: inherit,
107
+ line-height: 1,
108
108
  font-weight: 500,
109
109
  margin: 0,
110
110
  padding: 0 0 15px 0
111
111
  ),
112
112
  h2 : (
113
113
  font-size: 3rem,
114
- line-height: inherit,
114
+ line-height: 1,
115
115
  font-weight: 500,
116
116
  margin: 0,
117
117
  padding: 0 0 15px 0
118
118
  ),
119
119
  h3 : (
120
120
  font-size: 2.25rem,
121
- line-height: inherit,
121
+ line-height: 1.3,
122
122
  font-weight: 500,
123
123
  margin: 0,
124
124
  padding: 0 0 15px 0
125
125
  ),
126
126
  h4 : (
127
127
  font-size: 1.875rem,
128
- line-height: inherit,
128
+ line-height: 1.2,
129
129
  font-weight: 500,
130
130
  margin: 0,
131
131
  padding: 0 0 15px 0
132
132
  ),
133
133
  h5 : (
134
134
  font-size: 1.5rem,
135
- line-height: inherit,
135
+ line-height: 1.4,
136
136
  font-weight: 500,
137
137
  margin: 0,
138
138
  padding: 0 0 15px 0
139
139
  ),
140
140
  h6 : (
141
141
  font-size: 1.25rem,
142
- line-height: inherit,
142
+ line-height: 1.5,
143
143
  font-weight: 500,
144
144
  margin: 0,
145
145
  padding: 0 0 15px 0