Skip to content

Commit

Permalink
fix: float image with admonition
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed May 15, 2024
1 parent 1141754 commit 1a18089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/writing/media.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ excepturi facere, corrupti expedita sit.
:height: 200
:width: 200

.. hint::

You can use ``:align: right`` to float image to the right side.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis
sapiente veritatis doloribus accusantium molestiae modi recusandae
excepturi facere, corrupti expedita sit.
Expand Down
2 changes: 2 additions & 0 deletions static/css/contents/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
--color-3: var(--accent-9);
--color-4: var(--accent-a11);

display: flex;
flex-direction: column;
position: relative;
padding: 0 16px 0.8rem;
margin-top: 1rem;
Expand Down

0 comments on commit 1a18089

Please sign in to comment.