cosmos-docusaurus-theme 2.0.0 → 2.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/css/theme.css +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.0.1] — 2026-03-10
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Tables full-width**: `display:table; width:100%` on desktop (>996px),
|
|
15
|
+
`display:block; overflow-x:auto` on mobile — responsive, never breaks layout
|
|
16
|
+
|
|
10
17
|
## [2.0.0] — 2026-03-10
|
|
11
18
|
|
|
12
19
|
### Added — Native Docusaurus component coverage
|
package/package.json
CHANGED
package/src/css/theme.css
CHANGED
|
@@ -397,6 +397,23 @@ code {
|
|
|
397
397
|
|
|
398
398
|
/* ── Tables — direct overrides (CSS variables not reliably cascaded) ─────── */
|
|
399
399
|
|
|
400
|
+
/* Full-width tables on desktop; scrollable on mobile.
|
|
401
|
+
Infima forces display:block which caps width — we override for desktop,
|
|
402
|
+
and restore scrollable block on narrow viewports. */
|
|
403
|
+
.markdown table {
|
|
404
|
+
display: table !important;
|
|
405
|
+
width: 100% !important;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (width <= 996px) {
|
|
409
|
+
.markdown table {
|
|
410
|
+
display: block !important;
|
|
411
|
+
overflow-x: auto !important;
|
|
412
|
+
max-width: 100% !important;
|
|
413
|
+
width: max-content !important;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
400
417
|
/* Dark mode — Infima applies --ifm-table-head-background directly on th,
|
|
401
418
|
so we must target th explicitly (higher specificity than thead). */
|
|
402
419
|
[data-theme='dark'] table {
|