summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrien333 <rien334@gmail.com>2021-01-05 14:12:14 +0100
committerrien333 <rien334@gmail.com>2021-01-05 14:12:14 +0100
commit4cc61c51826b2d1916afc175e4306ef152cbed47 (patch)
treec40ef17c7b7507acb4dff8a56e3e3f24b7d9d3f2
parent2eb6db1a7567e5e5e0f007846acb6e5060c186ff (diff)
downloadqutebrowser-4cc61c51826b2d1916afc175e4306ef152cbed47.tar.gz
qutebrowser-4cc61c51826b2d1916afc175e4306ef152cbed47.zip
[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.
-rwxr-xr-xmisc/userscripts/readability-js4
1 files changed, 4 insertions, 0 deletions
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;