Skip to content

Commit f384f09

Browse files
committed
Mobile Responsive: Added media queries to demo pages for proper mobile layout and scrolling
1 parent 273ce51 commit f384f09

2 files changed

Lines changed: 196 additions & 0 deletions

File tree

web/public/demoen/index.html

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,104 @@
427427
padding: 32mm 20mm 22mm 20mm;
428428
}
429429
}
430+
431+
@media (max-width: 768px) {
432+
.deck {
433+
padding: 0;
434+
height: 100%;
435+
background: var(--bg);
436+
}
437+
438+
.frame {
439+
width: 100%;
440+
height: 100%;
441+
border: none;
442+
border-radius: 0;
443+
box-shadow: none;
444+
aspect-ratio: auto;
445+
}
446+
447+
.slides {
448+
height: 100%;
449+
}
450+
451+
section.slide {
452+
padding: 80px 24px 100px 24px;
453+
overflow-y: auto;
454+
height: 100vh;
455+
display: block;
456+
}
457+
458+
.grid {
459+
display: flex;
460+
flex-direction: column;
461+
gap: 24px;
462+
height: auto;
463+
min-height: 0;
464+
padding-bottom: 40px;
465+
}
466+
467+
.h1 {
468+
font-size: 32px;
469+
}
470+
471+
.h2 {
472+
font-size: 24px;
473+
}
474+
475+
.kicker {
476+
font-size: 11px;
477+
}
478+
479+
.lead {
480+
font-size: 15px;
481+
}
482+
483+
.card {
484+
padding: 14px;
485+
}
486+
487+
.twoCol {
488+
grid-template-columns: 1fr;
489+
}
490+
491+
.bigMetric {
492+
grid-template-columns: 1fr;
493+
}
494+
495+
.controls {
496+
position: fixed;
497+
bottom: 20px;
498+
right: 20px;
499+
z-index: 999;
500+
background: rgba(11, 16, 32, .85);
501+
backdrop-filter: blur(12px);
502+
padding: 6px;
503+
border-radius: 999px;
504+
border: 1px solid var(--stroke);
505+
}
506+
507+
.topbar {
508+
position: fixed;
509+
z-index: 999;
510+
width: 100%;
511+
top: 0;
512+
padding: 12px 16px;
513+
}
514+
515+
.brand {
516+
font-size: 15px;
517+
}
518+
519+
.meta {
520+
display: none;
521+
}
522+
523+
/* Hide meta on mobile to save space */
524+
.stack {
525+
gap: 12px;
526+
}
527+
}
430528
</style>
431529
</head>
432530

web/public/demoes/index.html

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,104 @@
440440
padding: 32mm 20mm 22mm 20mm;
441441
}
442442
}
443+
444+
@media (max-width: 768px) {
445+
.deck {
446+
padding: 0;
447+
height: 100%;
448+
background: var(--bg);
449+
}
450+
451+
.frame {
452+
width: 100%;
453+
height: 100%;
454+
border: none;
455+
border-radius: 0;
456+
box-shadow: none;
457+
aspect-ratio: auto;
458+
}
459+
460+
.slides {
461+
height: 100%;
462+
}
463+
464+
section.slide {
465+
padding: 80px 24px 100px 24px;
466+
overflow-y: auto;
467+
height: 100vh;
468+
display: block;
469+
}
470+
471+
.grid {
472+
display: flex;
473+
flex-direction: column;
474+
gap: 24px;
475+
height: auto;
476+
min-height: 0;
477+
padding-bottom: 40px;
478+
}
479+
480+
.h1 {
481+
font-size: 32px;
482+
}
483+
484+
.h2 {
485+
font-size: 24px;
486+
}
487+
488+
.kicker {
489+
font-size: 11px;
490+
}
491+
492+
.lead {
493+
font-size: 15px;
494+
}
495+
496+
.card {
497+
padding: 14px;
498+
}
499+
500+
.twoCol {
501+
grid-template-columns: 1fr;
502+
}
503+
504+
.bigMetric {
505+
grid-template-columns: 1fr;
506+
}
507+
508+
.controls {
509+
position: fixed;
510+
bottom: 20px;
511+
right: 20px;
512+
z-index: 999;
513+
background: rgba(11, 16, 32, .85);
514+
backdrop-filter: blur(12px);
515+
padding: 6px;
516+
border-radius: 999px;
517+
border: 1px solid var(--stroke);
518+
}
519+
520+
.topbar {
521+
position: fixed;
522+
z-index: 999;
523+
width: 100%;
524+
top: 0;
525+
padding: 12px 16px;
526+
}
527+
528+
.brand {
529+
font-size: 15px;
530+
}
531+
532+
.meta {
533+
display: none;
534+
}
535+
536+
/* Hide meta on mobile to save space */
537+
.stack {
538+
gap: 12px;
539+
}
540+
}
443541
</style>
444542
</head>
445543

0 commit comments

Comments
 (0)