cosmos-docusaurus-theme 1.1.3 → 1.1.5
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 +19 -0
- package/package.json +1 -1
- package/src/css/theme.css +75 -9
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
|
+
## [1.1.5] — 2026-03-10
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Tooltip**: right-aligned to prevent viewport overflow; appears below button
|
|
15
|
+
- **Tables dark mode**: direct overrides on `th`/`td`/`thead` — CSS variables
|
|
16
|
+
were not cascaded to table cells by Infima
|
|
17
|
+
- **Cards dark mode**: direct `background-color: #111827` override
|
|
18
|
+
- **Breadcrumbs**: explicit active/inactive link colors + separator in dark mode
|
|
19
|
+
- **Toggle button**: subtle hover background for better visibility
|
|
20
|
+
|
|
21
|
+
## [1.1.4] — 2026-03-10
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Tooltip now appears **below** the toggle button instead of above (was clipped
|
|
26
|
+
by the top of the viewport since the navbar sits at the very top of the page)
|
|
27
|
+
- Arrow direction corrected accordingly (points up toward the button)
|
|
28
|
+
|
|
10
29
|
## [1.1.3] — 2026-03-10
|
|
11
30
|
|
|
12
31
|
### Added
|
package/package.json
CHANGED
package/src/css/theme.css
CHANGED
|
@@ -177,9 +177,9 @@ button[aria-label*="dark and light mode"] {
|
|
|
177
177
|
button[aria-label*="dark and light mode"]::after {
|
|
178
178
|
content: attr(title);
|
|
179
179
|
position: absolute;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
top: calc(100% + 10px);
|
|
181
|
+
/* Right-align: button sits at the far right of the navbar */
|
|
182
|
+
right: 0;
|
|
183
183
|
padding: 5px 10px;
|
|
184
184
|
background: #111827;
|
|
185
185
|
color: #e5e5e5;
|
|
@@ -195,15 +195,14 @@ button[aria-label*="dark and light mode"]::after {
|
|
|
195
195
|
z-index: 100;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
/* Arrow pointing
|
|
198
|
+
/* Arrow pointing up — aligned with button center */
|
|
199
199
|
button[aria-label*="dark and light mode"]::before {
|
|
200
200
|
content: '';
|
|
201
201
|
position: absolute;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
transform: translateX(-50%);
|
|
202
|
+
top: calc(100% + 4px);
|
|
203
|
+
right: 10px;
|
|
205
204
|
border: 5px solid transparent;
|
|
206
|
-
border-
|
|
205
|
+
border-bottom-color: #1f2937;
|
|
207
206
|
pointer-events: none;
|
|
208
207
|
opacity: 0;
|
|
209
208
|
transition: opacity 0.15s ease;
|
|
@@ -223,7 +222,8 @@ button[aria-label*="dark and light mode"]:hover::before {
|
|
|
223
222
|
}
|
|
224
223
|
|
|
225
224
|
[data-theme='light'] button[aria-label*="dark and light mode"]::before {
|
|
226
|
-
border-
|
|
225
|
+
border-bottom-color: #e5e7eb;
|
|
226
|
+
border-top-color: transparent;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/* ── Navbar ──────────────────────────────────────────────────────────────── */
|
|
@@ -369,6 +369,72 @@ code {
|
|
|
369
369
|
margin-top: 2.5rem;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
+
/* ── Tables — direct overrides (CSS variables not reliably cascaded) ─────── */
|
|
373
|
+
|
|
374
|
+
/* Dark mode: Void gray-800 borders, gray-900 header */
|
|
375
|
+
[data-theme='dark'] table {
|
|
376
|
+
border-color: #1f2937;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-theme='dark'] th,
|
|
380
|
+
[data-theme='dark'] td {
|
|
381
|
+
border-color: #1f2937;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
[data-theme='dark'] thead,
|
|
385
|
+
[data-theme='dark'] thead tr {
|
|
386
|
+
background-color: #111827;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
[data-theme='dark'] tr:nth-child(2n) {
|
|
390
|
+
background-color: rgb(255, 255, 255, 0.03);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* Light mode: Slate gray-200 borders, gray-50 header */
|
|
394
|
+
[data-theme='light'] table {
|
|
395
|
+
border-color: #e5e7eb;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
[data-theme='light'] th,
|
|
399
|
+
[data-theme='light'] td {
|
|
400
|
+
border-color: #e5e7eb;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
[data-theme='light'] thead,
|
|
404
|
+
[data-theme='light'] thead tr {
|
|
405
|
+
background-color: #f9fafb;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* ── Cards — direct background override ──────────────────────────────────── */
|
|
409
|
+
[data-theme='dark'] .card {
|
|
410
|
+
background-color: #111827;
|
|
411
|
+
border-color: #1f2937;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/* ── Breadcrumbs — explicit active + separator colors ────────────────────── */
|
|
415
|
+
.breadcrumbs__link--active,
|
|
416
|
+
.breadcrumbs__item--active .breadcrumbs__link {
|
|
417
|
+
color: var(--ifm-color-primary);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
[data-theme='dark'] .breadcrumbs__item + .breadcrumbs__item::before {
|
|
421
|
+
color: #374151;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
[data-theme='dark'] .breadcrumbs__link:not(.breadcrumbs__link--active) {
|
|
425
|
+
color: #a3a3a3;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* ── Color mode toggle button — subtle hover ─────────────────────────────── */
|
|
429
|
+
button[aria-label*="dark and light mode"]:hover {
|
|
430
|
+
background: rgb(70, 95, 255, 0.08);
|
|
431
|
+
border-radius: 6px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
[data-theme='dark'] button[aria-label*="dark and light mode"] {
|
|
435
|
+
color: #e5e5e5;
|
|
436
|
+
}
|
|
437
|
+
|
|
372
438
|
/* ── Table of contents (right panel) ─────────────────────────────────────── */
|
|
373
439
|
.table-of-contents__link {
|
|
374
440
|
font-size: 0.8125rem;
|