AndreP-git commited on
Commit ·
e1cfc81
1
Parent(s): ff81554
Update pad
Browse files- index.html +8 -5
index.html
CHANGED
|
@@ -13,17 +13,20 @@
|
|
| 13 |
|
| 14 |
<style>
|
| 15 |
/* Fluid base size: every rem below scales with the viewport width
|
| 16 |
-
(
|
| 17 |
html {
|
| 18 |
-
font-size: clamp(14px, 0.
|
| 19 |
}
|
| 20 |
|
|
|
|
|
|
|
| 21 |
body {
|
| 22 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
| 23 |
color: #1d1d1b;
|
| 24 |
background: white;
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
overflow-wrap: break-word;
|
| 28 |
}
|
| 29 |
|
|
@@ -39,7 +42,7 @@
|
|
| 39 |
background: var(--surface);
|
| 40 |
border: 1px solid var(--border);
|
| 41 |
border-radius: 14px;
|
| 42 |
-
padding: 20px
|
| 43 |
margin-top: 24px;
|
| 44 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
| 45 |
}
|
|
|
|
| 13 |
|
| 14 |
<style>
|
| 15 |
/* Fluid base size: every rem below scales with the viewport width
|
| 16 |
+
(14px floor on phones, 18px cap on large screens) */
|
| 17 |
html {
|
| 18 |
+
font-size: clamp(14px, 0.75rem + 0.35vw, 18px);
|
| 19 |
}
|
| 20 |
|
| 21 |
+
/* Content column: grows with the screen but keeps empty space on both
|
| 22 |
+
sides (at least 6% of the width per side, and never wider than 1280px) */
|
| 23 |
body {
|
| 24 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
|
| 25 |
color: #1d1d1b;
|
| 26 |
background: white;
|
| 27 |
+
max-width: 1280px;
|
| 28 |
+
margin: 0 auto;
|
| 29 |
+
padding: 24px clamp(16px, 6vw, 120px);
|
| 30 |
overflow-wrap: break-word;
|
| 31 |
}
|
| 32 |
|
|
|
|
| 42 |
background: var(--surface);
|
| 43 |
border: 1px solid var(--border);
|
| 44 |
border-radius: 14px;
|
| 45 |
+
padding: clamp(18px, 2.2vw, 32px) clamp(20px, 3vw, 44px);
|
| 46 |
margin-top: 24px;
|
| 47 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
| 48 |
}
|