Skip to content

Commit

Permalink
fix(demo): layout
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Oct 21, 2024
1 parent b7bf4b1 commit 39474a8
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions src/demo/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,25 @@ header {
display: grid;
grid-template:
'title nav'
'description .' / 1fr;
gap: 10px;
'desc desc' / 1fr;
gap: 5px 10px;

h1 {
grid-area: title;
align-self: end;
}

p {
grid-area: description;
grid-area: desc;
}

nav {
grid-area: nav;
display: flex;
flex-flow: row nowrap;
gap: 10px;
flex-flow: row wrap;
gap: 0 10px;
align-items: center;
justify-content: center;

img {
height: 2em;
Expand Down Expand Up @@ -118,7 +121,6 @@ legend {
}

#input > div,
pre > div,
code,
textarea,
pre {
Expand Down Expand Up @@ -150,11 +152,20 @@ pre {
flex-direction: row;
}

code {
> div {
flex: 1 1 0;
height: 0;
width: 100%;

@media (orientation: portrait) {
height: 100%;
width: 0;
}
}

code {
display: block;
box-sizing: border-box;
max-height: 100%;
padding: 10px;
overflow: auto;
}
Expand Down Expand Up @@ -230,7 +241,8 @@ pre {
z-index: 2;

display: flex;
flex-flow: row nowrap;
flex-flow: row wrap;
justify-content: end;
gap: 10px;
}
}

0 comments on commit 39474a8

Please sign in to comment.