|
92 | 92 | } |
93 | 93 |
|
94 | 94 | html { |
95 | | - /* overflow-x: hidden; removed to fix sticky nav */ |
| 95 | + overflow-x: hidden; |
96 | 96 | scroll-behavior: smooth; |
97 | 97 | } |
98 | 98 |
|
|
116 | 116 |
|
117 | 117 | .container { |
118 | 118 | width: 100%; |
119 | | - /* Ensure container doesn't exceed viewport */ |
120 | 119 | max-width: 1200px; |
121 | 120 | margin: 0 auto; |
122 | 121 | padding: 0 2rem; |
| 122 | + overflow-x: hidden; |
123 | 123 | } |
124 | 124 |
|
125 | 125 | /* Nav */ |
|
239 | 239 |
|
240 | 240 | @media (max-width: 768px) { |
241 | 241 | nav { |
242 | | - /* flex-wrap: wrap; removed to keep items on same line */ |
243 | | - gap: 0.5rem; |
| 242 | + gap: 0.75rem; |
244 | 243 | 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; |
247 | 256 | } |
248 | 257 |
|
249 | | - /* Hide nav links on mobile to prevent layout issues */ |
250 | 258 | .nav-links { |
251 | 259 | display: none; |
252 | 260 | } |
253 | 261 |
|
254 | | - /* Show only icon on mobile to save space */ |
255 | 262 | .support-text { |
256 | 263 | display: none; |
257 | 264 | } |
258 | 265 |
|
259 | 266 | .support-btn { |
260 | 267 | padding: 0.4rem; |
261 | | - /* Smaller padding for icon-only */ |
262 | 268 | } |
263 | 269 |
|
264 | 270 | .nav-right { |
265 | 271 | gap: 0.5rem; |
266 | | - /* Tighten gap on mobile */ |
| 272 | + flex: 1; |
| 273 | + justify-content: flex-end; |
267 | 274 | } |
268 | 275 |
|
269 | 276 | .logo { |
270 | | - margin-right: 0; |
| 277 | + font-size: 1.1rem; |
271 | 278 | } |
272 | 279 | } |
273 | 280 |
|
|
1256 | 1263 | color: var(--primary); |
1257 | 1264 | } |
1258 | 1265 |
|
| 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 | + |
1259 | 1281 | @media (max-width: 768px) { |
1260 | 1282 | .hamburger { |
1261 | 1283 | display: flex; |
|
1404 | 1426 | <span class="support-text">Sponsor</span> |
1405 | 1427 | </a> |
1406 | 1428 |
|
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> |
1408 | 1430 | <img src="https://img.shields.io/github/downloads/Bharath-code/git-scope/total?style=flat-square&color=7C3AED&label=Downloads" |
1409 | 1431 | alt="Downloads" width="90" height="20" class="nav-badge badge-desktop"> |
1410 | 1432 | <img src="https://img.shields.io/github/downloads/Bharath-code/git-scope/total?style=flat-square&color=7C3AED&label=DL" |
|
1429 | 1451 | <a href="#features" class="mobile-nav-link">Features</a> |
1430 | 1452 | <a href="#blog" class="mobile-nav-link">Blog</a> |
1431 | 1453 | <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> |
1433 | 1460 | </nav> |
1434 | 1461 |
|
1435 | 1462 | <main> |
@@ -1681,6 +1708,10 @@ <h2 style="font-size: 2rem; margin-bottom: 2rem;">Vim-Style Efficiency</h2> |
1681 | 1708 | <kbd class="kb-key">c</kbd> |
1682 | 1709 | <span class="kb-desc">Clear</span> |
1683 | 1710 | </div> |
| 1711 | + <div class="kb-key-group"> |
| 1712 | + <kbd class="kb-key">w</kbd> |
| 1713 | + <span class="kb-desc">Workspace</span> |
| 1714 | + </div> |
1684 | 1715 | <div class="kb-key-group"> |
1685 | 1716 | <kbd class="kb-key">g</kbd> |
1686 | 1717 | <span class="kb-desc">graph</span> |
|
0 commit comments