Skip to content

Commit 7612584

Browse files
authored
Fixing 2 columns and align bugs in Safari (#1751)
1 parent 25329b5 commit 7612584

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

assets/css/content/cheatsheet.css

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@media (max-width: 600px) {
77
.page-cheatmd .content-inner {
88
--horizontal-space: 1em;
9-
--vertical-space: .75em;
9+
--vertical-space: 0.75em;
1010
}
1111
}
1212

@@ -51,7 +51,8 @@
5151

5252
.page-cheatmd .content-inner section.h3 {
5353
min-width: 300px;
54-
margin: 0 0 calc(var(--vertical-space) * 2) 0;
54+
margin: 0;
55+
padding: 0 0 calc(var(--vertical-space) * 2) 0;
5556
break-inside: avoid;
5657
}
5758

@@ -72,7 +73,7 @@
7273
.page-cheatmd .content-inner h4 {
7374
display: block;
7475
margin: 0;
75-
padding: .25em var(--horizontal-space);
76+
padding: 0.25em var(--horizontal-space);
7677
font-weight: 400;
7778
background: var(--gray100);
7879
color: #567;
@@ -102,7 +103,7 @@
102103
.page-cheatmd .content-inner .h2 p > code {
103104
color: #eb5757;
104105
border-radius: var(--borderRadius);
105-
padding: .2em .4em;
106+
padding: 0.2em 0.4em;
106107
}
107108

108109
/* Code blocks */
@@ -112,8 +113,8 @@
112113
}
113114

114115
.page-cheatmd .content-inner pre code::-webkit-scrollbar {
115-
width: .4rem;
116-
height: .6rem;
116+
width: 0.4rem;
117+
height: 0.6rem;
117118
}
118119

119120
.page-cheatmd .content-inner .h2 pre {
@@ -166,7 +167,7 @@
166167
.page-cheatmd .content-inner .h2 td code {
167168
color: #eb5757;
168169
border-radius: var(--borderRadius);
169-
padding: .2em .4em;
170+
padding: 0.2em 0.4em;
170171
}
171172

172173
.page-cheatmd .content-inner .h2 thead {
@@ -190,7 +191,7 @@
190191

191192
.page-cheatmd .content-inner .h2 li {
192193
list-style-position: inside;
193-
padding: .5em var(--horizontal-space);
194+
padding: 0.5em var(--horizontal-space);
194195
line-height: 2em;
195196
vertical-align: middle;
196197
background-color: var(--codeBackground);
@@ -204,7 +205,7 @@
204205
.page-cheatmd .content-inner .h2 li > code {
205206
color: #eb5757;
206207
border-radius: var(--borderRadius);
207-
padding: .2em .4em;
208+
padding: 0.2em 0.4em;
208209
}
209210

210211
/* Columns */
@@ -268,14 +269,15 @@
268269
}
269270

270271
.page-cheatmd .content-inner section.col-2-left {
271-
display: block;
272-
column-count: 1;
272+
display: flex;
273+
flex-direction: column;
273274
}
274275
}
275276

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

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

formatters/html/dist/html-elixir-SCFGCNWJ.css renamed to formatters/html/dist/html-elixir-FV6ADR4N.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

formatters/html/dist/html-erlang-YMURJ4RO.css renamed to formatters/html/dist/html-erlang-TEM7XJXV.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)