Skip to content

Commit

Permalink
chore(openapi): tweak code block visibility (#2143)
Browse files Browse the repository at this point in the history
* chore(openapi): tweak code block visibility

* chore: remove extra margin
  • Loading branch information
zchsh authored Aug 30, 2023
1 parent e9161e5 commit 9d8dde7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@
flex-direction: column;
gap: 60px;
}

.header {
margin-bottom: 24px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
grid-template-areas: 'header' 'details';
grid-template-columns: minmax(0, 1fr);

/* We show 'examples' in a one-column if the viewport size is large enough */
@media (min-width: 420px) {
grid-template-areas: 'header' 'examples' 'details';
}

/* Note: 744px = 360px per column, plus 24px grid gap.
Calc & CSS vars are not supported in container queries. */

Expand All @@ -38,8 +43,7 @@
.examplesStickyContainer {
display: none;

/* stylelint-disable-next-line at-rule-no-unknown */
@container (min-width: 744px) {
@media (min-width: 420px) {
display: block;
grid-area: examples;
height: 100%;
Expand Down

1 comment on commit 9d8dde7

@vercel
Copy link

@vercel vercel bot commented on 9d8dde7 Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.