yummacss 3.2.0 → 3.2.2
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 +1 -4
- package/dist/index.js +1 -1
- package/package.json +60 -60
- package/src/_base.scss +150 -231
- package/src/_fonts.scss +0 -3
- package/src/abstracts/functions/_index.scss +2 -2
- package/src/index.scss +1 -3
- package/src/utilities/maps/box-model/_dimension.scss +26 -26
- package/src/utilities/maps/box-model/_height.scss +26 -26
- package/src/utilities/maps/box-model/_margin.scss +11 -11
- package/src/utilities/maps/box-model/_padding.scss +11 -11
- package/src/utilities/maps/box-model/_width.scss +26 -26
- package/src/utilities/maps/flexbox/_flex-basis.scss +12 -12
- package/src/utilities/maps/grid/_gap.scss +5 -5
package/README.md
CHANGED
|
@@ -11,10 +11,7 @@ Yumma CSS is a CSS framework packed with a set of abbreviated utility classes fo
|
|
|
11
11
|
|
|
12
12
|
### Installing
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
environment running
|
|
16
|
-
|
|
17
|
-
Install Yumma CSS
|
|
14
|
+
Install `yummacss` as a dev dependency
|
|
18
15
|
|
|
19
16
|
```
|
|
20
17
|
npm i yummacss -D
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Command as rt}from"commander";import{writeFileSync as V}from"fs";var x={};function k(){return x}function F(t){x=t}function B(t){let o=JSON.stringify(t);return x.configHash!==o}import{existsSync as E}from"fs";import{dirname as S,join as p}from"path";import*as v from"sass-embedded";import{fileURLToPath as N}from"url";function H(){let t=N(import.meta.url),o=S(t);for(;o!==S(o);){let i=p(o,"package.json");if(E(i))return o;o=S(o)}return o}var b=H();async function O(t){let o=t.buildOptions.reset?"index.scss":"core.scss",i=await v.compileAsync(p(b,"src",o),{style:"expanded",loadPaths:[p(b,"src")],importers:[{findFileUrl(e){return new URL(e,`file://${p(b,"src/")}`)}}]});return{css:i.css,dependencies:i.loadedUrls.filter(e=>e.protocol==="file:").map(e=>N(e))}}import{existsSync as _}from"fs";import{join as A}from"path";import{pathToFileURL as Z}from"url";import{z as q}from"zod";import{z as c}from"zod";var a="yumma.config.js",u=c.object({source:c.array(c.string()).default([""]),output:c.string().default(""),buildOptions:c.object({reset:c.boolean().default(!0),minify:c.boolean().default(!1)}).default({reset:!0,minify:!1})});var r={build:{start:"Building...",success:(t,o)=>`Build done in ${t}ms. (${o})`,fail:"Build failed."},init:{fail:"Config failed.",invalid:"Invalid config.",notFound:"Config not found.",success:"Config created."},watch:{start:"Watching...",fail:"Watch failed."},common:{unknownError:"Something went wrong, and we don't know what."}};import f from"ora";var R=t=>f({spinner:"sand",color:"white"}).start(t),D=t=>f().fail(t),L=t=>f().info(t),M=t=>f().succeed(t),W=t=>f().warn(t),s={error:D,info:L,progress:R,success:M,warn:W};async function g(){let t=A(process.cwd(),a),o=Z(t).href;try{let{default:i}=await import(o);return u.parse(i)}catch(i){throw _(a)?i instanceof q.ZodError&&(s.progress(r.init.invalid).fail(r.init.invalid),process.exit(1)):(s.progress(r.init.notFound).warn(r.init.notFound),process.exit(1)),i}}import{transform as G}from"lightningcss";function T(t,o){return G({filename:"style.css",code:Buffer.from(t),minify:o.buildOptions.minify,sourceMap:!1}).code.toString()}import{globby as K}from"globby";import{PurgeCSS as Q}from"purgecss";async function z(t,o){return(await new Q().purge({content:await K(o.source),css:[{raw:t}],defaultExtractor:e=>e.match(/[\w-/\\:]+/g)||[]}))[0].css}async function m(t,o=!1){let i=s.progress(r.build.start),e=Date.now();try{let n=t||await g(),y=k(),I=B(n),w;if(o||I||!y.css){let C=await O(n);w=C.css,F({configHash:JSON.stringify(n),css:C.css,dependencies:C.dependencies})}else w=y.css;let U=await z(w,n),$=T(U,n);V(n.output,$),i.succeed(r.build.success(Date.now()-e,n.output))}catch{i.fail(r.build.fail),process.exit(1)}}import{existsSync as X,readFileSync as Y,writeFileSync as tt}from"fs";function ot(){try{if(X("package.json"))return JSON.parse(Y("package.json","utf-8")).type==="module"?"esm":"cjs"}catch{s.error(r.common.unknownError)}return"cjs"}function it(){let t=u.parse({});return ot()==="esm"?{filename:a,content:`export default ${JSON.stringify(t,null,2)};`}:{filename:a,content:`module.exports = ${JSON.stringify(t,null,2)};`}}function J(){let t=s.progress("Initializing config...");try{let{filename:o,content:i}=it();tt(o,i),t.succeed(r.init.success)}catch{t.fail(r.init.fail),process.exit(1)}}import et from"chokidar";import{globby as nt}from"globby";var d,h=null,j=new Set;async function P(){try{let e=function(n,y){j.add(n),h&&clearTimeout(h),h=setTimeout(async()=>{j.size>0&&(await m(d,!0),j.clear()),h=null},500)};var t=e;d=await g(),await m(d,!0),s.info(r.watch.start);let o=await nt(d.source);et.watch(o,{awaitWriteFinish:{pollInterval:50,stabilityThreshold:200},ignored:/(^|[/\\])\../,ignoreInitial:!0,persistent:!0}).on("add",n=>e(n,"added")).on("change",n=>e(n,"changed")).on("unlink",n=>e(n,"removed"))}catch{s.error(r.watch.fail),process.exit(1)}}var l=new rt;l.name("yummacss").description("Main command");l.command("init").description("Initialize config")
|
|
1
|
+
import{Command as rt}from"commander";import{writeFileSync as V}from"fs";var x={};function k(){return x}function F(t){x=t}function B(t){let o=JSON.stringify(t);return x.configHash!==o}import{existsSync as E}from"fs";import{dirname as S,join as p}from"path";import*as v from"sass-embedded";import{fileURLToPath as N}from"url";function H(){let t=N(import.meta.url),o=S(t);for(;o!==S(o);){let i=p(o,"package.json");if(E(i))return o;o=S(o)}return o}var b=H();async function O(t){let o=t.buildOptions.reset?"index.scss":"core.scss",i=await v.compileAsync(p(b,"src",o),{style:"expanded",loadPaths:[p(b,"src")],importers:[{findFileUrl(e){return new URL(e,`file://${p(b,"src/")}`)}}]});return{css:i.css,dependencies:i.loadedUrls.filter(e=>e.protocol==="file:").map(e=>N(e))}}import{existsSync as _}from"fs";import{join as A}from"path";import{pathToFileURL as Z}from"url";import{z as q}from"zod";import{z as c}from"zod";var a="yumma.config.js",u=c.object({source:c.array(c.string()).default([""]),output:c.string().default(""),buildOptions:c.object({reset:c.boolean().default(!0),minify:c.boolean().default(!1)}).default({reset:!0,minify:!1})});var r={build:{start:"Building...",success:(t,o)=>`Build done in ${t}ms. (${o})`,fail:"Build failed."},init:{fail:"Config failed.",invalid:"Invalid config.",notFound:"Config not found.",success:"Config created."},watch:{start:"Watching...",fail:"Watch failed."},common:{unknownError:"Something went wrong, and we don't know what."}};import f from"ora";var R=t=>f({spinner:"sand",color:"white"}).start(t),D=t=>f().fail(t),L=t=>f().info(t),M=t=>f().succeed(t),W=t=>f().warn(t),s={error:D,info:L,progress:R,success:M,warn:W};async function g(){let t=A(process.cwd(),a),o=Z(t).href;try{let{default:i}=await import(o);return u.parse(i)}catch(i){throw _(a)?i instanceof q.ZodError&&(s.progress(r.init.invalid).fail(r.init.invalid),process.exit(1)):(s.progress(r.init.notFound).warn(r.init.notFound),process.exit(1)),i}}import{transform as G}from"lightningcss";function T(t,o){return G({filename:"style.css",code:Buffer.from(t),minify:o.buildOptions.minify,sourceMap:!1}).code.toString()}import{globby as K}from"globby";import{PurgeCSS as Q}from"purgecss";async function z(t,o){return(await new Q().purge({content:await K(o.source),css:[{raw:t}],defaultExtractor:e=>e.match(/[\w-/\\:]+/g)||[]}))[0].css}async function m(t,o=!1){let i=s.progress(r.build.start),e=Date.now();try{let n=t||await g(),y=k(),I=B(n),w;if(o||I||!y.css){let C=await O(n);w=C.css,F({configHash:JSON.stringify(n),css:C.css,dependencies:C.dependencies})}else w=y.css;let U=await z(w,n),$=T(U,n);V(n.output,$),i.succeed(r.build.success(Date.now()-e,n.output))}catch{i.fail(r.build.fail),process.exit(1)}}import{existsSync as X,readFileSync as Y,writeFileSync as tt}from"fs";function ot(){try{if(X("package.json"))return JSON.parse(Y("package.json","utf-8")).type==="module"?"esm":"cjs"}catch{s.error(r.common.unknownError)}return"cjs"}function it(){let t=u.parse({});return ot()==="esm"?{filename:a,content:`export default ${JSON.stringify(t,null,2)};`}:{filename:a,content:`module.exports = ${JSON.stringify(t,null,2)};`}}function J(){let t=s.progress("Initializing config...");try{let{filename:o,content:i}=it();tt(o,i),t.succeed(r.init.success)}catch{t.fail(r.init.fail),process.exit(1)}}import et from"chokidar";import{globby as nt}from"globby";var d,h=null,j=new Set;async function P(){try{let e=function(n,y){j.add(n),h&&clearTimeout(h),h=setTimeout(async()=>{j.size>0&&(await m(d,!0),j.clear()),h=null},500)};var t=e;d=await g(),await m(d,!0),s.info(r.watch.start);let o=await nt(d.source);et.watch(o,{awaitWriteFinish:{pollInterval:50,stabilityThreshold:200},ignored:/(^|[/\\])\../,ignoreInitial:!0,persistent:!0}).on("add",n=>e(n,"added")).on("change",n=>e(n,"changed")).on("unlink",n=>e(n,"removed"))}catch{s.error(r.watch.fail),process.exit(1)}}var l=new rt;l.name("yummacss").description("Main command");l.command("init").action(J).alias("i").description("Initialize config");l.command("build").action(()=>m().catch(()=>process.exit(1))).alias("b").description("Build styles once");l.command("watch").action(()=>P().catch(()=>process.exit(1))).alias("w").description("Build styles continuously");l.parse(process.argv);
|
package/package.json
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yummacss",
|
|
3
|
-
"version": "3.2.
|
|
4
|
-
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"css-framework",
|
|
7
|
-
"css",
|
|
8
|
-
"design-system",
|
|
9
|
-
"framework",
|
|
10
|
-
"lightningcss",
|
|
11
|
-
"responsive-design",
|
|
12
|
-
"responsive",
|
|
13
|
-
"scss",
|
|
14
|
-
"typescript",
|
|
15
|
-
"yummacss"
|
|
16
|
-
],
|
|
17
|
-
"homepage": "https://yummacss.com",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"author": "Renildo Pereira",
|
|
20
|
-
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"src"
|
|
23
|
-
],
|
|
24
|
-
"type": "module",
|
|
25
|
-
"exports": {
|
|
26
|
-
".": "./dist/index.js"
|
|
27
|
-
},
|
|
28
|
-
"bin": {
|
|
29
|
-
"yummacss": "./dist/index.js"
|
|
30
|
-
},
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/yumma-lib/yumma-css.git"
|
|
34
|
-
},
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "tsup",
|
|
37
|
-
"dev": "tsup --watch",
|
|
38
|
-
"format:cli": "prettier --write cli",
|
|
39
|
-
"format": "prettier --write .",
|
|
40
|
-
"prepublishOnly": "pnpm build"
|
|
41
|
-
},
|
|
42
|
-
"packageManager": "pnpm@10.
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"chokidar": "^4.0.3",
|
|
45
|
-
"commander": "^14.0.0",
|
|
46
|
-
"globby": "^14.1.0",
|
|
47
|
-
"lightningcss": "^1.30.1",
|
|
48
|
-
"ora": "^8.2.0",
|
|
49
|
-
"purgecss": "^7.0.2",
|
|
50
|
-
"sass-embedded": "^1.90.0",
|
|
51
|
-
"zod": "^4.0.17"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@types/node": "^24.2.0",
|
|
55
|
-
"prettier": "^3.6.2",
|
|
56
|
-
"prettier-plugin-organize-imports": "^4.2.0",
|
|
57
|
-
"tsup": "^8.5.0",
|
|
58
|
-
"typescript": "^5.9.2"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "yummacss",
|
|
3
|
+
"version": "3.2.2",
|
|
4
|
+
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css-framework",
|
|
7
|
+
"css",
|
|
8
|
+
"design-system",
|
|
9
|
+
"framework",
|
|
10
|
+
"lightningcss",
|
|
11
|
+
"responsive-design",
|
|
12
|
+
"responsive",
|
|
13
|
+
"scss",
|
|
14
|
+
"typescript",
|
|
15
|
+
"yummacss"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://yummacss.com",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Renildo Pereira",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"yummacss": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/yumma-lib/yumma-css.git"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsup",
|
|
37
|
+
"dev": "tsup --watch",
|
|
38
|
+
"format:cli": "prettier --write cli",
|
|
39
|
+
"format": "prettier --write .",
|
|
40
|
+
"prepublishOnly": "pnpm build"
|
|
41
|
+
},
|
|
42
|
+
"packageManager": "pnpm@10.15.1",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"chokidar": "^4.0.3",
|
|
45
|
+
"commander": "^14.0.0",
|
|
46
|
+
"globby": "^14.1.0",
|
|
47
|
+
"lightningcss": "^1.30.1",
|
|
48
|
+
"ora": "^8.2.0",
|
|
49
|
+
"purgecss": "^7.0.2",
|
|
50
|
+
"sass-embedded": "^1.90.0",
|
|
51
|
+
"zod": "^4.0.17"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/node": "^24.2.0",
|
|
55
|
+
"prettier": "^3.6.2",
|
|
56
|
+
"prettier-plugin-organize-imports": "^4.2.0",
|
|
57
|
+
"tsup": "^8.5.0",
|
|
58
|
+
"typescript": "^5.9.2"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/src/_base.scss
CHANGED
|
@@ -1,231 +1,150 @@
|
|
|
1
|
-
@use "abstracts/variables" as vars;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
button,
|
|
54
|
-
input,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
textarea {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
button
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
b,
|
|
154
|
-
strong {
|
|
155
|
-
font-weight: 700;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Add the correct font size in all browsers.
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
small {
|
|
163
|
-
font-size: 80%;
|
|
164
|
-
line-height: 1.4;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
169
|
-
* 2. Correct the odd `em` font sizing in all browsers.
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
pre,
|
|
173
|
-
code,
|
|
174
|
-
kbd,
|
|
175
|
-
samp {
|
|
176
|
-
font-family: monospace, monospace; /* 1 */
|
|
177
|
-
font-size: 1em; /* 2 */
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** -- Links --
|
|
181
|
-
* 1. Remove underline styling from links by default.
|
|
182
|
-
* 3. Reset color to inherit from parent element.
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
|
-
a {
|
|
186
|
-
color: inherit; /* 3 */
|
|
187
|
-
text-decoration: none; /* 1 */
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** -- Lists --
|
|
191
|
-
* Remove default list styling and padding.
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
ol,
|
|
195
|
-
ul {
|
|
196
|
-
list-style: none;
|
|
197
|
-
padding: 0;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/** -- Tables --
|
|
201
|
-
* 1. Add a consistent font weight for bold text.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
th {
|
|
205
|
-
font-size: 1rem; /* 1 */
|
|
206
|
-
font-weight: 600; /* 1 */
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** -- Miscellaneous --
|
|
210
|
-
* 1. Add the correct height in Firefox.
|
|
211
|
-
* 2. Correct text decoration.
|
|
212
|
-
* 3. Add spacing around horizontal rules.
|
|
213
|
-
*/
|
|
214
|
-
|
|
215
|
-
hr {
|
|
216
|
-
border-top: 1px solid vars.$ycss-color-silver; /* 2 */
|
|
217
|
-
height: 0; /* 1 */
|
|
218
|
-
margin: 1em 0; /* 3 */
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Ensure details and summary elements display correctly.
|
|
223
|
-
*/
|
|
224
|
-
|
|
225
|
-
details {
|
|
226
|
-
display: block;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
summary {
|
|
230
|
-
display: list-item;
|
|
231
|
-
}
|
|
1
|
+
@use "abstracts/variables" as vars;
|
|
2
|
+
|
|
3
|
+
*,
|
|
4
|
+
*::before,
|
|
5
|
+
*::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border: 0 solid;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
* {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
html {
|
|
16
|
+
font-family: vars.$ycss-font-system;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
font-family: inherit;
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
canvas,
|
|
26
|
+
img,
|
|
27
|
+
picture,
|
|
28
|
+
svg,
|
|
29
|
+
video {
|
|
30
|
+
display: block;
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
button,
|
|
35
|
+
input,
|
|
36
|
+
optgroup,
|
|
37
|
+
select,
|
|
38
|
+
textarea {
|
|
39
|
+
background-color: vars.$ycss-color-transparent;
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
padding: 0.5rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button:not([class]),
|
|
45
|
+
input:not([class]),
|
|
46
|
+
optgroup:not([class]),
|
|
47
|
+
select:not([class]),
|
|
48
|
+
textarea:not([class]) {
|
|
49
|
+
border: 1px solid vars.$ycss-color-silver;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
a,
|
|
53
|
+
button,
|
|
54
|
+
input,
|
|
55
|
+
select,
|
|
56
|
+
summary,
|
|
57
|
+
textarea {
|
|
58
|
+
&:focus {
|
|
59
|
+
outline: 2px solid vars.$ycss-color-transparent;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
textarea:not([rows]) {
|
|
64
|
+
min-height: 10em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
button {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
button:disabled,
|
|
72
|
+
input:disabled,
|
|
73
|
+
select:disabled,
|
|
74
|
+
textarea:disabled {
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
opacity: 0.5;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
h1,
|
|
80
|
+
h2,
|
|
81
|
+
h3,
|
|
82
|
+
h4,
|
|
83
|
+
h5,
|
|
84
|
+
h6,
|
|
85
|
+
p {
|
|
86
|
+
overflow-wrap: break-word;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
h1,
|
|
90
|
+
h2,
|
|
91
|
+
h3,
|
|
92
|
+
h4,
|
|
93
|
+
h5,
|
|
94
|
+
h6 {
|
|
95
|
+
font-size: 1rem;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
text-wrap: balance;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
p {
|
|
101
|
+
text-wrap: pretty;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
b,
|
|
105
|
+
strong {
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
small {
|
|
110
|
+
font-size: 80%;
|
|
111
|
+
line-height: 1.4;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
pre,
|
|
115
|
+
code,
|
|
116
|
+
kbd,
|
|
117
|
+
samp {
|
|
118
|
+
font-family: monospace, monospace;
|
|
119
|
+
font-size: 1em;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
a {
|
|
123
|
+
color: inherit;
|
|
124
|
+
text-decoration: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
ol,
|
|
128
|
+
ul {
|
|
129
|
+
list-style: none;
|
|
130
|
+
padding: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
th {
|
|
134
|
+
font-size: 1rem;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
hr {
|
|
139
|
+
border-top: 1px solid vars.$ycss-color-silver;
|
|
140
|
+
height: 0;
|
|
141
|
+
margin: 1em 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
details {
|
|
145
|
+
display: block;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
summary {
|
|
149
|
+
display: list-item;
|
|
150
|
+
}
|
package/src/_fonts.scss
CHANGED
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
.ff-c {
|
|
4
4
|
font-family: vars.$ycss-font-charter;
|
|
5
|
-
font-weight: vars.$ycss-font-weight;
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
.ff-m {
|
|
9
8
|
font-family: vars.$ycss-font-mono;
|
|
10
|
-
font-weight: vars.$ycss-font-weight;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
.ff-s {
|
|
14
12
|
font-family: vars.$ycss-font-system;
|
|
15
|
-
font-weight: vars.$ycss-font-weight;
|
|
16
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@forward "ignore-neutral";
|
|
2
|
-
@forward "create-values";
|
|
1
|
+
@forward "ignore-neutral";
|
|
2
|
+
@forward "create-values";
|
package/src/index.scss
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
-
|
|
6
|
-
$ycss-dimension-map: map.merge(
|
|
7
|
-
(
|
|
8
|
-
"auto": auto,
|
|
9
|
-
"dvh": 100dvh,
|
|
10
|
-
"dvw": 100dvw,
|
|
11
|
-
"fc": fit-content,
|
|
12
|
-
"full": 100%,
|
|
13
|
-
"half": 50%,
|
|
14
|
-
"max": max-content,
|
|
15
|
-
"min": min-content,
|
|
16
|
-
"px": 1px,
|
|
17
|
-
"vh": 100vh,
|
|
18
|
-
"vw": 100vw,
|
|
19
|
-
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
-
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
-
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
-
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
-
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
-
),
|
|
25
|
-
fun.create-values(vars.$ycss-dimension)
|
|
26
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
+
|
|
6
|
+
$ycss-dimension-map: map.merge(
|
|
7
|
+
(
|
|
8
|
+
"auto": auto,
|
|
9
|
+
"dvh": 100dvh,
|
|
10
|
+
"dvw": 100dvw,
|
|
11
|
+
"fc": fit-content,
|
|
12
|
+
"full": 100%,
|
|
13
|
+
"half": 50%,
|
|
14
|
+
"max": max-content,
|
|
15
|
+
"min": min-content,
|
|
16
|
+
"px": 1px,
|
|
17
|
+
"vh": 100vh,
|
|
18
|
+
"vw": 100vw,
|
|
19
|
+
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
+
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
+
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
+
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
+
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
+
),
|
|
25
|
+
fun.create-values(vars.$ycss-dimension)
|
|
26
|
+
);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
-
|
|
6
|
-
$ycss-height-map: map.merge(
|
|
7
|
-
(
|
|
8
|
-
"auto": auto,
|
|
9
|
-
"dvh": 100dvh,
|
|
10
|
-
"dvw": 100dvw,
|
|
11
|
-
"fc": fit-content,
|
|
12
|
-
"full": 100%,
|
|
13
|
-
"half": 50%,
|
|
14
|
-
"max": max-content,
|
|
15
|
-
"min": min-content,
|
|
16
|
-
"px": 1px,
|
|
17
|
-
"vh": 100vh,
|
|
18
|
-
"vw": 100vw,
|
|
19
|
-
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
-
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
-
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
-
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
-
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
-
),
|
|
25
|
-
fun.create-values(vars.$ycss-height)
|
|
26
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
+
|
|
6
|
+
$ycss-height-map: map.merge(
|
|
7
|
+
(
|
|
8
|
+
"auto": auto,
|
|
9
|
+
"dvh": 100dvh,
|
|
10
|
+
"dvw": 100dvw,
|
|
11
|
+
"fc": fit-content,
|
|
12
|
+
"full": 100%,
|
|
13
|
+
"half": 50%,
|
|
14
|
+
"max": max-content,
|
|
15
|
+
"min": min-content,
|
|
16
|
+
"px": 1px,
|
|
17
|
+
"vh": 100vh,
|
|
18
|
+
"vw": 100vw,
|
|
19
|
+
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
+
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
+
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
+
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
+
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
+
),
|
|
25
|
+
fun.create-values(vars.$ycss-height)
|
|
26
|
+
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
|
|
5
|
-
$ycss-margin-map: map.merge(
|
|
6
|
-
(
|
|
7
|
-
"auto": auto,
|
|
8
|
-
"px": 1px,
|
|
9
|
-
),
|
|
10
|
-
fun.create-values(vars.$ycss-margin)
|
|
11
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$ycss-margin-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"px": 1px,
|
|
9
|
+
),
|
|
10
|
+
fun.create-values(vars.$ycss-margin)
|
|
11
|
+
);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
|
|
5
|
-
$ycss-padding-map: map.merge(
|
|
6
|
-
(
|
|
7
|
-
"auto": auto,
|
|
8
|
-
"px": 1px,
|
|
9
|
-
),
|
|
10
|
-
fun.create-values(vars.$ycss-padding)
|
|
11
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$ycss-padding-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"px": 1px,
|
|
9
|
+
),
|
|
10
|
+
fun.create-values(vars.$ycss-padding)
|
|
11
|
+
);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
-
|
|
6
|
-
$ycss-width-map: map.merge(
|
|
7
|
-
(
|
|
8
|
-
"auto": auto,
|
|
9
|
-
"dvh": 100dvh,
|
|
10
|
-
"dvw": 100dvw,
|
|
11
|
-
"fc": fit-content,
|
|
12
|
-
"full": 100%,
|
|
13
|
-
"half": 50%,
|
|
14
|
-
"max": max-content,
|
|
15
|
-
"min": min-content,
|
|
16
|
-
"px": 1px,
|
|
17
|
-
"vh": 100vh,
|
|
18
|
-
"vw": 100vw,
|
|
19
|
-
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
-
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
-
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
-
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
-
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
-
),
|
|
25
|
-
fun.create-values(vars.$ycss-width)
|
|
26
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
@use "../../../abstracts/_breakpoints.scss" as bp;
|
|
5
|
+
|
|
6
|
+
$ycss-width-map: map.merge(
|
|
7
|
+
(
|
|
8
|
+
"auto": auto,
|
|
9
|
+
"dvh": 100dvh,
|
|
10
|
+
"dvw": 100dvw,
|
|
11
|
+
"fc": fit-content,
|
|
12
|
+
"full": 100%,
|
|
13
|
+
"half": 50%,
|
|
14
|
+
"max": max-content,
|
|
15
|
+
"min": min-content,
|
|
16
|
+
"px": 1px,
|
|
17
|
+
"vh": 100vh,
|
|
18
|
+
"vw": 100vw,
|
|
19
|
+
"sm": map.get(bp.$ycss-breakpoints, "sm"),
|
|
20
|
+
"md": map.get(bp.$ycss-breakpoints, "md"),
|
|
21
|
+
"lg": map.get(bp.$ycss-breakpoints, "lg"),
|
|
22
|
+
"xl": map.get(bp.$ycss-breakpoints, "xl"),
|
|
23
|
+
"xxl": map.get(bp.$ycss-breakpoints, "xxl"),
|
|
24
|
+
),
|
|
25
|
+
fun.create-values(vars.$ycss-width)
|
|
26
|
+
);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
|
|
5
|
-
$ycss-flex-basis-map: map.merge(
|
|
6
|
-
(
|
|
7
|
-
"auto": auto,
|
|
8
|
-
"full": 100%,
|
|
9
|
-
"half": 50%,
|
|
10
|
-
),
|
|
11
|
-
fun.create-values(vars.$ycss-flex-basis)
|
|
12
|
-
);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$ycss-flex-basis-map: map.merge(
|
|
6
|
+
(
|
|
7
|
+
"auto": auto,
|
|
8
|
+
"full": 100%,
|
|
9
|
+
"half": 50%,
|
|
10
|
+
),
|
|
11
|
+
fun.create-values(vars.$ycss-flex-basis)
|
|
12
|
+
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
-
@use "../../../abstracts/variables" as vars;
|
|
4
|
-
|
|
5
|
-
$ycss-gap-map: fun.create-values(vars.$ycss-gap);
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../../abstracts/functions/create-values" as fun;
|
|
3
|
+
@use "../../../abstracts/variables" as vars;
|
|
4
|
+
|
|
5
|
+
$ycss-gap-map: fun.create-values(vars.$ycss-gap);
|