From 0fde3ab0939e3732249a6503c8a5f0942dd97733 Mon Sep 17 00:00:00 2001 From: Jesse Tan Date: Fri, 20 Apr 2018 16:51:56 +0200 Subject: [PATCH] Add padding to literal blocks --- sass/_theme_rst.sass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sass/_theme_rst.sass b/sass/_theme_rst.sass index 9293dc16..07bfa358 100644 --- a/sass/_theme_rst.sass +++ b/sass/_theme_rst.sass @@ -53,13 +53,20 @@ line-height: $base-line-height margin-bottom: $base-line-height + pre.literal-block + white-space: pre + margin: 0 + padding: $base-line-height / 2 $base-line-height / 2 + font-family: $code-font-family + display: block + overflow: auto pre.literal-block, div[class^='highlight'] border: 1px solid $table-border-color - padding: 0px overflow-x: auto // 1px hack otherwise border won't show. lame margin: 1px 0 $base-line-height 0 div[class^='highlight'] + padding: 0px border: none margin: 0 // Needs 100% width for line highlighting to work properly