Skip to content

Commit

Permalink
showcase controls and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jul 24, 2024
1 parent 935b0ec commit 8418a7a
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 95 deletions.
25 changes: 17 additions & 8 deletions src/component/showcase/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,48 @@
}

.showcase {
padding: var(--showcase-padding);
width: 100vw;
min-height: 100vh;
height: 100vh;
z-index: var(--z-index-showcase);
}

.showcase {
display: grid;
gap: var(--showcase-padding);
grid-template-columns: 2fr 5fr;
grid-template-columns: 32em 1fr;
grid-template-areas:
"side content";
justify-items: center;
}

.showcase-side {
padding: var(--showcase-padding);
padding-right: calc(var(--showcase-padding) / 2);
grid-area: side;
position: sticky;
top: var(--showcase-padding);
display: grid;
width: 100%;
height: 100%;
height: fit-content;
overflow: auto;
direction: rtl;
}

.showcase-side .showcase-control {
direction: ltr;
}

.showcase-content {
padding: var(--showcase-padding);
padding-left: calc(var(--showcase-padding) / 2);
grid-area: content;
width: 100%;
height: 100%;
overflow: auto;
}

.showcase-content {
display: grid;
grid-template-columns: 3fr 1fr;
gap: var(--showcase-padding);
grid-template-columns: 2fr 3fr 3fr;
gap: calc(var(--showcase-padding) / 2);
}

.showcase-column {}
Expand Down
Loading

0 comments on commit 8418a7a

Please sign in to comment.