zeus-css 1.0.11 → 1.0.13
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/CHANGELOG.md +112 -0
- package/README.md +2 -1
- package/bin/init.js +15 -0
- package/dist/zeus.css +43 -62
- package/dist/zeus.min.css +1 -1
- package/package.json +15 -10
- package/scss/CHANGELOG.md +104 -291
- package/scss/foundation/core/design/colors/semantic-colors.scss +26 -33
- package/scss/foundation/core/design/typography/typography.scss +0 -36
- package/scss/foundation/core/engine/typography-calc.scss +6 -1
- package/scss/foundation/views/render/html-body.scss +1 -2
- package/scss/foundation/views/render/reset.scss +14 -4
- package/scss/foundation/views/render/root-generator.scss +9 -7
- package/scss/zeus.config.scss +1 -1
- package/scss/zeus.customize.scss +1 -2
- package/scss/zeus.token.sets.example.scss +0 -4
- package/scss/zeus.tokens.json +667 -687
- package/bin/postinstall.js +0 -13
- package/scss/.stylelintrc.json +0 -41
- package/scss/API.md +0 -175
- package/scss/LICENSE +0 -21
- package/scss/README.md +0 -193
- package/scss/cheatsheet.md +0 -249
- package/scss/dist/zeus.css +0 -8465
- package/scss/dist/zeus.css.map +0 -1
- package/scss/dist/zeus.min.css +0 -1
- package/scss/dist/zeus.min.css.map +0 -1
- package/scss/llms.txt +0 -247
- package/scss/package.json +0 -89
- package/scss/scripts/gen-cheatsheet.mjs +0 -178
- package/scss/scripts/gen-tokens.mjs +0 -90
- package/scss/scripts/test-compile.mjs +0 -472
|
@@ -32,11 +32,19 @@
|
|
|
32
32
|
padding: 0;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// Universal box-sizing
|
|
35
|
+
// Universal box-sizing. border-width: 0 keeps every element invisible by
|
|
36
|
+
// default (the browser's own default border-width, ~3px "medium", would
|
|
37
|
+
// otherwise render on every element the moment border-style is forced to
|
|
38
|
+
// solid below) — border-style: solid then means a later border-width/
|
|
39
|
+
// color pair is visible immediately, without it, elements reset with
|
|
40
|
+
// border: 0 (button, input, textarea, select below) stay invisible even
|
|
41
|
+
// after a consumer adds width/color, since style defaults to none.
|
|
36
42
|
*,
|
|
37
43
|
*::before,
|
|
38
44
|
*::after {
|
|
39
45
|
box-sizing: border-box;
|
|
46
|
+
border-width: 0;
|
|
47
|
+
border-style: solid;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
// Remove default margins
|
|
@@ -98,9 +106,11 @@
|
|
|
98
106
|
text-decoration-skip-ink: auto;
|
|
99
107
|
}
|
|
100
108
|
|
|
101
|
-
// Hidden elements
|
|
102
|
-
:
|
|
103
|
-
|
|
109
|
+
// Hidden elements. :not([hidden="until-found"]) keeps beforematch content
|
|
110
|
+
// out of display:none so in-page find (ctrl+F) can still reveal it, per
|
|
111
|
+
// the HTML spec's own recommended selector for this rule.
|
|
112
|
+
:where([hidden]):not([hidden="until-found"]) {
|
|
113
|
+
display: none;
|
|
104
114
|
}
|
|
105
115
|
|
|
106
116
|
// Focus visible
|
|
@@ -120,13 +120,15 @@
|
|
|
120
120
|
@function _zeus-sorted-breakpoint-keys($breakpoints-map) {
|
|
121
121
|
$keys: map.keys($breakpoints-map);
|
|
122
122
|
$n: list.length($keys);
|
|
123
|
-
@
|
|
124
|
-
@for $
|
|
125
|
-
$
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
@if $n > 1 {
|
|
124
|
+
@for $i from 1 through $n - 1 {
|
|
125
|
+
@for $j from 1 through $n - $i {
|
|
126
|
+
$a: list.nth($keys, $j);
|
|
127
|
+
$b: list.nth($keys, $j + 1);
|
|
128
|
+
@if map.get($breakpoints-map, $a) > map.get($breakpoints-map, $b) {
|
|
129
|
+
$keys: list.set-nth($keys, $j, $b);
|
|
130
|
+
$keys: list.set-nth($keys, $j + 1, $a);
|
|
131
|
+
}
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
134
|
}
|
package/scss/zeus.config.scss
CHANGED
|
@@ -35,7 +35,7 @@ $zeus-enable-property-registration: true !default;
|
|
|
35
35
|
// ────────────────────────────────────────────────────────────────
|
|
36
36
|
$zeus-use-prefix: false !default;
|
|
37
37
|
$zeus-class-prefix: "z-" !default; // Used only if $zeus-use-prefix is true
|
|
38
|
-
$zeus-version: "1.0.
|
|
38
|
+
$zeus-version: "1.0.12" !default;
|
|
39
39
|
|
|
40
40
|
// ────────────────────────────────────────────────────────────────
|
|
41
41
|
// 3. FLUID ENGINE BOUNDS
|
package/scss/zeus.customize.scss
CHANGED
|
@@ -55,8 +55,7 @@ $zeus-colors: (
|
|
|
55
55
|
// Available Keys:
|
|
56
56
|
// • Headings: display-xl, display-lg, display-md, h1, h1-light, h2, h2-light,
|
|
57
57
|
// h3, h3-light, h4, h4-light, h5, h5-light, h6, h6-light
|
|
58
|
-
// • Body: body-xl, body-lg, body, body-
|
|
59
|
-
// body-semibold, body-md-semibold, body-medium, body-md-medium,
|
|
58
|
+
// • Body: body-xl, body-lg, body, body-bold, body-semibold, body-medium,
|
|
60
59
|
// body-sm, body-sm-bold, body-sm-semibold, body-xs
|
|
61
60
|
// • UI/Other: label, label-bold, caption, caption-bold, overline,
|
|
62
61
|
// link, link-bold, button, button-lg, button-sm, code, code-sm
|
|
@@ -40,13 +40,9 @@ $zeus-typography: (
|
|
|
40
40
|
"body-xl": ( family: "primary", size: (floor: 20, ceil: 24), lh: 1.6, ls: 0, weight: 400, role: "body" ),
|
|
41
41
|
"body-lg": ( family: "primary", size: (floor: 18, ceil: 20), lh: 1.6, ls: 0, weight: 400, role: "body" ),
|
|
42
42
|
"body": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 400, role: "body" ),
|
|
43
|
-
"body-md": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 400, role: "body" ),
|
|
44
43
|
"body-bold": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 700, role: "body" ),
|
|
45
|
-
"body-md-bold": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 700, role: "body" ),
|
|
46
44
|
"body-semibold": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 600, role: "body" ),
|
|
47
|
-
"body-md-semibold": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 600, role: "body" ),
|
|
48
45
|
"body-medium": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 500, role: "body" ),
|
|
49
|
-
"body-md-medium": ( family: "primary", size: (floor: 16, ceil: 18), lh: 1.6, ls: 0, weight: 500, role: "body" ),
|
|
50
46
|
"body-sm": ( family: "primary", size: (floor: 14, ceil: 16), lh: 1.5, ls: 0, weight: 400, role: "body" ),
|
|
51
47
|
"body-sm-bold": ( family: "primary", size: (floor: 14, ceil: 16), lh: 1.5, ls: 0, weight: 700, role: "body" ),
|
|
52
48
|
"body-sm-semibold": ( family: "primary", size: (floor: 14, ceil: 16), lh: 1.5, ls: 0, weight: 600, role: "body" ),
|