fscss 1.0.0 → 1.1.1
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 +8 -2
- package/package.json +21 -17
- package/strg/xvars.fscss +17 -0
- package/xfscss.min.js +4 -0
package/README.md
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
#
|
|
2
|
-
Figured Shorthand Cascading Style Sheet (FSCSS)
|
|
1
|
+
# FSCSS
|
|
2
|
+
Figured Shorthand Cascading Style Sheet (FSCSS)
|
|
3
|
+
<br>
|
|
4
|
+
<small>
|
|
5
|
+
For simplifying CSS coding by introducing shorthand syntax and variables.
|
|
6
|
+
</small>
|
|
7
|
+
<br>
|
|
8
|
+
<pre><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR6m6fO1LCMWUVuZQLVBMRjZXSXfb4zd0B_QVdipRHEo9WtL-AJOg0PDBY&s=10" width=10 height=10><b>FSCSS</b><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTisdVQwV1zoxddr3NQUXUu5qRcD1GcILE4IVr8d6d9t6xmasC2QUnHzfla&s=10" width=10 height=10></pre>
|
package/package.json
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fscss",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Figured Shorthand Cascading Style Sheet",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start": "node index.js",
|
|
8
|
-
"test": "mocha"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/Figsh/xfscss.git"
|
|
13
|
-
},
|
|
14
5
|
"keywords": [
|
|
15
6
|
"node",
|
|
16
7
|
"express",
|
|
17
|
-
"npm"
|
|
8
|
+
"npm",
|
|
9
|
+
"fscss",
|
|
10
|
+
"figsh_css"
|
|
18
11
|
],
|
|
19
|
-
"
|
|
20
|
-
"license": "MIT",
|
|
12
|
+
"homepage": "https://github.com/Figsh/xfscss#readme",
|
|
21
13
|
"bugs": {
|
|
22
14
|
"url": "https://github.com/Figsh/xfscss/issues"
|
|
23
15
|
},
|
|
24
|
-
"
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/Figsh/xfscss.git"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "figsh",
|
|
22
|
+
"type": "commonjs",
|
|
23
|
+
"main": "index.js",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"start": "node index.js",
|
|
26
|
+
"test": "mocha"
|
|
27
|
+
},
|
|
25
28
|
"dependencies": {
|
|
29
|
+
"dotenv": "^16.0.3",
|
|
26
30
|
"express": "^4.18.2",
|
|
27
|
-
"
|
|
31
|
+
"fscss": "^1.1.1"
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
34
|
+
"chai": "^4.3.4",
|
|
35
|
+
"mocha": "^10.0.0"
|
|
32
36
|
}
|
|
33
37
|
}
|
package/strg/xvars.fscss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
/* == as initial values == */
|
|
3
|
+
$init-border: 2px groove lightgreen;
|
|
4
|
+
$init-outline: 2px groove lightblue;
|
|
5
|
+
$init-box-size: 1100px;
|
|
6
|
+
$init-color: #312213;
|
|
7
|
+
$init-font: 15px Arial, sans-serif;
|
|
8
|
+
$init-background-stack: linear-gradient(#fee, #eff);
|
|
9
|
+
/* == initial values ended == */
|
|
10
|
+
|
|
11
|
+
/* == as Global variables == */
|
|
12
|
+
$black-du: mx(#,"1");
|
|
13
|
+
$front-card-z-index: 5;
|
|
14
|
+
$back-card-z-index: -1;
|
|
15
|
+
$line-cont: rpt(8,"_");
|
|
16
|
+
/* == Global variables ended == */
|
|
17
|
+
|
package/xfscss.min.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export var text='text';export var url='fromUrl';export var external='fromUrl';export var fromUrl='fromUrl';export var write='text';function inf(host,jsdl){if(typeof jsdl!=='undefined'&&host!=='undefined'){var ht=host.replace(/github/gi, 'gh');var cov=jsdl.replace(/\s*-\>\s*/g, '/').replace(/\n/g, '');var url=`https://cdn.jsdelivr.net/${ht}/${cov}`;var ScrT=document.createElement('script');ScrT.type='text/javascript';ScrT.async='true';ScrT.src=url;document.body.appendChild(ScrT);}}function exec(text,fscss_style_sheet){if(typeof fscss_style_sheet !== 'undefined' && text == 'text'){var doc=document;var SrT = doc.createElement('script');
|
|
2
|
+
SrT.type='text/javascript';SrT.async='true';SrT.src='https://cdn.jsdelivr.net/gh/Figsh/FSCSS@main/rtF4.js ';doc.body.appendChild(SrT);doc.body.innerHTML += (`<style>${fscss_style_sheet}</style>`);}else if(typeof fscss_style_sheet!=='undefined'&&text=='fromUrl'){var doc=document;var SrT=doc.createElement('script');SrT.type = 'text/javascript';SrT.async='true';SrT.src= 'https://combinatronics.io/Figsh/FSCSS/refs/heads/4.0.1/fscss_exec.js ';doc.body.appendChild(SrT);fetch(fscss_style_sheet).then(response =>response.text()).then(data=>{const AJWinDocStyleElement = document.createElement("style");
|
|
3
|
+
AJWinDocStyleElement.innerHTML = `${data}`;
|
|
4
|
+
document.head.appendChild(AJWinDocStyleElement);}).catch(error=>{});}}export{ inf };export{ exec };
|