From 28e7c4a47a873554c271d1bbf8eb9a230a425683 Mon Sep 17 00:00:00 2001 From: Jesse Tan Date: Fri, 30 Nov 2018 18:05:18 +0100 Subject: [PATCH] Style code block captions (#689) * Give code block captions same permalink as other elems * Style code block captions like table captions * Revert "Give code block captions same permalink as other elems" This reverts commit 4f7e6da24682153d3d783a907a1e95e36724abf1. --- sass/_theme_rst.sass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sass/_theme_rst.sass b/sass/_theme_rst.sass index 6a89405b..ad19eb68 100644 --- a/sass/_theme_rst.sass +++ b/sass/_theme_rst.sass @@ -95,6 +95,13 @@ font-size: 12px line-height: 1.4 + .code-block-caption + font-style: italic + font-size: 85% + line-height: 1 + padding: 1em 0 + text-align: center + @media print .codeblock, div[class^='highlight'], div[class^='highlight'] pre white-space: pre-wrap