Spaces:
Runtime error
Runtime error
Khunndev Sisyphus commited on
Commit Β·
b425317
1
Parent(s): cd8f1ba
Fix iOS Safari: viewport vh fallback, grain overlay scoping, and a smaller display size.
Browse filesUltraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- frontend/src/index.css +14 -4
frontend/src/index.css
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
--text-lg: 1.125rem; /* 18px β card titles */
|
| 38 |
--text-xl: 1.375rem; /* 22px β section heads */
|
| 39 |
--text-2xl: 1.75rem; /* 28px β page heads */
|
| 40 |
-
--text-display: clamp(2.
|
| 41 |
|
| 42 |
/* ββ Line heights βββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 43 |
--leading-none: 1;
|
|
@@ -164,6 +164,7 @@ html {
|
|
| 164 |
|
| 165 |
body {
|
| 166 |
margin: 0;
|
|
|
|
| 167 |
min-height: 100dvh;
|
| 168 |
color: var(--text);
|
| 169 |
/* Cool near-white base + subtle gradient mesh = premium depth tell */
|
|
@@ -184,6 +185,7 @@ textarea {
|
|
| 184 |
}
|
| 185 |
|
| 186 |
#root {
|
|
|
|
| 187 |
min-height: 100dvh;
|
| 188 |
}
|
| 189 |
|
|
@@ -219,6 +221,15 @@ input[type='number']::-webkit-inner-spin-button {
|
|
| 219 |
Apply `.grain` to a positioned (relative/absolute) container to lay
|
| 220 |
a whisper of fractal noise over it. pointer-events:none keeps it
|
| 221 |
non-interactive; z-index keeps it behind content if needed. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
.grain::after {
|
| 223 |
content: '';
|
| 224 |
position: absolute;
|
|
@@ -227,10 +238,9 @@ input[type='number']::-webkit-inner-spin-button {
|
|
| 227 |
background-image: var(--grain);
|
| 228 |
background-size: 160px 160px;
|
| 229 |
background-repeat: repeat;
|
| 230 |
-
opacity: 0.
|
| 231 |
-
mix-blend-mode: multiply;
|
| 232 |
pointer-events: none;
|
| 233 |
-
z-index:
|
| 234 |
}
|
| 235 |
|
| 236 |
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 37 |
--text-lg: 1.125rem; /* 18px β card titles */
|
| 38 |
--text-xl: 1.375rem; /* 22px β section heads */
|
| 39 |
--text-2xl: 1.75rem; /* 28px β page heads */
|
| 40 |
+
--text-display: clamp(2.25rem, 11vw, 3.25rem); /* hero COUNT number (capped for small screens) */
|
| 41 |
|
| 42 |
/* ββ Line heights βββββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 43 |
--leading-none: 1;
|
|
|
|
| 164 |
|
| 165 |
body {
|
| 166 |
margin: 0;
|
| 167 |
+
min-height: 100vh;
|
| 168 |
min-height: 100dvh;
|
| 169 |
color: var(--text);
|
| 170 |
/* Cool near-white base + subtle gradient mesh = premium depth tell */
|
|
|
|
| 185 |
}
|
| 186 |
|
| 187 |
#root {
|
| 188 |
+
min-height: 100vh;
|
| 189 |
min-height: 100dvh;
|
| 190 |
}
|
| 191 |
|
|
|
|
| 221 |
Apply `.grain` to a positioned (relative/absolute) container to lay
|
| 222 |
a whisper of fractal noise over it. pointer-events:none keeps it
|
| 223 |
non-interactive; z-index keeps it behind content if needed. */
|
| 224 |
+
.grain {
|
| 225 |
+
/* Establish positioning + stacking context so the ::after texture is always
|
| 226 |
+
scoped to THIS element (not a distant ancestor) and sits behind content.
|
| 227 |
+
Without this, .grain on a non-positioned parent let the ::after anchor to
|
| 228 |
+
a distant ancestor and blanket the screen β a known iOS Safari rendering
|
| 229 |
+
hazard with mix-blend-mode on large layers. */
|
| 230 |
+
position: relative;
|
| 231 |
+
isolation: isolate;
|
| 232 |
+
}
|
| 233 |
.grain::after {
|
| 234 |
content: '';
|
| 235 |
position: absolute;
|
|
|
|
| 238 |
background-image: var(--grain);
|
| 239 |
background-size: 160px 160px;
|
| 240 |
background-repeat: repeat;
|
| 241 |
+
opacity: 0.04;
|
|
|
|
| 242 |
pointer-events: none;
|
| 243 |
+
z-index: -1;
|
| 244 |
}
|
| 245 |
|
| 246 |
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|