Skip to content

Commit c54e2e6

Browse files
committed
polish padding on mobile
1 parent 329ae83 commit c54e2e6

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

site/styles.css

+29-5
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ html {
55
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
66
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
77
'Helvetica Neue', sans-serif;
8-
margin: 0;
9-
padding: 0;
108
}
11-
body {
9+
html, body {
1210
margin: 0;
13-
padding: 0 8px;
14-
width: 100vw;
11+
padding: 0;
1512
}
1613
:root {
1714
--sh-class: #6f42c1;
@@ -34,6 +31,11 @@ a:hover {
3431
color: #424d5b;
3532
}
3633

34+
35+
main {
36+
padding: 0 1.5rem;
37+
}
38+
3739
.text-center {
3840
text-align: center;
3941
}
@@ -88,6 +90,7 @@ textarea:focus-visible {
8890
.filetree {
8991
display: flex;
9092
position: relative;
93+
flex-wrap: wrap;
9194
padding-right: 2rem;
9295
}
9396

@@ -190,4 +193,25 @@ textarea:focus-visible {
190193
max-width: 680px;
191194
border-bottom: 1px dashed #e5e7eb;
192195
padding: 32px 0;
196+
}
197+
198+
@media (max-width: 640px) {
199+
main {
200+
padding: 0 0.5rem;
201+
}
202+
.filetree {
203+
padding-right: 0;
204+
gap: 4px;
205+
}
206+
.titles h1 {
207+
font-size: 36px;
208+
}
209+
210+
.titles h3 {
211+
font-size: 24px;
212+
}
213+
214+
.titles p {
215+
font-size: 16px;
216+
}
193217
}

0 commit comments

Comments
 (0)