@nulllogic/scssleon 1.0.7 → 1.0.8
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.8",
|
|
5
|
+
"version_short": "1.0.8",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"css",
|
|
8
8
|
"sass",
|
|
@@ -16,17 +16,8 @@
|
|
|
16
16
|
"web",
|
|
17
17
|
"scssleon"
|
|
18
18
|
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"css": "npm run css-compile",
|
|
21
|
-
"css-compile": "sass --style expanded --source-map --embed-sources scss/:dist/css/",
|
|
22
|
-
"dist": "npm run css && npm run minify",
|
|
23
|
-
"watch": "sass --watch ./scss:./dist/css"
|
|
24
|
-
},
|
|
25
19
|
"dependencies": {
|
|
26
20
|
"sass": "^1.89.2"
|
|
27
|
-
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
|
|
30
21
|
},
|
|
31
22
|
"homepage": "https://nulllogic.github.io/scssleon-docs",
|
|
32
23
|
"style": "dist/scssleon.css",
|
|
@@ -49,6 +49,18 @@
|
|
|
49
49
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
@mixin generate-print-variables($tag, $value, $config, $options) {
|
|
53
|
+
@media print {
|
|
54
|
+
@include generate-properties($tag, $value, $config, $options);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin generate-rtl-variables($tag, $value, $config, $options) {
|
|
59
|
+
&:where(:dir(rtl),[dir=rtl],[dir=rtl] *) {
|
|
60
|
+
@include generate-properties($tag, $value, $config, $options);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
@mixin generate-css-variables($tag, $property, $value, $config, $options) {
|
|
53
65
|
$prefix: functions.get-config($config, 'prefix');
|
|
54
66
|
|
|
@@ -144,10 +156,6 @@
|
|
|
144
156
|
}
|
|
145
157
|
}
|
|
146
158
|
|
|
147
|
-
@mixin generate-print($tag, $value, $config, $options) {
|
|
148
|
-
//@TODO
|
|
149
|
-
}
|
|
150
|
-
|
|
151
159
|
@mixin generate-animation($tag, $value, $config, $options) {
|
|
152
160
|
@each $name, $properties in $value {
|
|
153
161
|
// Check, if _animation is not empty ;;
|
|
@@ -165,7 +173,6 @@
|
|
|
165
173
|
|
|
166
174
|
@mixin generate-properties($tag, $properties, $config, $options : ()) {
|
|
167
175
|
$prefix: functions.get-config($config, 'prefix');
|
|
168
|
-
$is_scheme_dark: functions.get-config($options, 'scheme') != nil and functions.get-config($options, 'scheme') == 'dark';
|
|
169
176
|
|
|
170
177
|
@each $property, $value in $properties {
|
|
171
178
|
// Variables
|
|
@@ -187,7 +194,7 @@
|
|
|
187
194
|
@include generate-responsive($tag, $value, $config);
|
|
188
195
|
}
|
|
189
196
|
|
|
190
|
-
//
|
|
197
|
+
// Subclasses
|
|
191
198
|
@else if ($property == '_subclasses') {
|
|
192
199
|
@each $class, $class_properties in $value {
|
|
193
200
|
@include generate-subclasses($tag, $class, $class_properties, $config, $options);
|
|
@@ -199,6 +206,16 @@
|
|
|
199
206
|
@include generate-atrule($tag, $value, $config, $options);
|
|
200
207
|
}
|
|
201
208
|
|
|
209
|
+
// Print media query
|
|
210
|
+
@else if ($property == '_print') {
|
|
211
|
+
@include generate-print-variables($tag, $value, $config, $options);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// RTL support
|
|
215
|
+
@else if ($property == '_rtl') {
|
|
216
|
+
@include generate-rtl-variables($tag, $value, $config, $options);
|
|
217
|
+
}
|
|
218
|
+
|
|
202
219
|
// Animations
|
|
203
220
|
@else if ($property == '_animations') {
|
|
204
221
|
@include generate-animation($tag, $value, $config, $options);
|