jekyll-theme-zer0 1.31.3 → 1.32.0

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +131 -0
  3. data/_data/backlog.yml +97 -28
  4. data/_data/features.yml +164 -15
  5. data/_data/navigation/admin.yml +26 -8
  6. data/_data/navigation/docs.yml +2 -8
  7. data/_data/theme-manifest.yml +63 -47
  8. data/_data/ui-text.yml +9 -0
  9. data/_includes/README.md +2 -1
  10. data/_includes/components/ai-chat.html +2 -2
  11. data/_includes/components/author-bio.html +3 -1
  12. data/_includes/components/author-card.html +9 -9
  13. data/_includes/components/author-eeat.html +13 -3
  14. data/_includes/components/collection-manager.html +2 -2
  15. data/_includes/components/component-showcase.html +7 -7
  16. data/_includes/components/cookie-consent-needed.html +37 -0
  17. data/_includes/components/cookie-consent.html +15 -5
  18. data/_includes/components/page-feedback.html +9 -5
  19. data/_includes/components/post-card.html +2 -2
  20. data/_includes/components/theme-customizer.html +1 -1
  21. data/_includes/content/comments.html +46 -0
  22. data/_includes/content/giscus.html +22 -13
  23. data/_includes/content/intro.html +17 -1
  24. data/_includes/content/jsonld-software.html +4 -9
  25. data/_includes/core/footer.html +36 -14
  26. data/_includes/navigation/admin-nav.html +110 -63
  27. data/_includes/navigation/section-sidebar.html +20 -20
  28. data/_includes/navigation/sidebar-config.html +17 -8
  29. data/_includes/navigation/sidebar-right.html +16 -2
  30. data/_layouts/README.md +1 -1
  31. data/_layouts/admin.html +49 -20
  32. data/_layouts/article.html +10 -10
  33. data/_layouts/book-story.html +3 -7
  34. data/_layouts/default.html +55 -1
  35. data/_layouts/news.html +8 -7
  36. data/_layouts/note.html +2 -6
  37. data/_layouts/notebook.html +2 -6
  38. data/_layouts/recipe.html +3 -7
  39. data/_layouts/root.html +7 -4
  40. data/_layouts/section.html +43 -42
  41. data/_sass/components/_page-feedback.scss +1 -1
  42. data/_sass/components/_ui-enhancements.scss +22 -0
  43. data/_sass/core/_nav-tree.scss +10 -2
  44. data/_sass/core/_navbar.scss +19 -5
  45. data/_sass/core/_obsidian.scss +19 -3
  46. data/_sass/core/_sidebar-categories.scss +4 -2
  47. data/_sass/core/_sidebar-extras.scss +3 -2
  48. data/_sass/layouts/_admin.scss +60 -0
  49. data/_sass/layouts/_navbar-extras.scss +7 -2
  50. data/_sass/theme/_skins.scss +124 -32
  51. data/_sass/tokens/_color.scss +3 -0
  52. data/_sass/tokens/_layers.scss +12 -5
  53. data/assets/css/main.scss +1 -0
  54. data/assets/js/code-copy.js +30 -2
  55. data/assets/js/setup-wizard.js +2 -2
  56. data/assets/js/ui-enhancements.js +46 -0
  57. data/scripts/ai/README.md +1 -1
  58. data/scripts/bin/audit-consumer +155 -8
  59. data/scripts/bin/manifest +27 -8
  60. data/scripts/bin/validate +3 -2
  61. data/scripts/lib/audit.sh +156 -0
  62. data/scripts/validate-features.rb +20 -2
  63. metadata +5 -2
@@ -120,7 +120,7 @@ layout: root
120
120
  <div class="row align-items-center">
121
121
  <div class="col-auto d-lg-none">
122
122
  <button class="btn btn-outline-light btn-sm" type="button" data-bs-toggle="offcanvas" data-bs-target="#sectionSidebar" aria-controls="sectionSidebar">
123
- <i class="bi bi-list me-1"></i>Topics
123
+ <i class="bi bi-list me-1" aria-hidden="true"></i>Topics
124
124
  </button>
125
125
  </div>
126
126
  <div class="col">
@@ -128,11 +128,11 @@ layout: root
128
128
  <ol class="breadcrumb mb-0">
129
129
  <li class="breadcrumb-item">
