From e950239d1c033992a545bee6e95b049147aa39ac Mon Sep 17 00:00:00 2001 From: Shelwin Date: Thu, 3 Oct 2024 15:50:12 -0500 Subject: [PATCH 01/20] lightmode fix --- docs/src/_templates/header.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/_templates/header.html b/docs/src/_templates/header.html index bb60adbf..3136f9f6 100644 --- a/docs/src/_templates/header.html +++ b/docs/src/_templates/header.html @@ -31,7 +31,7 @@ background-clip: padding-box, border-box, border-box; background-origin: border-box; border: calc(0.08 * 1rem) solid transparent; - color: #030303; + color: #fff; background-image: linear-gradient(#121213, #121213), linear-gradient(#121213 50%, rgba(18,18,19,0.6) 80%, rgba(18,18,19,0)), @@ -55,12 +55,14 @@ } .dark .github-star-btn { + color: #030303; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff 50%, rgba(255,255,255,0.6) 80%, rgba(0,0,0,0)), linear-gradient(90deg, hsl(var(--color-1)), hsl(var(--color-5)), hsl(var(--color-3)), hsl(var(--color-4)), hsl(var(--color-2))); } + @media (max-width: 640px) { .github-star-btn { font-size: 12px; From dcd9d2670a1de3586b575afe8de23c2cd2e15ed6 Mon Sep 17 00:00:00 2001 From: Shelwin Date: Thu, 3 Oct 2024 15:53:10 -0500 Subject: [PATCH 02/20] chore: whitespace --- docs/src/_templates/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/_templates/header.html b/docs/src/_templates/header.html index 3136f9f6..5e0129f6 100644 --- a/docs/src/_templates/header.html +++ b/docs/src/_templates/header.html @@ -55,7 +55,7 @@ } .dark .github-star-btn { - color: #030303; + color: #030303; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff 50%, rgba(255,255,255,0.6) 80%, rgba(0,0,0,0)), From 805c698ad697bdff9f9f73ef31c8ace780e70bd2 Mon Sep 17 00:00:00 2001 From: Shelwin Date: Thu, 3 Oct 2024 19:19:33 -0500 Subject: [PATCH 03/20] prelim nav --- docs/src/_templates/header.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/src/_templates/header.html b/docs/src/_templates/header.html index 5e0129f6..5398b5bf 100644 --- a/docs/src/_templates/header.html +++ b/docs/src/_templates/header.html @@ -62,18 +62,20 @@ linear-gradient(90deg, hsl(var(--color-1)), hsl(var(--color-5)), hsl(var(--color-3)), hsl(var(--color-4)), hsl(var(--color-2))); } +nav a { + white-space: nowrap; +} + @media (max-width: 640px) { .github-star-btn { font-size: 12px; padding: 0.4rem 0.8rem; } - .github-star-btn .star-icon, - .github-star-btn .star-count { - display: none; - } } + + {%- if logo_url %} Logo @@ -88,14 +90,14 @@ {% endblock header_logo %} {%- block header_right %} -
+
{%- if docsearch or hasdoc('search') %} -
- + - -
+
{%- include "searchbox.html" %}
{%- endif %} {%- block extra_header_link_icons %} -