From 1a69eb5488643b791fe36b290f3e5dfecfa5a0d3 Mon Sep 17 00:00:00 2001 From: Demonstrandum Date: Thu, 6 Aug 2020 03:38:36 +0100 Subject: [PATCH] Better markup CSS. --- highlight | 3 ++- style.css | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/highlight b/highlight index 28b1891..6d722bc 100755 --- a/highlight +++ b/highlight @@ -30,7 +30,8 @@ if lexer.__class__ is pygments.lexers.MarkdownLexer: rendered = markdown(contents, extensions=[ 'codehilite', 'extra', - 'sane_lists' + 'sane_lists', + 'smarty' ]) FORMAT = HtmlFormatter( diff --git a/style.css b/style.css index bb20ae7..91045c9 100644 --- a/style.css +++ b/style.css @@ -42,13 +42,60 @@ a.line { } article.markup { + font-size: 15px; border: 2px solid #00000017; border-radius: 10px; font-family: sans-serif; - padding: 1em 2.5em; + padding: 2.5em; margin: 2em 0; } +article.markup code { + font-size: 0.9em; + border: 1px solid #dbdbdb; + background-color: #f0f0f0; + padding: 0 0.3em; + border-radius: 0.3em +} + +article.markup pre code { + border: none; + background: none; + padding: 0; + border-radius: 0; +} + +article.markup pre { + background-color: #f0f0f0; + padding: 0.2em 0.5em; + border: 1px solid #dbdbdb; + border-radius: 0.3em; +} + +article.markup h1 { + font-size: 2.4em; +} + +article.markup h2 { + font-size: 1.9em; +} + +article.markup h3 { + font-size: 1.5em; +} + +article.markup h4 { + font-size: 1.3em; +} + +article.markup h5 { + font-size: 1.1em; +} + +article.markup h6 { + font-size: 1em; +} + .linenos { margin-right: 0; border-right: 1px solid rgb(0 0 0 / 8%); -- 2.39.2