Skip to content

Commit

Permalink
polish padding on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 24, 2025
1 parent 329ae83 commit c54e2e6
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions site/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ html {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
margin: 0;
padding: 0;
}
body {
html, body {
margin: 0;
padding: 0 8px;
width: 100vw;
padding: 0;
}
:root {
--sh-class: #6f42c1;
Expand All @@ -34,6 +31,11 @@ a:hover {
color: #424d5b;
}


main {
padding: 0 1.5rem;
}

.text-center {
text-align: center;
}
Expand Down Expand Up @@ -88,6 +90,7 @@ textarea:focus-visible {
.filetree {
display: flex;
position: relative;
flex-wrap: wrap;
padding-right: 2rem;
}

Expand Down Expand Up @@ -190,4 +193,25 @@ textarea:focus-visible {
max-width: 680px;
border-bottom: 1px dashed #e5e7eb;
padding: 32px 0;
}

@media (max-width: 640px) {
main {
padding: 0 0.5rem;
}
.filetree {
padding-right: 0;
gap: 4px;
}
.titles h1 {
font-size: 36px;
}

.titles h3 {
font-size: 24px;
}

.titles p {
font-size: 16px;
}
}

0 comments on commit c54e2e6

Please sign in to comment.