@nulllogic/scssleon 1.0.37 → 1.0.38
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.
|
|
5
|
-
"version_short": "1.0",
|
|
4
|
+
"version": "1.0.38",
|
|
5
|
+
"version_short": "1.0.38",
|
|
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.
|
|
24
|
+
"sass": "^1.89.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
|
package/scss/_base.scss
CHANGED
package/scss/_functions.scss
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
@use 'sass:list';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
+
@use 'sass:string';
|
|
3
4
|
|
|
4
|
-
@function
|
|
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: '') {
|
|
5
|
+
@function replace($string, $search, $replace: '') {
|
|
19
6
|
$index: str-index($string, $search);
|
|
20
7
|
|
|
21
8
|
@if $index {
|
|
22
|
-
@return str-slice($string, 1, $index - 1) + $replace +
|
|
9
|
+
@return str-slice($string, 1, $index - 1) + $replace + replace(str-slice($string, $index + string.length($search)), $search, $replace);
|
|
23
10
|
}
|
|
24
11
|
|
|
25
12
|
@return $string;
|
|
@@ -34,7 +21,7 @@
|
|
|
34
21
|
}
|
|
35
22
|
|
|
36
23
|
@if (str-index($value, '.')) {
|
|
37
|
-
$path:
|
|
24
|
+
$path: string.split($value, '.');
|
|
38
25
|
$val: map.get($config, $path...);
|
|
39
26
|
} @else {
|
|
40
27
|
$val: map.get($config, $value);
|
|
@@ -56,7 +43,7 @@
|
|
|
56
43
|
}
|
|
57
44
|
|
|
58
45
|
@if (str-index($value, '.')) {
|
|
59
|
-
$path:
|
|
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
|
|
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
|
|
81
|
-
$string: url("#{
|
|
67
|
+
@if string.index($string, "url(") == 1 {
|
|
68
|
+
$string: url("#{string.replace(string.slice($string, 6, -3), $char, $encoded)}");
|
|
82
69
|
} @else {
|
|
83
|
-
$string:
|
|
70
|
+
$string: string.replace($string, $char, $encoded);
|
|
84
71
|
}
|
|
85
72
|
}
|
|
86
73
|
}
|
package/scss/_reset.scss
CHANGED
|
@@ -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.
|
|
11
|
+
--#{$prefix}-#{$tag}-#{functions.replace($property, '--', '')}: #{meta.inspect(
|
|
12
12
|
$value
|
|
13
13
|
)};
|
|
14
14
|
}
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
@if (meta.type-of($value) == "string" and str-index($value, "var(--") == 1) {
|
|
20
20
|
#{$property}: #{meta.inspect(
|
|
21
|
-
functions.
|
|
21
|
+
functions.replace($value, "--", "--" + $prefix + "-" + $tag + "-")
|
|
22
22
|
)};
|
|
23
23
|
} @else if (type-of($value) == "string" and str-index($value, "var(global(") == 1) {
|
|
24
24
|
#{$property}: #{meta.inspect(
|
|
25
|
-
functions.
|
|
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
|
|
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.
|
|
44
|
+
--#{$prefix}-#{$tag}-#{functions.replace($color-property, '--', '')}: #{meta.inspect(
|
|
45
45
|
$color-value
|
|
46
46
|
)};
|
|
47
47
|
}
|
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
142
|
+
line-height: 1.5,
|
|
143
143
|
font-weight: 500,
|
|
144
144
|
margin: 0,
|
|
145
145
|
padding: 0 0 15px 0
|