glib-web 6.0.0 → 6.0.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/app.scss CHANGED
@@ -1,3 +1,22 @@
1
+ /**
2
+ * Vuetify 3 bundled sanitize.css which reset all element margins via `* { margin: 0; padding: 0 }`.
3
+ * Vuetify 4 dropped sanitize.css in favour of a lighter CSS-layers reset that does NOT zero
4
+ * browser-default margins on block elements. We restore the relevant resets here explicitly so
5
+ * that layout behaves the same as it did under Vuetify 3.
6
+ *
7
+ * Padding is intentionally NOT reset on h1–h6, p, li, figure, figcaption, dl: browsers add no
8
+ * default padding to those elements, so a reset is a visual no-op — but an unlayered `padding: 0`
9
+ * would override Vuetify 4 spacing utilities (pb-*, pt-*, px-* …) which live in
10
+ * @layer vuetify-utilities and lose to any unlayered CSS.
11
+ */
12
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre, ol, ul, li, figure, figcaption, dl, dd {
13
+ margin: 0;
14
+ }
15
+ // Only reset padding where the browser UA actually sets a non-zero default.
16
+ blockquote, pre, ol, ul, dd {
17
+ padding: 0;
18
+ }
19
+
1
20
  .border-\[2px\] {
2
21
  border-width: 2px;
3
22
  }
@@ -35,6 +35,18 @@ export default {
35
35
  cssClasses: function () {
36
36
  const classes = this.$classes().concat("layouts-flow");
37
37
 
38
+ // Use Vuetify utility classes for display/flex-wrap so that responsive
39
+ // display overrides (d-sm-none, d-none, d-md-flex …) provided via the
40
+ // spec's styleClasses live in the same @layer vuetify-utilities.helpers
41
+ // and Vuetify's own CSS source order makes them win over these defaults.
42
+ if (!classes.includes("d-flex") && !classes.includes("d-none") &&
43
+ !classes.includes("d-block") && !classes.includes("d-inline")) {
44
+ classes.push("d-flex");
45
+ }
46
+ if (!classes.some((c) => typeof c === "string" && c.startsWith("flex-"))) {
47
+ classes.push("flex-wrap");
48
+ }
49
+
38
50
  const configs = {
39
51
  'top': 'align-start',
40
52
  'middle': 'align-center',
@@ -148,13 +160,10 @@ export default {
148
160
  };
149
161
  </script>
150
162
 
151
- <style lang="scss" scoped>
152
- .layouts-flow {
153
- display: flex;
154
- flex-wrap: wrap;
155
- }
156
-
157
- /* .layouts-horizontal > div {
158
- display: inline-block;
159
- } */
160
- </style>
163
+ <!-- No CSS for display/flex-wrap here.
164
+ In Vuetify 4, responsive display classes (d-sm-none, d-none …) live in
165
+ @layer vuetify-utilities.helpers. Any author CSS that sets display
166
+ (even in a lower-priority layer) can interfere because of layer ordering
167
+ in the Vite module graph. Instead we add d-flex and flex-wrap as Vuetify
168
+ utility class strings in cssClasses() so they sit in the same layer as
169
+ d-sm-none/d-none and Vuetify's source order makes responsive classes win. -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "glib-web",
4
- "version": "6.0.0",
4
+ "version": "6.0.1",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {