Skip to content

Commit 91509ed

Browse files
committed
feat: Reintroduce overflow-x: hidden to html and .container, refactor mobile navigation styles and structure, and add 'w' for Workspace shortcut.
1 parent 3159726 commit 91509ed

File tree

1 file changed

+44
-13
lines changed

1 file changed

+44
-13
lines changed

docs/index.html

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393

9494
html {
95-
/* overflow-x: hidden; removed to fix sticky nav */
95+
overflow-x: hidden;
9696
scroll-behavior: smooth;
9797
}
9898

@@ -116,10 +116,10 @@
116116

117117
.container {
118118
width: 100%;
119-
/* Ensure container doesn't exceed viewport */
120119
max-width: 1200px;
121120
margin: 0 auto;
122121
padding: 0 2rem;
122+
overflow-x: hidden;
123123
}
124124

125125
/* Nav */
@@ -239,35 +239,42 @@
239239

240240
@media (max-width: 768px) {
241241
nav {
242-
/* flex-wrap: wrap; removed to keep items on same line */
243-
gap: 0.5rem;
242+
gap: 0.75rem;
244243
justify-content: space-between;
245-
padding-left: 1rem;
246-
padding-right: 1rem;
244+
padding: 1rem 1.25rem;
245+
top: 10px;
246+
margin-top: 10px;
247+
}
248+
249+
.nav-separator {
250+
display: none;
251+
}
252+
253+
.nav-badge.badge-desktop,
254+
.nav-badge.badge-mobile {
255+
display: none !important;
247256
}
248257

249-
/* Hide nav links on mobile to prevent layout issues */
250258
.nav-links {
251259
display: none;
252260
}
253261

254-
/* Show only icon on mobile to save space */
255262
.support-text {
256263
display: none;
257264
}
258265

259266
.support-btn {
260267
padding: 0.4rem;
261-
/* Smaller padding for icon-only */
262268
}
263269

264270
.nav-right {
265271
gap: 0.5rem;
266-
/* Tighten gap on mobile */
272+
flex: 1;
273+
justify-content: flex-end;
267274
}
268275

269276
.logo {
270-
margin-right: 0;
277+
font-size: 1.1rem;
271278
}
272279
}
273280

@@ -1256,6 +1263,21 @@
12561263
color: var(--primary);
12571264
}
12581265

1266+
.mobile-nav-badges {
1267+
display: flex;
1268+
flex-direction: column;
1269+
gap: 1.5rem;
1270+
align-items: center;
1271+
margin-top: 1rem;
1272+
padding-top: 2rem;
1273+
border-top: 1px solid rgba(255, 255, 255, 0.1);
1274+
width: 80%;
1275+
}
1276+
1277+
.mobile-nav-badges img {
1278+
height: 24px !important;
1279+
}
1280+
12591281
@media (max-width: 768px) {
12601282
.hamburger {
12611283
display: flex;
@@ -1404,7 +1426,7 @@
14041426
<span class="support-text">Sponsor</span>
14051427
</a>
14061428

1407-
<div style="width: 1px; height: 24px; background: rgba(255,255,255,0.1);"></div>
1429+
<div class="nav-separator" style="width: 1px; height: 24px; background: rgba(255,255,255,0.1);"></div>
14081430
<img src="https://img.shields.io/github/downloads/Bharath-code/git-scope/total?style=flat-square&color=7C3AED&label=Downloads"
14091431
alt="Downloads" width="90" height="20" class="nav-badge badge-desktop">
14101432
<img src="https://img.shields.io/github/downloads/Bharath-code/git-scope/total?style=flat-square&color=7C3AED&label=DL"
@@ -1429,7 +1451,12 @@
14291451
<a href="#features" class="mobile-nav-link">Features</a>
14301452
<a href="#blog" class="mobile-nav-link">Blog</a>
14311453
<a href="#contact" class="mobile-nav-link">Contact</a>
1432-
<a href="https://github.com/Bharath-code/git-scope" target="_blank" class="mobile-nav-link">GitHub</a>
1454+
<div class="mobile-nav-badges">
1455+
<img src="https://img.shields.io/github/downloads/Bharath-code/git-scope/total?style=flat-square&color=7C3AED&label=Downloads"
1456+
alt="Downloads" width="90" height="20">
1457+
<a href="https://github.com/Bharath-code/git-scope" target="_blank" class="mobile-nav-link"
1458+
style="font-size: 1.1rem;">GitHub</a>
1459+
</div>
14331460
</nav>
14341461

14351462
<main>
@@ -1681,6 +1708,10 @@ <h2 style="font-size: 2rem; margin-bottom: 2rem;">Vim-Style Efficiency</h2>
16811708
<kbd class="kb-key">c</kbd>
16821709
<span class="kb-desc">Clear</span>
16831710
</div>
1711+
<div class="kb-key-group">
1712+
<kbd class="kb-key">w</kbd>
1713+
<span class="kb-desc">Workspace</span>
1714+
</div>
16841715
<div class="kb-key-group">
16851716
<kbd class="kb-key">g</kbd>
16861717
<span class="kb-desc">graph</span>

0 commit comments

Comments
 (0)