From 4cc61c51826b2d1916afc175e4306ef152cbed47 Mon Sep 17 00:00:00 2001 From: rien333 Date: Tue, 5 Jan 2021 14:12:14 +0100 Subject: [readability-js] horizontally align codeblock contents Before, the first line of a `code` element within a `pre` element had indentation/padding applied to it, creating the illusion that the line started with a space. Now, all the lines in `code` elements horizontally align. --- misc/userscripts/readability-js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/userscripts/readability-js b/misc/userscripts/readability-js index 310d1c081..5f5c85a78 100755 --- a/misc/userscripts/readability-js +++ b/misc/userscripts/readability-js @@ -76,6 +76,10 @@ const HEADER = ` margin: 0; background-color: #dddddd; } + pre > code { + padding-right: 0; + padding-left: 0; + } blockquote { border-inline-start: 2px solid grey !important; padding: 0; -- cgit v1.2.3-54-g00ecf