2025-08-26 14:38:57 +02:00
|
|
|
/* CSS Custom Properties for iOS Safe Areas and Dynamic Viewport */
|
|
|
|
|
:root {
|
|
|
|
|
--safe-area-inset-top: env(safe-area-inset-top, 0);
|
|
|
|
|
--safe-area-inset-right: env(safe-area-inset-right, 0);
|
|
|
|
|
--safe-area-inset-bottom: env(safe-area-inset-bottom, 0);
|
|
|
|
|
--safe-area-inset-left: env(safe-area-inset-left, 0);
|
|
|
|
|
|
|
|
|
|
/* Dynamic viewport height that accounts for iOS Safari UI changes */
|
|
|
|
|
--vh-actual: 100vh;
|
2025-09-02 22:35:24 +02:00
|
|
|
--vh-small: 100vh; /* Fallback for browsers without svh support */
|
|
|
|
|
--vh-large: 100vh; /* Fallback for browsers without lvh support */
|
|
|
|
|
--vh-dynamic: 100vh; /* Fallback for browsers without dvh support */
|
|
|
|
|
|
|
|
|
|
/* Use newer viewport units where supported */
|
2025-08-26 14:38:57 +02:00
|
|
|
--vh-small: 100svh; /* Small viewport height - excludes browser UI */
|
|
|
|
|
--vh-large: 100lvh; /* Large viewport height - includes browser UI */
|
|
|
|
|
--vh-dynamic: 100dvh; /* Dynamic viewport height - changes with browser UI */
|
2025-09-02 22:35:24 +02:00
|
|
|
|
|
|
|
|
/* Header height calculations */
|
|
|
|
|
--header-base-height: 4rem; /* Base header height */
|
|
|
|
|
--header-total-height: calc(var(--header-base-height) + var(--safe-area-inset-top, 0px));
|
2025-08-26 14:38:57 +02:00
|
|
|
}
|
|
|
|
|
|
2025-08-12 03:45:52 +02:00
|
|
|
/* Minimal reset styles only */
|
2025-08-12 01:05:59 +02:00
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
width: 100vw;
|
2025-08-26 14:38:57 +02:00
|
|
|
height: var(--vh-dynamic, 100vh);
|
2025-08-12 01:05:59 +02:00
|
|
|
overflow: hidden;
|
2025-08-12 03:45:52 +02:00
|
|
|
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-synthesis: none;
|
|
|
|
|
text-rendering: optimizeLegibility;
|
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
2025-08-26 14:38:57 +02:00
|
|
|
/* iOS-specific optimizations */
|
|
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
2025-08-12 01:05:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#app {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-26 14:38:57 +02:00
|
|
|
/* iOS-specific touch and interaction optimizations */
|
|
|
|
|
* {
|
2025-09-02 22:35:24 +02:00
|
|
|
/* Disable callouts on iOS for better touch interactions */
|
2025-08-26 14:38:57 +02:00
|
|
|
-webkit-touch-callout: none;
|
2025-09-02 22:35:24 +02:00
|
|
|
/* Enable momentum scrolling globally for iOS */
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Disable text selection only on UI elements, not form elements */
|
|
|
|
|
button, [role="button"], .no-select {
|
2025-08-26 14:38:57 +02:00
|
|
|
-webkit-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-02 22:35:24 +02:00
|
|
|
/* Ensure text selection works in content and form areas */
|
|
|
|
|
input, textarea, [contenteditable="true"], .allow-select, p, span, div:not([role]), article, section {
|
2025-08-26 14:38:57 +02:00
|
|
|
-webkit-user-select: text;
|
|
|
|
|
user-select: text;
|
|
|
|
|
}
|
|
|
|
|
|
2025-08-12 01:05:59 +02:00
|
|
|
/* Accessibility helpers */
|
|
|
|
|
.sr-only {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 1px;
|
|
|
|
|
height: 1px;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: -1px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|