cosmos-docusaurus-theme 1.1.4 → 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 CHANGED
@@ -7,6 +7,17 @@ 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
+
10
21
  ## [1.1.4] — 2026-03-10
11
22
 
12
23
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosmos-docusaurus-theme",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "A clean, dark-first Docusaurus CSS theme based on TailAdmin design system with Outfit typography",
5
5
  "keywords": [
6
6
  "docusaurus",
package/src/css/theme.css CHANGED
@@ -178,8 +178,8 @@ button[aria-label*="dark and light mode"]::after {
178
178
  content: attr(title);
179
179
  position: absolute;
180
180
  top: calc(100% + 10px);
181
- left: 50%;
182
- transform: translateX(-50%);
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,13 +195,12 @@ button[aria-label*="dark and light mode"]::after {
195
195
  z-index: 100;
196
196
  }
197
197
 
198
- /* Arrow pointing up toward button */
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
202
  top: calc(100% + 4px);
203
- left: 50%;
204
- transform: translateX(-50%);
203
+ right: 10px;
205
204
  border: 5px solid transparent;
206
205
  border-bottom-color: #1f2937;
207
206
  pointer-events: none;
@@ -370,6 +369,72 @@ code {
370
369
  margin-top: 2.5rem;
371
370
  }
372
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
+
373
438
  /* ── Table of contents (right panel) ─────────────────────────────────────── */
374
439
  .table-of-contents__link {
375
440
  font-size: 0.8125rem;