Skip to content

Commit 28a8429

Browse files
committed
mobile nav styling
1 parent ae96e00 commit 28a8429

1 file changed

Lines changed: 26 additions & 16 deletions

File tree

docs/src/styles/custom.css

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -882,22 +882,6 @@ nav a[aria-current='page'] {
882882
.custom-header-links {
883883
display: none !important;
884884
}
885-
header div:has(> site-search) {
886-
margin: 0;
887-
}
888-
body:has(.hero) .splash-nav-wrapper {
889-
display: block !important;
890-
position: fixed;
891-
top: 16px;
892-
right: 16px;
893-
z-index: 10;
894-
}
895-
body:has(.hero) header starlight-theme-select label svg.caret {
896-
display: none;
897-
}
898-
}
899-
900-
@media (max-width: 800px) {
901885
header div:has(> site-search) {
902886
margin: 0 2.5rem 0 0;
903887
}
@@ -906,12 +890,32 @@ nav a[aria-current='page'] {
906890
font-size: 1rem !important;
907891
color: var(--sl-color-gray-3) !important;
908892
}
893+
header site-search button span,
894+
header site-search button kbd {
895+
display: none !important;
896+
}
909897
header site-search button:hover {
910898
color: var(--sl-color-text) !important;
911899
}
912900
header starlight-theme-select {
913901
display: none !important;
914902
}
903+
904+
/* Show our custom hamburger only on splash (homepage), fixed to top-right */
905+
body:has(.hero) .splash-nav-wrapper {
906+
display: block !important;
907+
position: fixed;
908+
top: 16px;
909+
right: 16px;
910+
z-index: 10;
911+
}
912+
body:has(.hero) .splash-hamburger-btn {
913+
margin: 0 !important;
914+
}
915+
body:has(.hero) header starlight-theme-select label svg.caret {
916+
display: none;
917+
}
918+
915919
/* Keep theme toggle visible on homepage (splash), compact icon-only */
916920
body:has(.hero) header starlight-theme-select {
917921
display: block !important;
@@ -935,6 +939,12 @@ nav a[aria-current='page'] {
935939
}
936940
}
937941

942+
@media (max-width: 800px) {
943+
body:has(.hero) .splash-nav-wrapper {
944+
top: 12px;
945+
}
946+
}
947+
938948
/* ============================================================
939949
Search dialog — collapse empty results area
940950
============================================================ */

0 commit comments

Comments
 (0)