Skip to content

Commit a0b4625

Browse files
Update mobile-menu.css
Signed-off-by: Andrew Harmel-Law <andrew@harmel-law.com>
1 parent ddbc368 commit a0b4625

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

site/assets/css/mobile-menu.css

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -103,61 +103,65 @@
103103
}
104104
}
105105

106-
/* Fix for desktop layout overlap - make sidebar wider */
106+
/* Fix for desktop layout overlap - force sidebar to be wider */
107107
@media screen and (min-width: 769px) {
108-
/* Increase sidebar width to accommodate content */
108+
/* Force increase sidebar width to accommodate content */
109109
header {
110-
position: fixed;
111-
left: 0;
112-
top: 0;
113-
width: 320px; /* Increased from 270px to fit the buttons */
114-
padding: 50px 30px 50px 30px; /* Add more horizontal padding */
110+
position: fixed !important;
111+
left: 0 !important;
112+
top: 0 !important;
113+
width: 340px !important; /* Wider to fit buttons comfortably */
114+
padding: 50px 20px !important;
115115
}
116116

117-
/* Add left margin to main content to match new sidebar width */
117+
/* Force main content to move right to avoid overlap */
118118
.wrapper {
119-
width: auto;
120-
margin-left: 380px; /* Sidebar width (320px) + spacing (60px) */
121-
margin-right: 50px;
122-
padding-right: 20px;
123-
max-width: none;
119+
width: auto !important;
120+
margin-left: 380px !important; /* Sidebar width + spacing */
121+
margin-right: 50px !important;
122+
padding-right: 20px !important;
123+
max-width: none !important;
124+
}
125+
126+
/* Make sure sidebar content has room */
127+
header .inner {
128+
width: 100% !important;
124129
}
125130
}
126131

127132
/* For medium-width screens */
128133
@media screen and (min-width: 769px) and (max-width: 1100px) {
129134
header {
130-
width: 300px;
131-
padding: 50px 25px 50px 25px;
135+
width: 320px !important;
132136
}
133137

134138
.wrapper {
135-
margin-left: 350px;
136-
margin-right: 30px;
139+
margin-left: 360px !important;
140+
margin-right: 30px !important;
137141
}
138142
}
139143

140144
/* For very wide screens */
141145
@media screen and (min-width: 1400px) {
142146
.wrapper {
143-
margin-left: 380px;
144-
margin-right: 100px;
147+
margin-left: 380px !important;
148+
margin-right: 100px !important;
145149
}
146150
}
147151

148152
/* Ensure mobile layout is unaffected */
149153
@media screen and (max-width: 768px) {
150154
header {
151-
position: relative;
152-
width: 100%;
153-
padding: 20px;
155+
position: relative !important;
156+
width: 100% !important;
157+
padding: 20px !important;
154158
}
155159

156160
.wrapper {
157-
width: auto;
158-
margin: 0;
159-
padding: 0 20px;
160-
max-width: 100%;
161+
width: auto !important;
162+
margin: 0 !important;
163+
padding: 0 20px !important;
164+
max-width: 100% !important;
161165
}
162166
}
163167

0 commit comments

Comments
 (0)