mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Fix sidebar layout: show on wider viewports, sit beside content
- Change sidebar hide breakpoint from 1200px to 768px (mobile only) - Add margin-left to article only between 769px-1200px (when sidebar visible) - Above 1200px: no margin (desktop, centered content) - Below 768px: no margin (mobile, sidebar hidden) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -302,6 +302,13 @@
|
||||
padding: 2rem 5%;
|
||||
}
|
||||
|
||||
/* When sidebar is visible (768px to 1200px), push content over */
|
||||
@media (min-width: 769px) and (max-width: 1200px) {
|
||||
article {
|
||||
margin-left: 140px;
|
||||
}
|
||||
}
|
||||
|
||||
h1, h2, h3 {
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
@@ -1001,8 +1008,8 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Responsive design for tablets and mobile */
|
||||
@media (max-width: 1200px) {
|
||||
/* Responsive design for mobile only */
|
||||
@media (max-width: 768px) {
|
||||
.nav-sidebar {
|
||||
width: 140px;
|
||||
left: -140px;
|
||||
@@ -1052,9 +1059,7 @@
|
||||
#sidebar-toggle:checked ~ .sidebar-toggle-container .sidebar-toggle-btn::before {
|
||||
content: '×';
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
/* iOS-specific optimizations */
|
||||
body {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
|
||||
Reference in New Issue
Block a user