130
130
  <a href="{{ news_index_url | relative_url }}" class="text-white-50 text-decoration-none">
131
- <i class="bi bi-newspaper me-1"></i>News
131
+ <i class="bi bi-newspaper me-1" aria-hidden="true"></i>News
132
132
  </a>
133
133
  </li>
134
134
  <li class="breadcrumb-item active text-white" aria-current="page">
135
- {% if page.icon %}<i class="bi bi-{{ page.icon }} me-1"></i>{% endif %}
135
+ {% if page.icon %}<i class="bi bi-{{ page.icon }} me-1" aria-hidden="true"></i>{% endif %}
136
136
  {{ page.title }}
137
137
  </li>
138
138
  </ol>
@@ -140,7 +140,7 @@ layout: root
140
140
  </div>
141
141
  <div class="col-auto">
142
142
  <span class="badge bg-secondary">
143
- <i class="bi bi-file-text me-1"></i>{{ section_posts.size }} article{% if section_posts.size != 1 %}s{% endif %}
143
+ <i class="bi bi-file-text me-1" aria-hidden="true"></i>{{ section_posts.size }} article{% if section_posts.size != 1 %}s{% endif %}
144
144
  </span>
145
145
  </div>
146
146
  </div>
@@ -150,7 +150,8 @@ layout: root
150
150
  {% comment %} Sub-navigation for other sections {% endcomment %}
151
151
  <div class="container-fluid bg-body-tertiary border-bottom py-2 mb-4">
152
152
  <div class="container-fluid px-4">
153
- <nav class="nav nav-pills flex-nowrap overflow-auto" style="scrollbar-width: none;">
153
+ {%- include core/i18n.html -%}
154
+ <nav class="nav nav-pills flex-nowrap overflow-auto" style="scrollbar-width: none;" aria-label="{{ ui.news_sections_label | default: 'News sections' }}">
154
155
  {% for sec_name in news_sections %}
155
156
  {% assign is_active = false %}
156
157
  {% if sec_name == page.category or sec_name == page.title %}
@@ -163,8 +164,8 @@ layout: root
163
164
  {% capture _sec_url %}{{ news_base }}{{ sec_name | slugify }}/{% endcapture %}
164
165
  {% endif %}
165
166
  <a class="nav-link text-nowrap {% if is_active %}active{% else %}text-body-secondary{% endif %}"
166
- href="{{ _sec_url | relative_url }}">
167
- {% if _sec_nav.icon %}<i class="bi {{ _sec_nav.icon }} me-1"></i>{% endif %}
167
+ href="{{ _sec_url | relative_url }}"{% if is_active %} aria-current="page"{% endif %}>
168
+ {% if _sec_nav.icon %}<i class="bi {{ _sec_nav.icon }} me-1" aria-hidden="true"></i>{% endif %}
168
169
  {{ sec_name }}
169
170
  </a>
170
171
  {% endfor %}
@@ -199,7 +200,7 @@ layout: root
199
200
  <header class="section-header mb-4">
200
201
  <div class="d-flex align-items-center mb-3">
201
202
  {% if page.icon %}
202
- <i class="bi bi-{{ page.icon }} fs-1 me-3 text-primary"></i>
203
+ <i class="bi bi-{{ page.icon }} fs-1 me-3 text-primary" aria-hidden="true"></i>
203
204
  {% endif %}
204
205
  <div>
205
206
  <h1 class="display-5 mb-0">{{ page.title }}</h1>
@@ -234,11 +235,11 @@ layout: root
234
235
  <div class="col-lg-6 p-4 p-lg-5 d-flex flex-column justify-content-center">
235
236
  {% if featured_in_section.breaking %}
236
237
  <span class="badge bg-danger mb-3 align-self-start">
237
- <i class="bi bi-lightning-fill me-1"></i>Breaking
238
+ <i class="bi bi-lightning-fill me-1" aria-hidden="true"></i>Breaking
238
239
  </span>
239
240
  {% elsif featured_in_section.featured %}
240
241
  <span class="badge bg-warning text-dark mb-3 align-self-start">
241
- <i class="bi bi-star-fill me-1"></i>Featured
242
+ <i class="bi bi-star-fill me-1" aria-hidden="true"></i>Featured
242
243
  </span>
243
244
  {% endif %}
244
245
  {% if featured_in_section.post_type and featured_in_section.post_type != "standard" %}
