Skip to content

Commit b205673

Browse files
authored
Add ol examples and breakpoints (#1620)
1 parent 31e8d69 commit b205673

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed

Cheatsheet.cheatmd

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante consectetur
6363
## Section
6464
{: .col-2}
6565

66-
"highlight the content in a paragraph"
67-
{: .prime}
68-
6966
"wrap a very long text"
7067
{: .wrap}
7168
```
@@ -175,6 +172,14 @@ Add `wrap` to wrap long lines.
175172

176173
Here's an extra paragraph after the list.
177174

175+
### Ordered List
176+
177+
1. I'm first;
178+
2. You are second;
179+
3. We are third;
180+
181+
#### That was cool!
182+
178183
### Lists with headings
179184

180185
#### Part 1

assets/css/content/cheatsheet.css

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
/* Paragraphs */
7777

7878
.page-cheatmd .h2 p {
79-
margin: 0;
79+
margin: 0;
8080
display: block;
8181
background: var(--gray50);
8282
padding: 1.5em;
@@ -94,10 +94,15 @@
9494

9595
/* Code blocks */
9696

97-
.page-cheatmd .h2 pre code {
97+
.page-cheatmd pre code {
9898
padding: 1em 1.5em;
9999
}
100100

101+
.page-cheatmd pre code::-webkit-scrollbar {
102+
width: 0.4rem;
103+
height: 0.6rem;
104+
}
105+
101106
.page-cheatmd .h2 pre {
102107
margin: 0;
103108
}
@@ -243,13 +248,27 @@
243248

244249
/* Media query */
245250

246-
@media (max-width: 1080px) {
251+
@media (max-width: 1400px) {
247252
.page-cheatmd section.col-3 {
248253
column-count: 2;
249254
column-gap: 40px;
250255
}
251256
}
252257

258+
@media (max-width: 1200px) {
259+
.page-cheatmd section.col-3,
260+
.page-cheatmd section.col-2 {
261+
column-count: 1;
262+
}
263+
}
264+
265+
@media (max-width: 850px) {
266+
.page-cheatmd section.col-2-left {
267+
display: block;
268+
column-count: 1;
269+
}
270+
}
271+
253272
@media (max-width: 850px) {
254273
.page-cheatmd section.col-2-left {
255274
display: block;

formatters/html/dist/html-elixir-ETAE2YCT.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

formatters/html/dist/html-erlang-XWTZGLBX.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)