Skip to content

Commit

Permalink
FIX: Admonitions margin (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored Jan 13, 2022
1 parent f6b514c commit 7d64c92
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# -- Extension options -------------------------------------------------------

myst_enable_extensions = [
# This allows us to use ::: to denote directives, useful for admonitions
"colon_fence",
]

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
3 changes: 2 additions & 1 deletion src/pydata_sphinx_theme/assets/styles/_admonitions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ div.admonition,

// Items after the title should be indented
p.admonition-title ~ * {
padding: 0 1.4rem;
margin-left: 1.4rem;
margin-right: 1.4rem;
}

// Lists need to have left margin so they don't spill into it
Expand Down

0 comments on commit 7d64c92

Please sign in to comment.