Skip to content

Commit 4c415a9

Browse files
committed
lesson.scss: define 'inline' class for images
Define `inline` class for images that should not be displayed as block elements. By appending `{:class="inline"}` or `{: .inline}` to the image definition in Markdown, one can create an inline image that doesn't break the current line and is embedded in the paragraph. Useful for showing special symbols and hieroglyphs that we can't display by other means.
1 parent 0ff1e35 commit 4c415a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/css/lesson.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ article img {
258258
max-width: 100%;
259259
}
260260

261+
article img.inline {
262+
display: inline-block;
263+
margin: auto;
264+
}
265+
261266
article h2 {
262267
margin: 48px 0 16px;
263268
border-bottom: solid 1px #eaecef;

0 commit comments

Comments
 (0)