Skip to content

Commit

Permalink
fix: remove margin-top in adminition
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Aug 22, 2024
1 parent 4ec47b0 commit ad87b78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/writing/admonition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ It is possible to add admonitions into admonitions. Take an example:
It can also be confusing.
- It can contain list.
And it looks pretty weird.
.. note::
Expand All @@ -265,6 +267,8 @@ It is possible to add admonitions into admonitions. Take an example:

It can also be confusing.

- It can contain list.

And it looks pretty weird.


Expand Down
4 changes: 2 additions & 2 deletions static/css/contents/admonition.css
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@
--color-4: var(--todo-4);
}

.admonition p.admonition-title + p {
.yue .admonition > * {
margin-top: 0;
}

.admonition > :last-child {
.yue .admonition > :last-child {
margin-bottom: 0 !important;
}

Expand Down

0 comments on commit ad87b78

Please sign in to comment.