sdocs 0.0.34 → 0.0.35
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 +11 -0
- package/dist/ui/styles/sdocs.css +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.0.35] - 2026-07-03
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **The embedded Explorer guards its typography.** Host apps commonly style
|
|
15
|
+
bare `code`, `pre`, and `a` elements; those rules reached into the
|
|
16
|
+
Explorer's UI (shrinking code blocks, recoloring links). The Explorer now
|
|
17
|
+
pins its own font family, sizing, and link color at the `.sdocs-app`
|
|
18
|
+
boundary. Hosts with higher-specificity global rules should still scope
|
|
19
|
+
them away from `.sdocs-app`.
|
|
20
|
+
|
|
10
21
|
## [0.0.34] - 2026-07-03
|
|
11
22
|
|
|
12
23
|
### Fixed
|
package/dist/ui/styles/sdocs.css
CHANGED
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
color: var(--color-base-900);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
/* Guard the Explorer's typography against host element rules when embedded:
|
|
17
|
+
* hosts commonly style bare `code`/`pre`/`a` (e.g. font-size: 0.875em), which
|
|
18
|
+
* would otherwise reach into the Explorer. Sizing stays wrapper-driven. */
|
|
19
|
+
.sdocs-app code,
|
|
20
|
+
.sdocs-app pre {
|
|
21
|
+
font-family: var(--mono);
|
|
22
|
+
font-size: inherit;
|
|
23
|
+
line-height: inherit;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sdocs-app a {
|
|
27
|
+
color: inherit;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
16
31
|
.sdocs-app[data-sdocs-theme='dark'] {
|
|
17
32
|
/* base — layouts, backgrounds, surfaces, borders, text (inverted) */
|
|
18
33
|
--color-base-0: var(--color-zinc-1000);
|