@diagrammo/dgmo-standalone 0.81.0 → 0.83.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/dist/auto.css +12 -5
- package/dist/auto.js +108 -101
- package/dist/element.js +109 -102
- package/package.json +1 -1
package/dist/auto.css
CHANGED
|
@@ -48,9 +48,16 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
48
48
|
* swallowed into a rule they then emit as garbage. */
|
|
49
49
|
|
|
50
50
|
/* === Color-mode visibility (dual-render) ===
|
|
51
|
-
* The dark wrapper also carries
|
|
51
|
+
* The dark wrapper also carries an inline display:none, so a page that never
|
|
52
52
|
* loaded this stylesheet shows the light diagram rather than both of them.
|
|
53
|
-
*
|
|
53
|
+
* The two reveal rules are !important because of it: an inline declaration
|
|
54
|
+
* outranks every normal author rule, and only an important one beats it.
|
|
55
|
+
*
|
|
56
|
+
* That inline style replaced the "hidden" ATTRIBUTE in issue 647. Tailwind v4
|
|
57
|
+
* hides [hidden] with !important from inside a cascade layer, and a layered
|
|
58
|
+
* important declaration outranks an unlayered one at ANY specificity — so no
|
|
59
|
+
* rule here could reveal the dark wrapper, and every diagram on a Tailwind v4
|
|
60
|
+
* host was a zero-height empty box in dark mode.
|
|
54
61
|
* Keep the two host conventions in separate rule blocks — the adapters
|
|
55
62
|
* rewrite by literal replace and a folded rule would half-rewrite. */
|
|
56
63
|
.dgmo-dark {
|
|
@@ -60,13 +67,13 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
60
67
|
display: none;
|
|
61
68
|
}
|
|
62
69
|
[data-theme="dark"] .dgmo-dark {
|
|
63
|
-
display: block;
|
|
70
|
+
display: block !important;
|
|
64
71
|
}
|
|
65
72
|
html.dark .dgmo-light {
|
|
66
73
|
display: none;
|
|
67
74
|
}
|
|
68
75
|
html.dark .dgmo-dark {
|
|
69
|
-
display: block;
|
|
76
|
+
display: block !important;
|
|
70
77
|
}
|
|
71
78
|
|
|
72
79
|
/* === Diagram sizing ===
|
|
@@ -506,7 +513,7 @@ html.dark .dgmo-dark {
|
|
|
506
513
|
display: none;
|
|
507
514
|
}
|
|
508
515
|
.dgmo-theme-dark .dgmo-dark {
|
|
509
|
-
display: block;
|
|
516
|
+
display: block !important;
|
|
510
517
|
}
|
|
511
518
|
.dgmo-theme-dark .dgmo-lightbox-svg {
|
|
512
519
|
background: #1e1e1e;
|