Skip to content

Commit 8ad2d4a

Browse files
Update mobile-menu.css - more pixel fiddling...
Signed-off-by: Andrew Harmel-Law <andrew@harmel-law.com>
1 parent a529398 commit 8ad2d4a

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

site/assets/css/mobile-menu.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@
108108
/* Add left margin to the main wrapper to prevent overlap with sidebar */
109109
.wrapper {
110110
width: auto;
111-
margin-left: 310px; /* Reduced from 330px */
111+
margin-left: 350px; /* Increased to give proper clearance */
112112
margin-right: 50px;
113113
padding-right: 20px;
114-
max-width: none; /* Remove the restrictive max-width */
114+
max-width: none;
115115
}
116116

117-
/* Ensure the header section also respects the sidebar */
117+
/* Ensure the header section stays fixed */
118118
header {
119119
position: fixed;
120120
left: 0;
@@ -123,14 +123,22 @@
123123
}
124124
}
125125

126-
/* For smaller desktop screens, reduce the left margin */
127-
@media screen and (min-width: 769px) and (max-width: 960px) {
126+
/* For medium-width screens (like your current window), still need good spacing */
127+
@media screen and (min-width: 769px) and (max-width: 1100px) {
128128
.wrapper {
129-
margin-left: 290px;
129+
margin-left: 340px; /* Still plenty of space */
130130
margin-right: 30px;
131131
}
132132
}
133133

134+
/* For very wide screens, can add more right margin for better reading width */
135+
@media screen and (min-width: 1400px) {
136+
.wrapper {
137+
margin-left: 350px;
138+
margin-right: 100px;
139+
}
140+
}
141+
134142
/* Ensure mobile layout is unaffected */
135143
@media screen and (max-width: 768px) {
136144
.wrapper {

0 commit comments

Comments
 (0)