yummacss 3.2.1 → 3.3.0
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/LICENSE +19 -19
- package/README.md +2 -5
- package/dist/index.js +5 -1
- package/package.json +14 -17
- package/src/_base.scss +150 -150
- package/src/_fonts.scss +0 -3
- package/src/index.scss +1 -1
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
Copyright (c) 2023-present Yumma CSS maintained by Renildo Pereira.
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
1
|
+
Copyright (c) 2023-present Yumma CSS maintained by Renildo Pereira.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
20
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -7,14 +7,11 @@ A CSS framework for the web with abbreviated styles.
|
|
|
7
7
|
|
|
8
8
|
## Getting started
|
|
9
9
|
|
|
10
|
-
Yumma CSS is a CSS framework packed with a set of
|
|
10
|
+
Yumma CSS is a CLI-first CSS framework packed with a set of non-opinionated, atomic utility classes designed to minimize and scale your codebase.
|
|
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,5 @@
|
|
|
1
|
-
import{Command as
|
|
1
|
+
import{Command as e}from"commander";import{existsSync as t,writeFileSync as n}from"fs";import{dirname as r,join as i}from"path";import*as a from"sass-embedded";import{fileURLToPath as o,pathToFileURL as s}from"url";import{z as c}from"zod";import l from"ora";import{transform as u}from"lightningcss";import{globby as d}from"globby";import{PurgeCSS as f}from"purgecss";import p from"node:vm";import m from"chokidar";let h={};function ee(){return h}function te(e){h=e}function ne(e){let t=JSON.stringify(e);return h.configHash!==t}function re(){let e=o(import.meta.url),n=r(e);for(;n!==r(n);){let e=i(n,`package.json`);if(t(e))return n;n=r(n)}return n}const g=re();async function _(e){let t=e.buildOptions.reset?`index.scss`:`core.scss`,n=await a.compileAsync(i(g,`src`,t),{style:`expanded`,loadPaths:[i(g,`src`)],importers:[{findFileUrl(e){return new URL(e,`file://${i(g,`src/`)}`)}}]});return{css:n.css,dependencies:n.loadedUrls.filter(e=>e.protocol===`file:`).map(e=>o(e))}}const v=`yumma.config.mjs`,y=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})}),b={build:{start:`Building...`,success:(e,t)=>`Build done in ${e}ms. (${t})`,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.`}},x={error:e=>l().fail(e),info:e=>l().info(e),progress:e=>l({spinner:`sand`,color:`white`}).start(e),success:e=>l().succeed(e),warn:e=>l().warn(e)};async function S(){let e=i(process.cwd(),v),n=s(e).href;try{let{default:e}=await import(n);return y.parse(e)}catch(e){throw t(v)?e instanceof c.ZodError&&(x.progress(b.init.invalid).fail(b.init.invalid),process.exit(1)):(x.progress(b.init.notFound).warn(b.init.notFound),process.exit(1)),e}}function C(e,t){return u({filename:`style.css`,code:Buffer.from(e),minify:t.buildOptions.minify,sourceMap:!1}).code.toString()}async function w(e,t){return(await new f().purge({content:await d(t.source),css:[{raw:e}],defaultExtractor:e=>e.match(/[\w-/\\:]+/g)||[]}))[0].css}async function T(e,t=!1){let r=x.progress(b.build.start),i=Date.now();try{let a=e||await S(),o=ee(),s=ne(a),c;if(t||s||!o.css){let e=await _(a);c=e.css,te({configHash:JSON.stringify(a),css:e.css,dependencies:e.dependencies})}else c=o.css;let l=await w(c,a),u=C(l,a);n(a.output,u),r.succeed(b.build.success(Date.now()-i,a.output))}catch{r.fail(b.build.fail),process.exit(1)}}const{toString:E}=Object.prototype;function D(e){return E.call(e)===`[object RegExp]`}function O(e){let t=typeof e;return e!==null&&(t===`object`||t===`function`)}const{propertyIsEnumerable:k}=Object.prototype;function A(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>k.call(e,t))]}const j=`await.break.case.catch.class.const.continue.debugger.default.delete.do.else.enum.export.extends.false.finally.for.function.if.import.in.instanceof.new.null.return.super.switch.this.throw.true.try.typeof.var.void.while.with.yield.implements.interface.package.private.protected.public.arguments.eval`.split(`.`),M=[`globalThis`,`Infinity`,`NaN`,`undefined`];function N({includeGlobalProperties:e=!1}={}){return new Set([...j,...e?M:[]])}const P=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*/u,F=`(?!${[...N({includeGlobalProperties:!0})].join(`|`)})${P.source}`,I=new RegExp(F,`u`),L=RegExp(`^${F}$`,`u`);function R({exact:e=!0}={}){return e?L:I}const z=new p.Script(`returnValue = functionToRun()`);function B(e,{timeout:t,context:n=p.createContext()}={}){let r=(...r)=>(n.functionToRun=()=>e(...r),z.runInNewContext(n,{timeout:t}),n.returnValue);return Object.defineProperty(r,`name`,{value:`functionTimeout(${e.name||`<anonymous>`})`,configurable:!0}),r}function V(e){return e?.code===`ERR_SCRIPT_EXECUTION_TIMEOUT`}const H={};function U(e,t,{timeout:n}={}){try{return B(()=>structuredClone(e).test(t),{timeout:n,context:H})()}catch(e){if(V(e))return!1;throw e}}const W=R();function G(e){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\`.`);return e.length>1e5?!1:U(W,e,{timeout:1e3})}const K={"\n":String.raw`\n`,"\r":String.raw`\r`," ":String.raw`\t`,"\b":String.raw`\b`,"\f":String.raw`\f`,"\v":String.raw`\v`,"\0":String.raw`\0`};function q(e,t,n){let r=[];return(function e(t,n={},i=``){let a=n.indent||` `,o=n.inlineCharacterLimit===void 0?{newline:`
|
|
2
|
+
`,newlineOrSpace:`
|
|
3
|
+
`,pad:i,indent:i+a}:{newline:`@@__STRINGIFY_OBJECT_NEW_LINE__@@`,newlineOrSpace:`@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@`,pad:`@@__STRINGIFY_OBJECT_PAD__@@`,indent:`@@__STRINGIFY_OBJECT_INDENT__@@`},s=e=>{if(n.inlineCharacterLimit===void 0)return e;let t=e.replaceAll(o.newline,``).replaceAll(o.newlineOrSpace,` `).replaceAll(o.pad,``).replaceAll(o.indent,``);return t.length<=n.inlineCharacterLimit?t:e.replaceAll(o.newline,`
|
|
4
|
+
`).replaceAll(o.newlineOrSpace,`
|
|
5
|
+
`).replaceAll(o.pad,i).replaceAll(o.indent,i+a)};if(r.includes(t))return`"[Circular]"`;let c=typeof t;if(t==null||c===`number`||c===`boolean`||c===`function`||D(t))return String(t);if(c===`bigint`)return String(t)+`n`;if(c===`symbol`){let{description:r}=t;if(r===void 0)return`Symbol()`;if(r?.startsWith(`Symbol.`)&&Symbol[r.slice(7)]===t)return r;let i=Symbol.keyFor(t);return i===void 0?`Symbol(${e(r,n)})`:`Symbol.for(${e(i,n)})`}if(t instanceof Date)return Number.isNaN(t.getTime())?`new Date('Invalid Date')`:`new Date('${t.toISOString()}')`;if(t instanceof Map||t instanceof Set){let c=t instanceof Map,l=c?`Map`:`Set`;if(t.size===0)return`new ${l}()`;r.push(t);let u=[...t].map(t=>{if(c){let[r,s]=t;return o.indent+`[${e(r,n,i+a)}, ${e(s,n,i+a)}]`}return o.indent+e(t,n,i+a)}).join(`,`+o.newlineOrSpace);return r.pop(),s(`new ${l}([${o.newline}${u}${o.newline}${o.pad}])`)}if(Array.isArray(t)){if(t.length===0)return`[]`;r.push(t);let c=t.map((r,s)=>{let c=e(r,n,i+a);return n.transform&&(c=n.transform(t,s,c)),o.indent+c}).join(`,`+o.newlineOrSpace);return r.pop(),s(`[${o.newline}${c}${o.newline}${o.pad}]`)}if(O(t)){let c=A(t);if(n.filter&&(c=c.filter(e=>n.filter(t,e))),c.length===0)return`{}`;r.push(t);let l=c.map(r=>{let s=typeof r==`symbol`,c=s?`[${e(r,n)}]`:G(r)?r:e(r,n),l=e(t[r],n,i+a);return n.transform&&(l=n.transform(t,r,l)),o.indent+c+`: `+l}).join(`,`+o.newlineOrSpace);return r.pop(),s(`{${o.newline}${l}${o.newline}${o.pad}}`)}let l=String(t).replaceAll(`\\`,`\\\\`).replaceAll(/[\u0000-\u001F\u007F]/g,e=>K[e]??`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`);return n.singleQuotes===!1?`"${l.replaceAll(`"`,String.raw`\"`)}"`:`'${l.replaceAll(`'`,String.raw`\'`)}'`})(e,t,n)}function J(){let e=y.parse({});return{filename:v,content:`export default ${q(e,{indent:` `,singleQuotes:!1})};`}}function Y(){let e=x.progress(`Initializing config...`);try{let{filename:t,content:r}=J();n(t,r),e.succeed(b.init.success)}catch{e.fail(b.init.fail),process.exit(1)}}let X,Z=null,Q=new Set;async function ie(){try{X=await S(),await T(X,!0),x.info(b.watch.start);let e=await d(X.source);m.watch(e,{awaitWriteFinish:{pollInterval:50,stabilityThreshold:200},ignored:/(^|[/\\])\../,ignoreInitial:!0,persistent:!0}).on(`add`,e=>t(e,`added`)).on(`change`,e=>t(e,`changed`)).on(`unlink`,e=>t(e,`removed`));function t(e,t){Q.add(e),Z&&clearTimeout(Z),Z=setTimeout(async()=>{Q.size>0&&(await T(X,!0),Q.clear()),Z=null},500)}}catch{x.error(b.watch.fail),process.exit(1)}}const $=new e;$.name(`yummacss`).description(`Main command`),$.command(`init`).action(Y).alias(`i`).description(`Initialize config`),$.command(`build`).action(()=>T().catch(()=>process.exit(1))).alias(`b`).description(`Build styles once`),$.command(`watch`).action(()=>ie().catch(()=>process.exit(1))).alias(`w`).description(`Build styles continuously`),$.parse(process.argv);export{};
|
package/package.json
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yummacss",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A CSS framework for the web with abbreviated styles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css-framework",
|
|
7
|
-
"css",
|
|
8
|
-
"design-system",
|
|
9
|
-
"framework",
|
|
10
|
-
"lightningcss",
|
|
11
|
-
"responsive-design",
|
|
12
|
-
"responsive",
|
|
13
7
|
"scss",
|
|
14
8
|
"typescript",
|
|
15
9
|
"yummacss"
|
|
@@ -32,14 +26,6 @@
|
|
|
32
26
|
"type": "git",
|
|
33
27
|
"url": "git+https://github.com/yumma-lib/yumma-css.git"
|
|
34
28
|
},
|
|
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.0",
|
|
43
29
|
"dependencies": {
|
|
44
30
|
"chokidar": "^4.0.3",
|
|
45
31
|
"commander": "^14.0.0",
|
|
@@ -52,9 +38,20 @@
|
|
|
52
38
|
},
|
|
53
39
|
"devDependencies": {
|
|
54
40
|
"@types/node": "^24.2.0",
|
|
41
|
+
"@types/stringify-object": "^4.0.5",
|
|
55
42
|
"prettier": "^3.6.2",
|
|
56
43
|
"prettier-plugin-organize-imports": "^4.2.0",
|
|
57
|
-
"
|
|
44
|
+
"stringify-object": "^6.0.0",
|
|
45
|
+
"tsdown": "^0.15.0",
|
|
58
46
|
"typescript": "^5.9.2"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsdown",
|
|
53
|
+
"dev": "tsdown --watch",
|
|
54
|
+
"format:cli": "prettier --write cli",
|
|
55
|
+
"format": "prettier --write ."
|
|
59
56
|
}
|
|
60
|
-
}
|
|
57
|
+
}
|
package/src/_base.scss
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
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
|
-
}
|
|
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
|
}
|
package/src/index.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@use "base";
|
|
2
|
-
@use "core";
|
|
2
|
+
@use "core";
|