From d7afa6c61392844dd850aea8e4530a5f7c45b86a Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Sun, 27 Aug 2023 13:54:54 -0500 Subject: [PATCH] Reduce padding of code blocks This style tweak reduces the padding of code blocks to make the code feel less disconnected from the surrounding prose. (Note that, effectively, `em` is character height whereas `ch` is character width.) --- lib/rdoc/generator/template/rails/resources/css/main.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rdoc/generator/template/rails/resources/css/main.css b/lib/rdoc/generator/template/rails/resources/css/main.css index ce42fe8a..8b900bca 100644 --- a/lib/rdoc/generator/template/rails/resources/css/main.css +++ b/lib/rdoc/generator/template/rails/resources/css/main.css @@ -518,8 +518,8 @@ html { .method__source pre, .description pre { - padding: 0.5em 1em; - border-radius: 8px; + padding: 0.5ch 1ch; + border-radius: 4px; overflow-x: auto; }