Skip to content

Commit

Permalink
Add ol examples and breakpoints (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-valim authored Oct 19, 2022
1 parent 31e8d69 commit b205673
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 10 deletions.
11 changes: 8 additions & 3 deletions Cheatsheet.cheatmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante consectetur
## Section
{: .col-2}

"highlight the content in a paragraph"
{: .prime}

"wrap a very long text"
{: .wrap}
```
Expand Down Expand Up @@ -175,6 +172,14 @@ Add `wrap` to wrap long lines.

Here's an extra paragraph after the list.

### Ordered List

1. I'm first;
2. You are second;
3. We are third;

#### That was cool!

### Lists with headings

#### Part 1
Expand Down
25 changes: 22 additions & 3 deletions assets/css/content/cheatsheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
/* Paragraphs */

.page-cheatmd .h2 p {
margin: 0;
margin: 0;
display: block;
background: var(--gray50);
padding: 1.5em;
Expand All @@ -94,10 +94,15 @@

/* Code blocks */

.page-cheatmd .h2 pre code {
.page-cheatmd pre code {
padding: 1em 1.5em;
}

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

.page-cheatmd .h2 pre {
margin: 0;
}
Expand Down Expand Up @@ -243,13 +248,27 @@

/* Media query */

@media (max-width: 1080px) {
@media (max-width: 1400px) {
.page-cheatmd section.col-3 {
column-count: 2;
column-gap: 40px;
}
}

@media (max-width: 1200px) {
.page-cheatmd section.col-3,
.page-cheatmd section.col-2 {
column-count: 1;
}
}

@media (max-width: 850px) {
.page-cheatmd section.col-2-left {
display: block;
column-count: 1;
}
}

@media (max-width: 850px) {
.page-cheatmd section.col-2-left {
display: block;
Expand Down
2 changes: 0 additions & 2 deletions formatters/html/dist/html-elixir-ETAE2YCT.css

This file was deleted.

2 changes: 0 additions & 2 deletions formatters/html/dist/html-erlang-XWTZGLBX.css

This file was deleted.

0 comments on commit b205673

Please sign in to comment.