@@ -250,7 +251,7 @@ layout: root
250
251
  <p class="lead text-muted mb-4">{{ featured_in_section.excerpt | strip_html | truncate: 180 }}</p>
251
252
  <div class="d-flex align-items-center gap-3 mb-4 flex-wrap">
252
253
  <small class="text-muted">
253
- <i class="bi bi-calendar me-1"></i>{{ featured_in_section.date | date: "%B %d, %Y" }}
254
+ <i class="bi bi-calendar me-1" aria-hidden="true"></i>{{ featured_in_section.date | date: "%B %d, %Y" }}
254
255
  </small>
255
256
  {% if featured_in_section.author %}
256
257
  <small class="text-muted">
@@ -259,7 +260,7 @@ layout: root
259
260
  {% endif %}
260
261
  </div>
261
262
  <a href="{{ featured_in_section.url | relative_url }}" class="btn btn-primary btn-lg align-self-start">
262
- Read Article <i class="bi bi-arrow-right ms-2"></i>
263
+ Read Article <i class="bi bi-arrow-right ms-2" aria-hidden="true"></i>
263
264
  </a>
264
265
  </div>
265
266
  <div class="col-lg-6">
@@ -287,12 +288,12 @@ layout: root
287
288
  {% if subcat_posts_filtered.size > 0 %}
288
289
  <section id="{{ subcat | slugify }}" class="subcategory-section mb-5 pb-4 border-bottom scroll-mt-5">
289
290
  <div class="d-flex justify-content-between align-items-center mb-4">
290
- <h3 class="h4 mb-0">
291
- <i class="bi bi-tag text-primary me-2"></i>{{ subcat | capitalize }}
292
- </h3>
291
+ <h2 class="h4 mb-0">
292
+ <i class="bi bi-tag text-primary me-2" aria-hidden="true"></i>{{ subcat | capitalize }}
293
+ </h2>
293
294
  {% if _tags_linkable %}
294
295
  <a href="{{ tags_base | relative_url }}#{{ subcat | slugify }}" class="btn btn-outline-secondary btn-sm">
295
- View All <i class="bi bi-arrow-right ms-1"></i>
296
+ View All <i class="bi bi-arrow-right ms-1" aria-hidden="true"></i>
296
297
  </a>
297
298
  {% endif %}
298
299
  </div>
@@ -318,18 +319,18 @@ layout: root
318
319
  </a>
319
320
  </div>
320
321
  <div class="card-body">
321
- <h5 class="card-title mb-2">
322
+ <h3 class="card-title h5 mb-2">
322
323
  <a href="{{ spost.url | relative_url }}" class="text-decoration-none text-body-emphasis">
323
324
  {{ spost.title | truncate: 55 }}
324
325
  </a>
325
- </h5>
326
+ </h3>
326
327
  <p class="card-text text-muted small">
327
328
  {{ spost.excerpt | strip_html | truncate: 80 }}
328
329
  </p>
329
330
  </div>
330
331
  <div class="card-footer bg-transparent border-0 pt-0">
331
332
  <small class="text-muted">
332
- <i class="bi bi-calendar me-1"></i>{{ spost.date | date: "%b %d, %Y" }}
333
+ <i class="bi bi-calendar me-1" aria-hidden="true"></i>{{ spost.date | date: "%b %d, %Y" }}
333
334
  </small>
334
335
  </div>
335
336
  </div>
@@ -343,9 +344,9 @@ layout: root
343
344
  {% comment %} All Posts Section {% endcomment %}
344
345
  <section id="all-posts" class="all-posts-section mb-5 scroll-mt-5">
345
346
  <div class="d-flex justify-content-between align-items-center mb-4">
346
- <h3 class="h4 mb-0">
347
- <i class="bi bi-grid text-secondary me-2"></i>All {{ page.title }} Articles
348
- </h3>
347
+ <h2 class="h4 mb-0">
348
+ <i class="bi bi-grid text-secondary me-2" aria-hidden="true"></i>All {{ page.title }} Articles
349
+ </h2>
349
350
  </div>
350
351
 
351
352
  <div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4">
@@ -378,18 +379,18 @@ layout: root
378
379
  <span class="badge bg-light text-dark">{{ apost.tags | first }}</span>
379
380
  {% endif %}
380
381
  </div>
