feat: home pages adapted to mobile

This commit is contained in:
Lucas
2026-10-26 14:25:56 +01:00
parent 631a66ceb5
commit cb34e5ef41
50 changed files with 1219 additions and 7 deletions
+67
View File
@@ -34,6 +34,7 @@ body {
display: flex;
flex-direction: column;
height: 100vh;
height: 100dvh;
}
@media (prefers-reduced-motion: reduce) {
@@ -60,11 +61,13 @@ button {
.stage {
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--bg-panel);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
/* Global scrollbar */
@@ -85,3 +88,67 @@ button {
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
/* ---------- Touch / phone support ---------- */
html,
body {
overscroll-behavior: none; /* no pull-to-refresh / rubber-band */
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
button,
[role='button'] {
touch-action: manipulation; /* removes 300ms delay + double-tap zoom */
}
/* Safe areas (notch, status bar, home indicator) */
.app {
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
/* Touch devices: bigger hit targets, no hover-only behaviour */
@media (pointer: coarse) {
button,
select,
input[type='checkbox'],
input[type='radio'] {
min-height: 44px;
}
::-webkit-scrollbar {
width: 0;
height: 0;
}
}
/* Phone layout */
@media (max-width: 768px) {
.stage {
align-items: center; /* tall content starts at top instead of being clipped */
justify-content: center;
padding: 8px;
}
.stage > * {
margin: auto;
}
/* iOS zooms the page if an input's font is under 16px */
input,
select,
textarea {
font-size: 16px;
}
}
/* Landscape phone: reclaim vertical space */
@media (max-height: 500px) and (orientation: landscape) {
.stage {
padding: 4px;
}
}