Skip to content

Commit

Permalink
custom.css: Add vertical space after code
Browse files Browse the repository at this point in the history
The bulma style sets margin-bottom to 1em for several block-level
elements (eg <p>). However the codehilite <div>s, generated by the
codehilite Markdown extension don't have that. So we have 1em vertical
space before a code block but not after, which just looks wrong.

Add vertical space after codehilite <div>s.
  • Loading branch information
donald committed Feb 4, 2020
1 parent 0401703 commit 2eb5d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpicms/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -736,3 +736,7 @@ a.tag:hover {
.modal-image:hover, .richtext-image:hover {
cursor: pointer;
}

div.codehilite:not(:last-child) {
margin-bottom: 1em;
}

0 comments on commit 2eb5d43

Please sign in to comment.