cosmos-docusaurus-theme 2.1.1 → 2.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 CHANGED
@@ -7,6 +7,25 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [2.1.2] — 2026-03-17
11
+
12
+ ### Fixed
13
+
14
+ - **Mobile navbar sidebar**: `.navbar-sidebar` had no background rule —
15
+ Infima's default rendered it white in both light and dark mode. Now
16
+ inherits `--ifm-navbar-background-color` (correct for both themes).
17
+ - **Mobile navbar overflow**: external links (e.g. GitHub) in
18
+ `.navbar__items--right` were visible on mobile (≤ 996px), overlapping
19
+ the search bar. Hidden on mobile — accessible via the hamburger menu.
20
+
21
+ ### Changed
22
+
23
+ - **eslint**: `9.39.4` → `10.0.3`
24
+ - **@eslint/js**: `9.39.4` → `10.0.1`
25
+ - **aquasecurity/trivy-action**: `0.30.0` → `0.35.0` (SHA pinned)
26
+
27
+ ---
28
+
10
29
  ## [2.1.1] — 2026-03-11
11
30
 
12
31
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-docusaurus-theme",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A clean, dark-first Docusaurus theme aligned with the Rackscope Void/Slate design system — CSS-only, IBM Plex Mono + Outfit typography, brand indigo",
5
5
  "keywords": [
6
6
  "docusaurus",
@@ -44,8 +44,8 @@
44
44
  "audit:check": "npm audit --audit-level=moderate"
45
45
  },
46
46
  "devDependencies": {
47
- "@eslint/js": "^9.39.4",
48
- "eslint": "^9.39.4",
47
+ "@eslint/js": "^10.0.1",
48
+ "eslint": "^10.0.3",
49
49
  "markdownlint-cli": "^0.48.0",
50
50
  "prettier": "^3.8.1",
51
51
  "stylelint": "^17.4.0",
package/src/css/theme.css CHANGED
@@ -339,6 +339,13 @@ button[aria-label*='dark and light mode']:hover::before {
339
339
  color: #e5e5e5;
340
340
  }
341
341
 
342
+ /* ── Mobile navbar sidebar (hamburger menu) ─────────────────────────────── */
343
+ /* Infima's default .navbar-sidebar has no background, causing it to render
344
+ white in both light and dark mode. Match the navbar background color. */
345
+ .navbar-sidebar {
346
+ background-color: var(--ifm-navbar-background-color);
347
+ }
348
+
342
349
  /* ── Sidebar ─────────────────────────────────────────────────────────────── */
343
350
  .theme-doc-sidebar-container {
344
351
  border-right: 1px solid var(--ifm-toc-border-color) !important;
@@ -558,6 +565,14 @@ code {
558
565
  color: var(--ifm-color-primary);
559
566
  }
560
567
 
568
+ /* Hide external navbar links on mobile — they overlap the search bar.
569
+ They remain accessible via the hamburger menu sidebar. */
570
+ @media (width <= 996px) {
571
+ .navbar__items--right > .navbar__item.navbar__link {
572
+ display: none;
573
+ }
574
+ }
575
+
561
576
  /* Color mode toggle — match the ghost button style of external links */
562
577
  button[aria-label*='dark and light mode'] {
563
578
  border: 1px solid var(--ifm-toc-border-color) !important;