Skip to content

Commit 3e29927

Browse files
committed
docs:
1 parent cd581cf commit 3e29927

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

assets/css/custom.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,46 @@ section.galleries {
331331
font-size: calc(1rem + 2rem);
332332
line-height: 1.2;
333333
}
334+
335+
/* ========== Custom responsive styles: proportional scaling ========== */
336+
/* Scale entire page proportionally on narrow screens */
337+
@media screen and (max-width: 1600px) {
338+
html {
339+
font-size: 16px; /* full size at 1600px */
340+
}
341+
}
342+
343+
/* Large screens: scale to fit 1400px viewport */
344+
@media screen and (max-width: 1400px) {
345+
html {
346+
font-size: 14px; /* 1400/1600 = 87.5% → 16px * 0.875 = 14px */
347+
}
348+
}
349+
350+
/* Medium-large screens: scale to fit 1200px viewport */
351+
@media screen and (max-width: 1200px) {
352+
html {
353+
font-size: 12px; /* 1200/1600 = 75% → 16px * 0.75 = 12px */
354+
}
355+
}
356+
357+
/* Medium screens: scale to fit 1000px viewport */
358+
@media screen and (max-width: 1000px) {
359+
html {
360+
font-size: 10px; /* 1000/1600 = 62.5% → 16px * 0.625 = 10px */
361+
}
362+
}
363+
364+
/* Narrow screens: scale to fit 800px viewport */
365+
@media screen and (max-width: 800px) {
366+
html {
367+
font-size: 8px; /* 800/1600 = 50% → 16px * 0.5 = 8px */
368+
}
369+
}
370+
371+
/* Very narrow screens: scale to fit 600px viewport */
372+
@media screen and (max-width: 600px) {
373+
html {
374+
font-size: 6px; /* 600/1600 = 37.5% → 16px * 0.375 = 6px */
375+
}
376+
}

0 commit comments

Comments
 (0)