381
- <h5 class="card-title mb-2">
382
+ <h3 class="card-title h5 mb-2">
382
383
  <a href="{{ apost.url | relative_url }}" class="text-decoration-none text-body-emphasis">
383
384
  {{ apost.title | truncate: 55 }}
384
385
  </a>
385
- </h5>
386
+ </h3>
386
387
  <p class="card-text text-muted small">
387
388
  {{ apost.excerpt | strip_html | truncate: 80 }}
388
389
  </p>
389
390
  </div>
390
391
  <div class="card-footer bg-transparent border-0 pt-0">
391
392
  <small class="text-muted">
392
- <i class="bi bi-calendar me-1"></i>{{ apost.date | date: "%b %d, %Y" }}
393
+ <i class="bi bi-calendar me-1" aria-hidden="true"></i>{{ apost.date | date: "%b %d, %Y" }}
393
394
  </small>
394
395
  </div>
395
396
  </div>
@@ -435,12 +436,12 @@ layout: root
435
436
  <div class="position-relative">
436
437
  {% if gpost.breaking %}
437
438
  <span class="badge bg-danger position-absolute top-0 start-0 m-2 z-1">
438
- <i class="bi bi-lightning-fill me-1"></i>Breaking
439
+ <i class="bi bi-lightning-fill me-1" aria-hidden="true"></i>Breaking
439
440
  </span>
440
441
  {% endif %}
441
442
  {% if gpost.featured %}
442
443
  <span class="badge bg-warning text-dark position-absolute top-0 end-0 m-2 z-1">
443
- <i class="bi bi-star-fill me-1"></i>Featured
444
+ <i class="bi bi-star-fill me-1" aria-hidden="true"></i>Featured
444
445
  </span>
445
446
  {% endif %}
446
447
  {% if gpost.post_type and gpost.post_type != "standard" and gpost.post_type != "featured" and gpost.post_type != "breaking" %}
@@ -459,11 +460,11 @@ layout: root
459
460
  <span class="badge bg-light text-dark">{{ tag }}</span>
460
461
  {% endfor %}
461
462
  </div>
462
- <h5 class="card-title mb-2">
463
+ <h2 class="card-title h5 mb-2">
463
464
  <a href="{{ gpost.url | relative_url }}" class="text-decoration-none text-body-emphasis">
464
465
  {{ gpost.title | truncate: 60 }}
465
466
  </a>
466
- </h5>
467
+ </h2>
467
468
  <p class="card-text text-muted small flex-grow-1">
468
469
  {{ gpost.excerpt | strip_html | truncate: 100 }}
469
470
  </p>
@@ -471,7 +472,7 @@ layout: root
471
472
  <div class="card-footer bg-transparent border-top-0">
472
473
  <div class="d-flex justify-content-between align-items-center small text-muted">
473
474
  <span>
474
- <i class="bi bi-calendar me-1"></i>{{ gpost.date | date: "%b %d, %Y" }}
475
+ <i class="bi bi-calendar me-1" aria-hidden="true"></i>{{ gpost.date | date: "%b %d, %Y" }}
475
476
  </span>
476
477
  {% if gpost.author %}
477
478
  <span>
@@ -506,10 +507,10 @@ layout: root
506
507
  <div class="card-body">
507
508
  <div class="d-flex gap-2 mb-2 flex-wrap">
508
509
  {% if lpost.breaking %}
509
- <span class="badge bg-danger"><i class="bi bi-lightning-fill me-1"></i>Breaking</span>
510
+ <span class="badge bg-danger"><i class="bi bi-lightning-fill me-1" aria-hidden="true"></i>Breaking</span>
510
511
  {% endif %}
511
512
  {% if lpost.featured %}
512
- <span class="badge bg-warning text-dark"><i class="bi bi-star-fill me-1"></i>Featured</span>
513
+ <span class="badge bg-warning text-dark"><i class="bi bi-star-fill me-1" aria-hidden="true"></i>Featured</span>
513
514
  {% endif %}
514
515
  {% if lpost.post_type and lpost.post_type != "standard" %}
515
516
  {% include components/post-type-badge.html post_type=lpost.post_type %}
@@ -518,14 +519,14 @@ layout: root
518
519
  <span class="badge bg-light text-dark">{{ tag }}</span>
519
520
  {% endfor %}
520
521
  </div>
