Skip to content

Commit

Permalink
Fixing 2 columns and align bugs in Safari (#1751)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-valim authored Aug 22, 2023
1 parent 25329b5 commit 7612584
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
26 changes: 14 additions & 12 deletions assets/css/content/cheatsheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@media (max-width: 600px) {
.page-cheatmd .content-inner {
--horizontal-space: 1em;
--vertical-space: .75em;
--vertical-space: 0.75em;
}
}

Expand Down Expand Up @@ -51,7 +51,8 @@

.page-cheatmd .content-inner section.h3 {
min-width: 300px;
margin: 0 0 calc(var(--vertical-space) * 2) 0;
margin: 0;
padding: 0 0 calc(var(--vertical-space) * 2) 0;
break-inside: avoid;
}

Expand All @@ -72,7 +73,7 @@
.page-cheatmd .content-inner h4 {
display: block;
margin: 0;
padding: .25em var(--horizontal-space);
padding: 0.25em var(--horizontal-space);
font-weight: 400;
background: var(--gray100);
color: #567;
Expand Down Expand Up @@ -102,7 +103,7 @@
.page-cheatmd .content-inner .h2 p > code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

/* Code blocks */
Expand All @@ -112,8 +113,8 @@
}

.page-cheatmd .content-inner pre code::-webkit-scrollbar {
width: .4rem;
height: .6rem;
width: 0.4rem;
height: 0.6rem;
}

.page-cheatmd .content-inner .h2 pre {
Expand Down Expand Up @@ -166,7 +167,7 @@
.page-cheatmd .content-inner .h2 td code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

.page-cheatmd .content-inner .h2 thead {
Expand All @@ -190,7 +191,7 @@

.page-cheatmd .content-inner .h2 li {
list-style-position: inside;
padding: .5em var(--horizontal-space);
padding: 0.5em var(--horizontal-space);
line-height: 2em;
vertical-align: middle;
background-color: var(--codeBackground);
Expand All @@ -204,7 +205,7 @@
.page-cheatmd .content-inner .h2 li > code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

/* Columns */
Expand Down Expand Up @@ -268,14 +269,15 @@
}

.page-cheatmd .content-inner section.col-2-left {
display: block;
column-count: 1;
display: flex;
flex-direction: column;
}
}

@media screen and (max-width: 1200px) {
.page-cheatmd .content-inner section:is(.col-2, .col-3) {
column-count: 1;
display: flex;
flex-direction: column;
}

.page-cheatmd .content-inner section.list-6 > ul > li {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 7612584

Please sign in to comment.