Skip to content

Commit cbf66ed

Browse files
authored
Implement mobile portrait styles for improved accessibility
Added mobile portrait fixes for better usability on small devices.
1 parent add64e4 commit cbf66ed

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

web/styles.css

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,84 @@ html,body{
251251
@media (prefers-reduced-motion: reduce){
252252
*{ transition: none !important; animation: none !important; }
253253
}
254+
255+
/* MOBILE PORTRAIT FIXES — paste at the end of styles.css */
256+
257+
/* make touch targets and type larger and more comfy on portrait phones */
258+
@media (orientation: portrait) and (max-width: 520px) {
259+
/* boost the base sizing so clamp()/vw-based rules scale up */
260+
html { font-size: 17px; }
261+
262+
/* tighten wrapper spacing and keep layout stacked */
263+
.content-area {
264+
margin: 14px auto;
265+
padding: 0 12px;
266+
gap: 12px;
267+
flex-direction: column;
268+
}
269+
270+
/* sidebar becomes a comfortable horizontal row with bigger tap areas */
271+
.sidebar{
272+
width:100%;
273+
padding:10px;
274+
gap:8px;
275+
border-radius: 12px;
276+
overflow:auto;
277+
}
278+
279+
.sidebar-item{
280+
padding: 14px 12px;
281+
font-size: 1.05rem;
282+
min-height: 48px; /* good for thumbs */
283+
border-radius: 10px;
284+
white-space: nowrap;
285+
text-align: center;
286+
}
287+
288+
.panel{
289+
padding: 16px;
290+
align-items: center;
291+
}
292+
293+
/* title slightly bigger and more readable */
294+
.title{
295+
font-size: clamp(1.25rem, 7.5vw, 1.6rem);
296+
letter-spacing: 0.4px;
297+
}
298+
299+
/* bigger logo so it reads at small sizes */
300+
.logo-img{
301+
width: clamp(72px, 22vw, 96px);
302+
padding: 8px;
303+
}
304+
305+
/* make buttons larger and easier to tap */
306+
.download-button,
307+
.install-button{
308+
padding: 12px 22px;
309+
font-size: 1.06rem;
310+
min-height: 46px;
311+
border-radius: 12px;
312+
}
313+
314+
.advanced-href{
315+
margin-top: 10px;
316+
display:block;
317+
font-size: 1rem;
318+
}
319+
}
320+
321+
/* extra boost for very narrow phones (old small devices) */
322+
@media (orientation: portrait) and (max-width: 360px) {
323+
html { font-size: 18px; } /* give a final bump so UI isn't tiny */
324+
325+
.sidebar-item{ padding: 16px 14px; font-size: 1.08rem; min-height:50px; }
326+
.title{ font-size: 1.45rem; }
327+
.logo-img{ width: 84px; }
328+
.download-button, .install-button{ font-size: 1.08rem; padding: 13px 24px; }
329+
}
330+
331+
/* ensure reduced-motion still respected */
332+
@media (prefers-reduced-motion: reduce){
333+
*{ transition:none!important; }
334+
}

0 commit comments

Comments
 (0)