Skip to content

Commit

Permalink
Fix for mobile.
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Aug 17, 2024
1 parent 0290003 commit 39acc5c
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ body {

#root {
max-width: 50em;
width: 80vw;
margin: 3em auto 30em;
}

Expand Down Expand Up @@ -66,10 +67,14 @@ a:hover {

.sample {
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 1em;
}

.sample-code {
overflow: auto;
}

.sample p {
margin-top: 0;
}
Expand All @@ -87,8 +92,16 @@ a:hover {
flex: 1 0 auto;
}

.sample-output {
flex: 0 0 14em;
@media (min-width: 600px) {

.sample {
flex-direction: row;
}

.sample-output {
flex: 0 0 14em;
}

}

button,
Expand Down

0 comments on commit 39acc5c

Please sign in to comment.