diff --git a/demo_docs/source/demo.rst b/demo_docs/source/demo.rst index 5f46e117..9c4e9f81 100644 --- a/demo_docs/source/demo.rst +++ b/demo_docs/source/demo.rst @@ -435,6 +435,12 @@ A figure directive: This paragraph is also part of the legend. +A figure directive with center alignment + +.. figure:: images/title.png + :align: center + :width: 300 + Admonitions ``````````` diff --git a/sass/_theme_rst.sass b/sass/_theme_rst.sass index 562a399a..2e9c9287 100644 --- a/sass/_theme_rst.sass +++ b/sass/_theme_rst.sass @@ -19,6 +19,12 @@ max-width: 100% height: auto !important + div.figure + margin-bottom: $base-line-height + + div.figure.align-center + text-align: center + // Usually it's a good idea to give images some space. .section > img margin-bottom: $base-line-height