521
- <h5 class="card-title">
522
+ <h2 class="card-title h5">
522
523
  <a href="{{ lpost.url | relative_url }}" class="text-decoration-none text-body-emphasis">
523
524
  {{ lpost.title }}
524
525
  </a>
525
- </h5>
526
+ </h2>
526
527
  <p class="card-text text-muted">{{ lpost.excerpt | strip_html | truncate: 200 }}</p>
527
528
  <div class="d-flex gap-3 text-muted small">
528
- <span><i class="bi bi-calendar me-1"></i>{{ lpost.date | date: "%B %d, %Y" }}</span>
529
+ <span><i class="bi bi-calendar me-1" aria-hidden="true"></i>{{ lpost.date | date: "%B %d, %Y" }}</span>
529
530
  {% if lpost.author %}
530
531
  <span>{% include components/author-card.html author=lpost.author style="inline" show_avatar=false %}</span>
531
532
  {% endif %}
@@ -542,7 +543,7 @@ layout: root
542
543
  {% else %}
543
544
  {% comment %} Empty state {% endcomment %}
544
545
  <div class="text-center py-5">
545
- <i class="bi bi-inbox fs-1 text-muted"></i>
546
+ <i class="bi bi-inbox fs-1 text-muted" aria-hidden="true"></i>
546
547
  <p class="text-muted mt-3">No articles in this section yet.</p>
547
548
  <a href="{{ news_index_url | relative_url }}" class="btn btn-outline-primary">
548
549
  Browse all news
@@ -553,10 +554,10 @@ layout: root
553
554
  {% comment %} ========================== {% endcomment %}
554
555
  {% comment %} RELATED SECTIONS {% endcomment %}
555
556
  {% comment %} ========================== {% endcomment %}
556
- <aside class="related-sections mt-5 pt-4 border-top">
557
- <h3 class="h5 mb-3">
558
- <i class="bi bi-compass me-2"></i>Explore Other Sections
559
- </h3>
557
+ <aside class="related-sections mt-5 pt-4 border-top" aria-labelledby="related-sections-heading">
558
+ <h2 class="h5 mb-3" id="related-sections-heading">
559
+ <i class="bi bi-compass me-2" aria-hidden="true"></i>Explore Other Sections
560
+ </h2>
560
561
  <div class="row row-cols-2 row-cols-md-3 row-cols-lg-6 g-3">
561
562
  {% for sec_name in news_sections %}
562
563
  {% unless sec_name == page.category or sec_name == page.title %}
@@ -571,8 +572,8 @@ layout: root
571
572
  <a href="{{ _sec_url | relative_url }}"
572
573
  class="card text-center h-100 text-decoration-none border-0 shadow-sm hover-lift">
573
574
  <div class="card-body py-3">
574
- <i class="bi {{ _sec_nav.icon | default: 'bi-folder' }} fs-4 text-primary mb-2 d-block"></i>
575
- <h6 class="card-title mb-1 small">{{ sec_name }}</h6>
575
+ <i class="bi {{ _sec_nav.icon | default: 'bi-folder' }} fs-4 text-primary mb-2 d-block" aria-hidden="true"></i>
576
+ <h3 class="card-title h6 mb-1 small">{{ sec_name }}</h3>
576
577
  <small class="text-muted">{{ other_section_posts.size }} articles</small>
577
578
  </div>
578
579
  </a>
@@ -13,7 +13,7 @@
13
13
  position: fixed;
14
14
  bottom: var(--zer0-space-fab-offset, 1rem);
15
15
  left: var(--zer0-space-fab-offset, 1rem);
16
- z-index: var(--zer0-layer-fab-feedback, 1051);
16
+ z-index: var(--zer0-layer-fab-feedback, 1032);
17
17
 
18
18
  display: inline-flex;
19
19
  align-items: center;
