From e030c2e9e70d8082adf62cdd88d4e879b83b6240 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Fri, 10 Jan 2014 16:32:23 +0100 Subject: [PATCH] Fix spacing after the figure and figure center alignment. --- demo_docs/source/demo.rst | 6 ++++++ sass/_theme_rst.sass | 6 ++++++ 2 files changed, 12 insertions(+) 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