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.
@@ -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
- :where([hidden]) {
103
- display: none !important;
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
- @for $i from 1 through $n - 1 {
124
- @for $j from 1 through $n - $i {
125
- $a: list.nth($keys, $j);
126
- $b: list.nth($keys, $j + 1);
127
- @if map.get($breakpoints-map, $a) > map.get($breakpoints-map, $b) {
128
- $keys: list.set-nth($keys, $j, $b);
129
- $keys: list.set-nth($keys, $j + 1, $a);
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
  }
@@ -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.0" !default;
38
+ $zeus-version: "1.0.12" !default;
39
39
 
40
40
  // ────────────────────────────────────────────────────────────────
41
41
  // 3. FLUID ENGINE BOUNDS
@@ -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-md, body-bold, body-md-bold,
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" ),