@@ -572,6 +572,28 @@ a:not(.btn) {
572
572
 
573
573
  // MOVED → _sass/components/_skeleton.scss (token-aware, dark-mode-safe)
574
574
 
575
+ // GFM task lists (#573). kramdown emits
576
+ // `<li class="task-list-item"><input class="task-list-item-checkbox" …>Text`
577
+ // with no whitespace, so without these rules the item keeps its bullet and the
578
+ // box sits flush against its text. The box's width plus its right margin
579
+ // equals its negative left margin, so the text and its wrapped lines keep the
580
+ // list indent. The accessible name is added by assets/js/ui-enhancements.js.
581
+ .task-list-item {
582
+ list-style-type: none;
583
+ }
584
+
585
+ .task-list-item-checkbox {
586
+ width: 1.05em;
587
+ height: 1.05em;
588
+ margin: 0 0.55em 0 -1.6em;
589
+ vertical-align: -0.15em;
590
+ accent-color: var(--zer0-color-primary);
591
+ }
592
+
593
+ .task-list-item-checkbox:not(:disabled) {
594
+ cursor: pointer;
595
+ }
596
+
575
597
  // Print optimizations
576
598
  @media print {
577
599
  .btn,
@@ -42,8 +42,11 @@
42
42
  background-color: var(--bs-tertiary-bg);
43
43
  }
44
44
 
45
+ // Current page: the strong link shade on the subtle fill. #0d6efd was
46
+ // 3.42:1 on #cfe2ff; the palette skins set the same colour on these
47
+ // anchors in _sass/theme/_skins.scss.
45
48
  &.active {
46
- color: var(--bs-primary);
49
+ color: var(--bs-link-hover-color);
47
50
  background-color: var(--bs-primary-bg-subtle);
48
51
  font-weight: 500;
49
52
  }
@@ -56,6 +59,11 @@
56
59
 
57
60
  // Navigation Tree Toggle Buttons
58
61
  .nav-tree-toggle {
62
+ // WCAG 2.5.8 target size: the chevron-only toggles (`btn-sm p-1`) rendered
63
+ // 22px wide and failed axe `target-size` on every sidebar page. The
64
+ // full-width section toggles are already larger, so this only grows those.
65
+ min-width: 24px;
66
+ min-height: 24px;
59
67
  color: var(--bs-body-color);
60
68
  text-decoration: none;
61
69
  border: none;
@@ -116,7 +124,7 @@
116
124
  color: var(--bs-secondary-color);
117
125
 
118
126
  &.active {
119
- color: var(--bs-primary);
127
+ color: var(--bs-link-hover-color);
120
128
  }
121
129
  }
122
130
 
@@ -751,8 +751,14 @@
751
751
  // Enhanced visual feedback for current page
752
752
  // -----------------------------------------------------------------------------
753
753
 
754
+ // The current page's link takes the skin's strong link shade, not the raw
755
+ // brand: #6fa8dc on the #f8f9fa navbar was 2.40:1 for the default air skin
756
+ // (#410, and the site-quality scans of every site on this theme).
757
+ // --bs-link-hover-color is darker than the link in light mode and lighter in
758
+ // dark mode, so it clears 4.5:1 on the navbar for every skin, including the
759
+ // two that keep Bootstrap's #0d6efd (4.27:1 there). The underline follows it.
754
760
  .nav-link[aria-current="page"] {
755
- color: var(--bs-primary);
761
+ color: var(--bs-link-hover-color);
756
762
  font-weight: 600;
757
763
  position: relative;
758
764
 
@@ -764,20 +770,26 @@
764
770
  transform: translateX(-50%);
765
771
  width: 60%;
766
772
  height: 2px;
767
- background-color: var(--bs-primary);
773
+ background-color: currentColor;
768
774
  border-radius: 2px;
769
775
  }
770
776
  }
771
777
 
778
+ // A brand-filled row, so its text is the skin's on-brand ink (white was
779
+ // 2.53:1 on air). #bdNavbar keeps the fill and ink on hover: the
780
+ // `.nav-hover-dropdown .dropdown-item:hover` tint below and the skins' link
781
+ // hover colour would otherwise repaint it.
772
782
  .dropdown-item[aria-current="page"] {
773
783
  background-color: var(--bs-primary);
774
- color: var(--bs-white);
784
+ color: var(--zer0-color-on-primary, var(--bs-white));
775
785
  font-weight: 500;
776
786
  border-radius: 0.375rem;
777
787
  }
778
788
 
779
- .dropdown-item[aria-current="page"]:hover {
789
+ .dropdown-item[aria-current="page"]:hover,
790
+ #bdNavbar .dropdown-item[aria-current="page"]:hover {
780
791
  background-color: var(--bs-primary);
792
+ color: var(--zer0-color-on-primary, var(--bs-white));
781
793
  filter: brightness(0.95);
782
794
  }
783
795
 
