Skip to content

Commit ea57b1c

Browse files
authored
Update styles.css
1 parent ddf328c commit ea57b1c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

web/styles.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,54 @@ body {
186186
}
187187

188188
}
189+
190+
/* SIDEBAR FIXES */
191+
192+
/* =========================
193+
Portrait phones (sidebar on TOP)
194+
========================= */
195+
@media (max-width: 900px) and (orientation: portrait) {
196+
.content-area {
197+
flex-direction: column;
198+
}
199+
200+
.sidebar {
201+
width: 100%;
202+
flex-direction: row;
203+
overflow-x: auto;
204+
}
205+
206+
.sidebar-item {
207+
white-space: nowrap;
208+
}
209+
210+
.title {
211+
font-size: 25px;
212+
padding-bottom: 5px;
213+
}
214+
}
215+
216+
/* =========================
217+
Landscape phones (sidebar on LEFT)
218+
========================= */
219+
@media (max-width: 900px) and (orientation: landscape) {
220+
.content-area {
221+
flex-direction: row; /* BACK TO LEFT SIDEBAR */
222+
}
223+
224+
.sidebar {
225+
width: 220px;
226+
flex-direction: column;
227+
overflow-x: hidden;
228+
overflow-y: auto;
229+
}
230+
231+
.sidebar-item {
232+
white-space: normal;
233+
}
234+
235+
.panel {
236+
padding: 24px;
237+
}
238+
}
239+

0 commit comments

Comments
 (0)