From fcca664de86ec50381a74d70059df4402d3e493c Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sun, 15 Nov 2026 14:02:31 -0800 Subject: [PATCH 1/2] docs: add a gap between the theme toggle and search, style the toggle as a button Co-Authored-By: Claude Sonnet 5.5 --- docs/theme/fluentcpp.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/theme/fluentcpp.css b/docs/theme/fluentcpp.css index f564626..2f37edd 100644 --- a/docs/theme/fluentcpp.css +++ b/docs/theme/fluentcpp.css @@ -9,3 +9,29 @@ html.dark-mode #projectlogo img { content: url("fluentcpp-sm.png"); } } + +/* Give the theme toggle a visible gap from the search box and make it read as a button. */ +@media screen and (min-width: 768px) { + #MSearchBox { + left: 48px !important; + right: auto !important; + width: calc(var(--side-nav-fixed-width) - 15px - 48px - 15px) !important; + } + + #MSearchField { + width: calc(100% - 66px) !important; + } +} + +doxygen-awesome-dark-mode-toggle { + margin: 0; + border: 1px solid var(--separator-color); + background: var(--page-background-color); + box-shadow: var(--box-shadow); +} + +doxygen-awesome-dark-mode-toggle:hover, +html.dark-mode doxygen-awesome-dark-mode-toggle:hover { + border-color: var(--primary-color); + background-color: var(--primary-light-color); +} From d34619792bed0db8c2714209935c3cb5f1e3ec28 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Sun, 15 Nov 2026 14:06:40 -0800 Subject: [PATCH 2/2] docs: widen the gap between the theme toggle and search box Co-Authored-By: Claude Sonnet 5.5 --- docs/theme/fluentcpp.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/theme/fluentcpp.css b/docs/theme/fluentcpp.css index 2f37edd..b860949 100644 --- a/docs/theme/fluentcpp.css +++ b/docs/theme/fluentcpp.css @@ -13,9 +13,9 @@ html.dark-mode #projectlogo img { /* Give the theme toggle a visible gap from the search box and make it read as a button. */ @media screen and (min-width: 768px) { #MSearchBox { - left: 48px !important; + left: 60px !important; right: auto !important; - width: calc(var(--side-nav-fixed-width) - 15px - 48px - 15px) !important; + width: calc(var(--side-nav-fixed-width) - 60px - 15px) !important; } #MSearchField {