@diagrammo/dgmo-standalone 0.74.0 → 0.76.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 +20 -10
- package/dist/auto.js +156 -139
- package/dist/element.js +157 -140
- package/package.json +1 -1
package/dist/auto.css
CHANGED
|
@@ -38,10 +38,21 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/* @diagrammo/dgmo block — standard embed chrome.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Dark mode is keyed on a data-theme="dark" attribute (Starlight, Docusaurus)
|
|
42
|
+
* AND an html.dark class (Tailwind, next-themes, VitePress), so all of those
|
|
43
|
+
* work as shipped. Add your own selector if your site marks dark a third way.
|
|
44
|
+
*
|
|
45
|
+
* No selector is spelled in bracket form anywhere in these comments on
|
|
46
|
+
* purpose: the adapters that re-key the attribute rules onto another host's
|
|
47
|
+
* signal match that exact substring, and a mention inside a comment would be
|
|
48
|
+
* swallowed into a rule they then emit as garbage. */
|
|
43
49
|
|
|
44
|
-
/* === Color-mode visibility (dual-render) ===
|
|
50
|
+
/* === Color-mode visibility (dual-render) ===
|
|
51
|
+
* The dark wrapper also carries the "hidden" ATTRIBUTE, so a page that never
|
|
52
|
+
* loaded this stylesheet shows the light diagram rather than both of them.
|
|
53
|
+
* Every rule below is author-origin and therefore still overrides it.
|
|
54
|
+
* Keep the two host conventions in separate rule blocks — the adapters
|
|
55
|
+
* rewrite by literal replace and a folded rule would half-rewrite. */
|
|
45
56
|
.dgmo-dark {
|
|
46
57
|
display: none;
|
|
47
58
|
}
|
|
@@ -51,6 +62,12 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
51
62
|
[data-theme="dark"] .dgmo-dark {
|
|
52
63
|
display: block;
|
|
53
64
|
}
|
|
65
|
+
html.dark .dgmo-light {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
html.dark .dgmo-dark {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
54
71
|
|
|
55
72
|
/* === Diagram sizing ===
|
|
56
73
|
* SVGs are emitted with viewBox only (no fixed width/height). Force them to
|
|
@@ -485,13 +502,6 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
|
|
|
485
502
|
}
|
|
486
503
|
}
|
|
487
504
|
|
|
488
|
-
.dgmo-theme-dark selectors if your site uses .dark or
|
|
489
|
-
* another color-mode convention. */
|
|
490
|
-
|
|
491
|
-
/* === Color-mode visibility (dual-render) === */
|
|
492
|
-
.dgmo-dark {
|
|
493
|
-
display: none;
|
|
494
|
-
}
|
|
495
505
|
.dgmo-theme-dark .dgmo-light {
|
|
496
506
|
display: none;
|
|
497
507
|
}
|