diff --git a/docs/overrides/main.html b/docs/overrides/main.html index 8552958f..7d1c36c9 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -4,6 +4,25 @@ New: Intelligence Digest β€” AI-curated trending resources across 26 categories {% endblock %} +{#- + Slim quick-nav bar rendered below the header on every page (via the `tabs` + block, which is empty here since navigation.tabs is disabled). Gives the key + cross-cutting destinations a persistent, one-click home β€” without the + 18-tab overflow and without collapsing the full left navigation tree. +-#} +{% block tabs %} + +{% endblock %} + {#- JSON-LD structured data (schema.org) for richer search results: declares the WebSite (with a sitelinks SearchAction) and the publishing Organization. diff --git a/docs/static/v2_elite.css b/docs/static/v2_elite.css index 2449e8bb..5f1fd468 100644 --- a/docs/static/v2_elite.css +++ b/docs/static/v2_elite.css @@ -1230,6 +1230,50 @@ input[type="text"] { margin-top: 0; font-size: 1.05rem; } + +/* =================================================================== + Slim quick-nav bar (rendered in the theme `tabs` block, below header) + Persistent one-click access to key destinations on every page. + =================================================================== */ +.nb-quicknav { + background: var(--md-header-bg-color); + border-bottom: 1px solid rgba(255, 255, 255, 0.08); +} +.nb-quicknav__inner { + max-width: 1600px; + margin: 0 auto; + display: flex; + align-items: center; + gap: 1.4rem; + flex-wrap: wrap; + padding: 0.4rem 1.2rem; +} +.nb-quicknav__link { + color: rgba(255, 255, 255, 0.78) !important; + text-decoration: none; + font-size: 0.7rem; + font-weight: 600; + letter-spacing: 0.01em; + white-space: nowrap; + transition: color 0.2s ease, text-shadow 0.2s ease; +} +.nb-quicknav__link:hover { + color: var(--md-accent-fg-color) !important; + text-shadow: 0 0 8px rgba(34, 211, 238, 0.35); +} +.nb-quicknav__link--muted { + opacity: 0.65; + margin-left: auto; /* push V1 Archive to the right edge */ +} +/* On phones the left drawer already exposes navigation; let the bar scroll. */ +@media screen and (max-width: 44.9375em) { + .nb-quicknav__inner { + flex-wrap: nowrap; + overflow-x: auto; + gap: 1rem; + } + .nb-quicknav__link--muted { margin-left: 1rem; } +} .topic-map-dim ul { margin-top: 0.3rem; } diff --git a/v2-mkdocs.yml b/v2-mkdocs.yml index 339f56a4..9f823824 100644 --- a/v2-mkdocs.yml +++ b/v2-mkdocs.yml @@ -114,7 +114,7 @@ extra: extra_css: - https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap - static/extra.css - - static/v2_elite.css?v=2.9.17 + - static/v2_elite.css?v=2.9.27 extra_javascript: - static/v2_filter.js?v=2.9.19