@@ -890,8 +902,10 @@
890
902
  border-bottom-color: var(--bs-primary-bg-subtle);
891
903
  }
892
904
 
905
+ // Selected tab: the strong link shade (see the current-page link above);
906
+ // the underline keeps the brand.
893
907
  &.active {
894
- color: var(--bs-primary);
908
+ color: var(--bs-link-hover-color);
895
909
  border-bottom-color: var(--bs-primary);
896
910
  background: transparent;
897
911
  }
@@ -489,9 +489,13 @@
489
489
  // see _sass/theme/_backgrounds.scss), but the id keeps the FAB immune to any
490
490
  // future generic child rule. Mirrors `#aiChatToggle`. See ai-chat.html.
491
491
  //
492
- // Slot 2 on the left-side FAB stack: sits above the page-feedback FAB
493
- // (slot 1 = var(--zer0-space-fab-offset)) — same stacking formula as
494
- // .bd-toc-fab above #backToTopBtn on the right side.
492
+ // Left-side FAB stack (bottom → top):
493
+ // slot 1 #pageFeedbackFab always
494
+ // slot 2 #sidebarFab <lg only (d-lg-none), when the docs sidebar renders
495
+ // slot 2 #obsidianLocalGraphFab at lg+, or <lg on a page without #sidebarFab
496
+ // slot 3 #obsidianLocalGraphFab <lg when #sidebarFab is present (#571)
497
+ // Slot n sits at offset + (n - 1) * (size + gap) — the same stacking formula
498
+ // as .bd-toc-fab above #backToTopBtn on the right side.
495
499
  #obsidianLocalGraphFab.obsidian-local-graph-fab {
496
500
  position: fixed;
497
501
  left: var(--zer0-space-fab-offset, 1rem);
@@ -508,6 +512,18 @@
508
512
  }
509
513
  }
510
514
 
515
+ // Below lg the docs-sidebar FAB claims slot 2, so the graph FAB moves up to
516
+ // slot 3. Without this the two boxes were identical and the graph FAB (higher
517
+ // z-index) swallowed every tap meant for the sidebar FAB (#571).
518
+ @media (max-width: 991.98px) {
519
+ body:has(#sidebarFab) #obsidianLocalGraphFab.obsidian-local-graph-fab {
520
+ bottom: calc(
521
+ var(--zer0-space-fab-offset, 1rem) +
522
+ 2 * (var(--zer0-space-fab-size, 3.5rem) + var(--zer0-space-fab-gap, 0.75rem))
523
+ );
524
+ }
525
+ }
526
+
511
527
  .btn.obsidian-local-graph-toggle {
512
528
  --bs-btn-padding-x: 0;
513
529
  --bs-btn-padding-y: 0;
@@ -54,9 +54,11 @@
54
54
  box-shadow: none;
55
55
  }
56
56
 
57
+ // Open category: text in the strong link shade, not the brand (air was
58
+ // about 2.3:1 on this tint); the accent bar keeps the brand.
57
59
  &:not(.collapsed),
58
60
  &[aria-expanded="true"] {
59
- color: var(--zer0-color-primary);
61
+ color: var(--zer0-color-link-hover);
60
62
  background-color: color-mix(in srgb, var(--zer0-color-primary) 10%, var(--zer0-color-bg-elevated));
61
63
  border-left-color: var(--zer0-color-primary);
62
64
  }
@@ -99,7 +101,7 @@
99
101
  }
100
102
 
101
103
  &.active {
102
- color: var(--zer0-color-primary);
104
+ color: var(--zer0-color-link-hover);
103
105
  font-weight: var(--zer0-font-weight-medium);
104
106
  }
105
107
 
@@ -32,11 +32,12 @@
32
32
 
33
33
  // Smooth scroll behavior is declared once below (see "Smooth Scroll Enhancement")
34
34
 
35
- // Category sidebar active state (nav-tree--categories)
35
+ // Category sidebar active state (nav-tree--categories). Text in the strong
36
+ // link shade: the brand on its own 10% tint failed 4.5:1 on the light skins.
36
37
  .nav-tree--categories .sidebar-categories-link.active {
37
38
  font-weight: var(--zer0-font-weight-medium);
38
39
  background-color: color-mix(in srgb, var(--zer0-color-primary) 10%, transparent);
39
- color: var(--zer0-color-primary);
40
+ color: var(--zer0-color-link-hover);
40
41
  }
