fscss 1.1.21 → 1.1.23
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/README.md +6 -6
- package/e/exec.js +1733 -2
- package/e/xfscss.js +1736 -2
- package/exec.js +1733 -2
- package/lib/functions/all.js +121 -87
- package/package.json +1 -1
- package/public/test.html +98 -21
- package/public/vars.fscss +11 -0
- package/xfscss.js +1736 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FSCSS
|
|
2
2
|
|
|
3
|
-
**FSCSS (Figured Shorthand Cascading Style Sheets)** is a
|
|
3
|
+
**FSCSS (Figured Shorthand Cascading Style Sheets)** is a CSS preprocessor that extends CSS with shorthand utilities, variables, functions, and advanced transformations.
|
|
4
4
|
|
|
5
5
|
It is designed to make styling faster, reusable, and expressive — without losing standard CSS compatibility.
|
|
6
6
|
|
|
@@ -37,7 +37,7 @@ It is designed to make styling faster, reusable, and expressive — without losi
|
|
|
37
37
|
|
|
38
38
|
- `$var` → standard variables
|
|
39
39
|
- `str()` → inline expandable text variables
|
|
40
|
-
- fallback operator →
|
|
40
|
+
- fallback operator → `$/var || fallback`
|
|
41
41
|
```css
|
|
42
42
|
$color: red;
|
|
43
43
|
|
|
@@ -90,7 +90,7 @@ $color: red;
|
|
|
90
90
|
- Vendor prefixing
|
|
91
91
|
-
|
|
92
92
|
```css
|
|
93
|
-
$(@keyframes trans, .box &[3s ease-in infinite]){
|
|
93
|
+
$(@keyframes trans, .box, #hero .card, #dashboard .card &[3s ease-in infinite]){
|
|
94
94
|
from{ width:0; }
|
|
95
95
|
to{ width:200px; }
|
|
96
96
|
}
|
|
@@ -131,7 +131,7 @@ https://github.com/fscss-ttr/fscss-modules/
|
|
|
131
131
|
## Example
|
|
132
132
|
|
|
133
133
|
```css
|
|
134
|
-
@import((flex-x) from flex-control
|
|
134
|
+
@import((flex-x) from flex-control)
|
|
135
135
|
|
|
136
136
|
@arr colors[#1E2783, #8C29B2, #C41348]
|
|
137
137
|
|
|
@@ -154,7 +154,7 @@ npm install fscss
|
|
|
154
154
|
```
|
|
155
155
|
---
|
|
156
156
|
|
|
157
|
-
**
|
|
157
|
+
**Browser Usage**
|
|
158
158
|
```html
|
|
159
159
|
<script src="https://cdn.jsdelivr.net/npm/fscss@latest/exec.min.js" defer></script>
|
|
160
160
|
```
|
|
@@ -165,7 +165,7 @@ npm install fscss
|
|
|
165
165
|
**Or:**
|
|
166
166
|
```html
|
|
167
167
|
<style>
|
|
168
|
-
@import(exec(style.fscss))
|
|
168
|
+
@import(exec("style.fscss"))
|
|
169
169
|
</style>
|
|
170
170
|
```
|
|
171
171
|
> Use "defer" or "async" when loading the script.
|