Skip to content

Commit

Permalink
Added CSS Markdown class for right-aligned columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Jan 20, 2024
1 parent 781e71e commit 830eb0c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,35 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</div>
```

```html
<div class="row reverse-columns">
<div class="column">

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

</div>
<div class="column">

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

</div>
</div>
```

```html
<div class="row">
<div class="column">

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

</div>
<div class="column-right">

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

</div>
</div>

`video-container-4by3`

```html
Expand Down
14 changes: 13 additions & 1 deletion docs/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,20 @@
width: 50%;
}

.markdown-section .column-right {
float: right;
padding-left: 1rem;
width: 50%;
}

.markdown-section .column img {
padding-top: .35rem;
}

.markdown-section .column-right img {
padding-top: .35rem;
}

.markdown-section .reverse-columns .column {
float: right;
}
Expand All @@ -402,8 +412,10 @@
}

@media screen and (max-width:800px) {
.markdown-section .column {
.markdown-section .column, .markdown-section .column-right {
width: 100%;
padding-right: 0rem;
padding-left: 0rem;
}

.markdown-section .image-75, .markdown-section .image-50, .markdown-section .image-25, .markdown-section .image-75-border, .markdown-section .image-50-border, .markdown-section .image-25-border {
Expand Down

0 comments on commit 830eb0c

Please sign in to comment.