Skip to content

Commit

Permalink
✨ feat: add inline image CSS class
Browse files Browse the repository at this point in the history
Regular images get a `block` display to be centered.
This allows vertically aligned inline images.

Related: #314
  • Loading branch information
welpo committed May 15, 2024
1 parent aef49bb commit 6a4f424
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sass/parts/_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ img {
height: auto;
}

img.inline {
display: inline;
vertical-align: middle;
}

figure h4 {
margin: 0;
margin-bottom: 1em;
Expand Down

0 comments on commit 6a4f424

Please sign in to comment.