cosmos-docusaurus-theme 1.1.4 → 1.1.6

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,26 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
7
7
 
8
8
  ---
9
9
 
10
+ ## [1.1.6] — 2026-03-10
11
+
12
+ ### Changed
13
+
14
+ - **Navbar right items**: unified ghost button style — external links (GitHub, npm…)
15
+ and the color mode toggle now share the same bordered appearance:
16
+ `1px solid border`, `border-radius: 8px`, identical hover (indigo border + tint)
17
+ - Replaces the inconsistent circular toggle + plain text link combo
18
+
19
+ ## [1.1.5] — 2026-03-10
20
+
21
+ ### Fixed
22
+
23
+ - **Tooltip**: right-aligned to prevent viewport overflow; appears below button
24
+ - **Tables dark mode**: direct overrides on `th`/`td`/`thead` — CSS variables
25
+ were not cascaded to table cells by Infima
26
+ - **Cards dark mode**: direct `background-color: #111827` override
27
+ - **Breadcrumbs**: explicit active/inactive link colors + separator in dark mode
28
+ - **Toggle button**: subtle hover background for better visibility
29
+
10
30
  ## [1.1.4] — 2026-03-10
11
31
 
12
32
  ### 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.6",
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,102 @@ 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
+ /* ── Right navbar — unified ghost button style ───────────────────────────── */
429
+ /* Both the external links (GitHub, npm…) and the color mode toggle get the */
430
+ /* same bordered ghost button treatment for visual consistency. */
431
+
432
+ /* External links on the right side (GitHub, npm, etc.) */
433
+ .navbar__items--right .navbar__link {
434
+ border: 1px solid var(--ifm-toc-border-color);
435
+ border-radius: 8px;
436
+ padding: 5px 12px;
437
+ font-size: 0.8125rem;
438
+ font-weight: 600;
439
+ display: inline-flex;
440
+ align-items: center;
441
+ gap: 6px;
442
+ transition: border-color 0.15s, background 0.15s, color 0.15s;
443
+ }
444
+
445
+ .navbar__items--right .navbar__link:hover {
446
+ border-color: var(--ifm-color-primary);
447
+ background: rgb(70, 95, 255, 0.08);
448
+ color: var(--ifm-color-primary);
449
+ }
450
+
451
+ /* Color mode toggle — match the ghost button style of external links */
452
+ button[aria-label*="dark and light mode"] {
453
+ border: 1px solid var(--ifm-toc-border-color) !important;
454
+ border-radius: 8px !important;
455
+ padding: 5px 8px !important;
456
+ transition: border-color 0.15s, background 0.15s !important;
457
+ }
458
+
459
+ button[aria-label*="dark and light mode"]:hover {
460
+ border-color: var(--ifm-color-primary) !important;
461
+ background: rgb(70, 95, 255, 0.08) !important;
462
+ }
463
+
464
+ [data-theme='dark'] button[aria-label*="dark and light mode"] {
465
+ color: #e5e5e5;
466
+ }
467
+
373
468
  /* ── Table of contents (right panel) ─────────────────────────────────────── */
374
469
  .table-of-contents__link {
375
470
  font-size: 0.8125rem;