Skip to content

Commit 74fc3e6

Browse files
committed
Fix mobile navigation layout
Reduce the hero top spacing and compact navigation controls on mobile widths to prevent overflow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2b70e48d-f2cd-45a4-8daa-5c11d535ea08
1 parent 47737c6 commit 74fc3e6

2 files changed

Lines changed: 40 additions & 3 deletions

File tree

site/styles.css

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ nav {
281281
/* ---------- Hero ---------- */
282282
.hero {
283283
text-align: center;
284-
padding: 80px 24px 16px;
284+
padding: 56px 24px 16px;
285285
max-width: 800px;
286286
margin: 0 auto;
287287
}
@@ -1978,7 +1978,35 @@ footer a:hover {
19781978
}
19791979

19801980
.nav-inner {
1981-
padding: 0 16px;
1981+
padding: 0 12px;
1982+
}
1983+
1984+
.logo {
1985+
flex-shrink: 0;
1986+
font-size: 1rem;
1987+
white-space: nowrap;
1988+
}
1989+
1990+
.nav-right {
1991+
gap: 8px;
1992+
}
1993+
1994+
.cmd-bar {
1995+
justify-content: center;
1996+
width: 40px;
1997+
height: 40px;
1998+
padding: 0;
1999+
}
2000+
2001+
.cmd-bar-label {
2002+
display: none;
2003+
}
2004+
2005+
.cmd-bar::before {
2006+
content: "⌕";
2007+
color: var(--accent);
2008+
font-size: 1.2rem;
2009+
line-height: 1;
19822010
}
19832011

19842012
.hero {
@@ -2084,6 +2112,12 @@ footer a:hover {
20842112
}
20852113
}
20862114

2115+
@media (max-width: 360px) {
2116+
.github-link {
2117+
display: none;
2118+
}
2119+
}
2120+
20872121
/* ---------- Responsive: ≤ 500px ---------- */
20882122
@media (max-width: 500px) {
20892123
.hero-actions,

templates/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@
193193
</a>
194194
<button class="theme-toggle" id="themeToggle" aria-label="{{nav.toggleTheme}}">☀️</button>
195195
{{localePicker}}
196-
<div class="cmd-bar" id="searchTrigger">{{search.searchTrigger}} <kbd>⌘K</kbd></div>
196+
<button type="button" class="cmd-bar" id="searchTrigger" aria-label="{{search.searchTrigger}}">
197+
<span class="cmd-bar-label">{{search.searchTrigger}}</span>
198+
<kbd>⌘K</kbd>
199+
</button>
197200
</div>
198201
</div>
199202
</nav>

0 commit comments

Comments
 (0)