cosmos-docusaurus-theme 1.1.0 → 1.1.2
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 +20 -0
- package/package.json +1 -1
- package/src/css/theme.css +50 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,26 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [1.1.2] — 2026-03-10
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `.state-ok`, `.state-warn`, `.state-crit`, `.state-unknown` — aliases for projects
|
|
15
|
+
that use `.state-*` naming convention (identical colors to `.status-*`)
|
|
16
|
+
|
|
17
|
+
## [1.1.1] — 2026-03-09
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **Navbar regression**: dark mode navbar was rendering white with dark text. Root cause:
|
|
22
|
+
`--ifm-navbar-background-color` CSS variable was not reliably applied in Docusaurus 3
|
|
23
|
+
SSG/CSR builds. Fix: add direct CSS property overrides on `.navbar` and `.navbar__link`
|
|
24
|
+
instead of relying solely on CSS custom properties.
|
|
25
|
+
- Dark mode navbar: `background-color: #111827` (Void gray-900) forced directly on element
|
|
26
|
+
- Dark mode footer: `background-color: #030712` (Void gray-950) forced directly
|
|
27
|
+
- Dark mode `.main-wrapper`: `background-color: #030712` forced directly
|
|
28
|
+
- Navbar links/brand/toggle: explicit `color: #e5e5e5` in dark mode
|
|
29
|
+
|
|
10
30
|
## [1.1.0] — 2026-03-09
|
|
11
31
|
|
|
12
32
|
### Added
|
package/package.json
CHANGED
package/src/css/theme.css
CHANGED
|
@@ -176,8 +176,23 @@ html {
|
|
|
176
176
|
background: rgb(70, 95, 255, 0.08);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
+
/* Force direct properties — CSS variables alone are not reliable for navbar
|
|
180
|
+
in all Docusaurus deployment modes (SSG, CSR, file:// local builds). */
|
|
179
181
|
[data-theme='dark'] .navbar {
|
|
180
|
-
|
|
182
|
+
background-color: #111827; /* Void gray-900 — same as AppHeader dark:bg-gray-dark */
|
|
183
|
+
border-bottom-color: #1f2937; /* Void gray-800 */
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
[data-theme='dark'] .navbar__link {
|
|
187
|
+
color: #e5e5e5;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
[data-theme='dark'] .navbar__brand {
|
|
191
|
+
color: #e5e5e5;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
[data-theme='dark'] .navbar__toggle {
|
|
195
|
+
color: #e5e5e5;
|
|
181
196
|
}
|
|
182
197
|
|
|
183
198
|
/* ── Sidebar ─────────────────────────────────────────────────────────────── */
|
|
@@ -347,7 +362,19 @@ code {
|
|
|
347
362
|
}
|
|
348
363
|
|
|
349
364
|
[data-theme='dark'] .footer {
|
|
350
|
-
|
|
365
|
+
background-color: #030712; /* Void gray-950 — AppLayout dark:bg-gray-950 */
|
|
366
|
+
border-top-color: #1f2937; /* Void gray-800 */
|
|
367
|
+
color: #a3a3a3;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* Force dark background on main page body — mirrors AppLayout dark:bg-gray-950 */
|
|
371
|
+
[data-theme='dark'] .main-wrapper {
|
|
372
|
+
background-color: #030712;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/* Doc article area — keep surface color consistent */
|
|
376
|
+
[data-theme='dark'] article {
|
|
377
|
+
color: #e5e5e5;
|
|
351
378
|
}
|
|
352
379
|
|
|
353
380
|
/* ── Pagination nav ───────────────────────────────────────────────────────── */
|
|
@@ -625,3 +652,24 @@ code {
|
|
|
625
652
|
color: #6b7280; /* neutral gray-500 */
|
|
626
653
|
font-weight: 600;
|
|
627
654
|
}
|
|
655
|
+
|
|
656
|
+
/* Aliases for projects that use .state-* naming (e.g. Rackscope docs) */
|
|
657
|
+
.state-ok {
|
|
658
|
+
color: #12b76a;
|
|
659
|
+
font-weight: 600;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.state-warn {
|
|
663
|
+
color: #f79009;
|
|
664
|
+
font-weight: 600;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.state-crit {
|
|
668
|
+
color: #f04438;
|
|
669
|
+
font-weight: 600;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.state-unknown {
|
|
673
|
+
color: #6b7280;
|
|
674
|
+
font-weight: 600;
|
|
675
|
+
}
|