Skip to content

Commit 2452158

Browse files
committed
mobile view fix
1 parent 17254f5 commit 2452158

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

index.html

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
body {
6262
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
63-
overflow: hidden;
63+
overflow-x: hidden;
6464
cursor: pointer;
6565
}
6666

@@ -97,6 +97,14 @@
9797
text-align: left;
9898
pointer-events: none;
9999
}
100+
101+
@media (max-height: 700px) {
102+
.content {
103+
justify-content: flex-start;
104+
padding-top: 3rem;
105+
padding-bottom: 3rem;
106+
}
107+
}
100108

101109
.content * {
102110
pointer-events: auto;
@@ -235,11 +243,73 @@
235243
@media (max-width: 768px) {
236244
.content {
237245
padding: 1rem;
246+
min-height: auto;
247+
padding-top: 2rem;
248+
padding-bottom: 4rem;
249+
}
250+
251+
h1 {
252+
font-size: clamp(2.5rem, 10vw, 4rem);
253+
margin-bottom: 1rem;
254+
}
255+
256+
.research-heading {
257+
font-size: clamp(1.2rem, 5vw, 2rem);
258+
margin-bottom: 1.5rem;
259+
}
260+
261+
.subtitle {
262+
font-size: clamp(1rem, 4vw, 1.4rem);
263+
margin-bottom: 1.5rem;
264+
}
265+
266+
.description {
267+
font-size: clamp(0.9rem, 3.5vw, 1.1rem);
268+
margin-bottom: 2rem;
238269
}
239270

240271
.links {
241272
flex-direction: column;
242273
gap: 0.5rem;
274+
align-items: flex-start;
275+
}
276+
277+
.links span,
278+
.links a {
279+
font-size: clamp(0.8rem, 3vw, 1rem);
280+
}
281+
282+
.contact {
283+
font-size: clamp(0.8rem, 3vw, 1rem);
284+
}
285+
286+
.click-hint {
287+
font-size: 0.8rem;
288+
bottom: 1rem;
289+
}
290+
}
291+
292+
@media (max-width: 480px) {
293+
.content {
294+
padding: 0.75rem;
295+
padding-top: 1.5rem;
296+
padding-bottom: 3rem;
297+
}
298+
299+
h1 {
300+
font-size: clamp(2rem, 12vw, 3rem);
301+
}
302+
303+
.research-heading {
304+
font-size: clamp(1rem, 6vw, 1.5rem);
305+
}
306+
307+
.subtitle {
308+
font-size: clamp(0.9rem, 4.5vw, 1.2rem);
309+
}
310+
311+
.description {
312+
font-size: clamp(0.8rem, 4vw, 1rem);
243313
}
244314
}
245315
</style>

0 commit comments

Comments
 (0)