41
42
 
42
43
  // Improve sidebar link hover states
@@ -0,0 +1,60 @@
1
+ // Feature: ZER0-050
2
+ // ============================================================================
3
+ // Admin layout (settings and configuration pages)
4
+ // ----------------------------------------------------------------------------
5
+ // _layouts/admin.html + _includes/navigation/admin-nav.html
6
+ // Data: _data/navigation/admin.yml (`group:` drives the sidebar sections)
7
+ // ============================================================================
8
+
9
+ // Header title block. A 10rem basis lets it share the row with the actions
10
+ // from md up; below that the actions wrap onto their own line instead of
11
+ // pushing the row wider than a phone screen.
12
+ .admin-header-title {
13
+ flex: 1 1 10rem;
14
+ }
15
+
16
+ // Sidebar nav. The active item is a tint of the skin's primary
17
+ // (--zer0-color-primary, set per [data-theme-skin]) under the body-emphasis
18
+ // text colour, semibold via the markup's .fw-semibold, instead of Bootstrap's
19
+ // solid --bs-primary pill. Skin link colours sit at about 4.5:1 on the plain
20
+ // body background (Bootstrap's #0d6efd is 4.50:1 on white), so link-coloured
21
+ // text on any tint would drop below WCAG AA; the emphasis colour keeps the
22
+ // active label readable on every skin, in light and dark mode.
23
+ .nav-pills.admin-nav {
24
+ --bs-nav-pills-link-active-bg: color-mix(in srgb, var(--zer0-color-primary) 14%, transparent);
25
+ --bs-nav-pills-link-active-color: var(--bs-emphasis-color);
26
+ gap: .75rem;
27
+ }
28
+
29
+ // Small-caps section label (Configure / System / Links). Plain text, not a
30
+ // heading, so the page outline stays h1 → content; the nested list it heads
31
+ // takes its accessible name from it (aria-labelledby).
32
+ .admin-nav-group-label {
33
+ display: block;
34
+ padding: 0 var(--bs-nav-link-padding-x, 1rem) .25rem;
35
+ font-size: .75rem;
36
+ font-weight: 600;
37
+ letter-spacing: .06em;
38
+ text-transform: uppercase;
39
+ color: var(--bs-secondary-color);
40
+ }
41
+
42
+ // Trailing count or status: a plain numeral, or a coloured dot plus a word.
43
+ // Regular weight even on the semibold active item, so the label leads.
44
+ .admin-nav-meta {
45
+ padding-left: .5rem;
46
+ font-size: .75rem;
47
+ font-weight: 400;
48
+ font-variant-numeric: tabular-nums;
49
+ color: var(--bs-secondary-color);
50
+ white-space: nowrap;
51
+ }
52
+
53
+ // The dot is decorative (aria-hidden): the word next to it carries the state.
54
+ .admin-nav-dot {
55
+ display: inline-block;
56
+ width: .5rem;
57
+ height: .5rem;
58
+ margin-right: .3rem;
59
+ border-radius: 50%;
60
+ }
@@ -69,7 +69,10 @@
69
69
  }
70
70
  }
71
71
 
72
- // Left docs sidebar FAB — mirrors .bd-toc-fab on the opposite edge
72
+ // Left docs sidebar FAB — mirrors .bd-toc-fab on the opposite edge.
73
+ // Owns slot 2 of the left-side FAB stack below lg (slot 1 = #pageFeedbackFab);
74
+ // the Obsidian local-graph FAB yields and moves to slot 3 whenever this FAB is
75
+ // on the page (see _sass/core/_obsidian.scss, #571).
73
76
  .bd-sidebar-fab {
74
77
  left: var(--zer0-space-fab-offset, 1rem);
75
78
  z-index: var(--zer0-layer-fab-toc);
@@ -162,9 +165,11 @@
162
165
  color: var(--bs-primary);
163
166
  }
164
167
 
168
+ // Current page: the strong link shade on the subtle fill (brand text was
169
+ // 1.92:1 on #cfe2ff for air; the plain link colour still fails mint).
165
170
  &[aria-current="page"] {
166
171
  font-weight: 600;
167
- color: var(--bs-primary);
172
+ color: var(--bs-link-hover-color);
168
173
  border-color: var(--bs-primary);
169
174
  background-color: var(--bs-primary-bg-subtle);
170
175
  }