Skip to content

Commit

Permalink
Merge pull request #36 from mrelbe1/fix-admonition
Browse files Browse the repository at this point in the history
Fixes styling of general admonitions (fixes #35)
  • Loading branch information
MrDogeBro authored Sep 14, 2023
2 parents a01b9a5 + 1d8039d commit c169a7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_rtd_dark_mode/static/dark_mode_css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ html[data-theme='dark'] .wy-alert.wy-alert-success .wy-alert-title {
background-color: #006a56;
}

html[data-theme='dark'] .rst-content .admonition,
html[data-theme='dark'] .rst-content .note,
html[data-theme='dark'] .rst-content .seealso,
html[data-theme='dark'] .rst-content .wy-alert-info.admonition,
Expand All @@ -288,6 +289,7 @@ html[data-theme='dark'] .wy-alert.wy-alert-info {
background-color: #002c4d;
}

html[data-theme='dark'] .rst-content .admonition .admonition-title,
html[data-theme='dark'] .rst-content .note .admonition-title,
html[data-theme='dark'] .rst-content .note .wy-alert-title,
html[data-theme='dark'] .rst-content .seealso .admonition-title,
Expand Down
4 changes: 4 additions & 0 deletions tests/preview-build/test.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Test Directives

Testing

.. admonition:: Admonition

Testing

.. rubric:: Testing

.. centered:: Testing
Expand Down

0 comments on commit c169a7e

Please sign in to comment.