Skip to content

Commit

Permalink
FIX: Admonitions margin
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Jan 11, 2022
1 parent 47aeeed commit 86f0759
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions docs/conf.py
Expand Up @@ -65,6 +65,11 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

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

myst_enable_extensions = [
"colon_fence",
]
# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
4 changes: 0 additions & 4 deletions docs/demo/demo.rst
Expand Up @@ -15,10 +15,6 @@ Inline Markup

Paragraphs contain text and may contain inline markup: *emphasis*, **strong emphasis**, ``inline literals``,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python_), internal cross-references (example_),
external hyperlinks with embedded URIs (`Python web site <http://www.python.org>`__), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]_), substitution references (|example|), and _`inline hyperlink targets`
(see Targets_ below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in *re*\ ``Structured``\ *Text*. Problems are indicated by problematic
text (generated by processing errors; this one is intentional).

Expand Down
7 changes: 5 additions & 2 deletions src/pydata_sphinx_theme/assets/styles/_admonitions.scss
Expand Up @@ -19,8 +19,11 @@ div.admonition,
}

// Items after the title should be indented
p.admonition-title ~ * {
padding: 0 1.4rem;
p.admonition-title {
~ * {
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 86f0759

Please sign in to comment.