From b8dda716d04a20cdea12e89f5360947ddd68ad91 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Thu, 25 Feb 2021 21:56:48 +0100 Subject: Fixes --- static/css/poole.css | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 14 deletions(-) (limited to 'static/css/poole.css') diff --git a/static/css/poole.css b/static/css/poole.css index cea3a9a..5118626 100644 --- a/static/css/poole.css +++ b/static/css/poole.css @@ -147,28 +147,22 @@ abbr[title] { /* Code */ code, -pre { +pre, +.highlight { font-family: Menlo, Monaco, "Courier New", monospace; } code { - padding: .25em .5em; - font-size: 85%; - color: #b3555e; - background-color: #f9f9f9; - border-radius: 3px; + color: #e83e8c; + white-space: pre; } pre { display: block; - margin-top: 0; - margin-bottom: 1rem; - padding: 1rem; - font-size: .8rem; + overflow: auto; + margin: 0; + padding: 0; line-height: 1.4; white-space: pre; - white-space: pre-wrap; - word-break: break-all; - word-wrap: break-word; - background-color: #f9f9f9; + background-color: #fff; } pre code { padding: 0; @@ -177,12 +171,29 @@ pre code { background-color: transparent; } .highlight { + font-size: 90%; margin-bottom: 1rem; border-radius: 4px; + border: 1px solid; + border-color: #ddd #ddd #ccc; + border-radius: 3px; } .highlight pre { margin-bottom: 0; } +.chroma .lntable { + border-spacing: 0; + padding: 0; + margin: 0; + border: 0; + width: auto; + overflow: auto; + display: block; +} +.chroma .lntd { + background-color: #fff; + border: 0; +} /* Quotes */ blockquote { @@ -307,6 +318,11 @@ tbody tr:nth-child(odd) th { margin-bottom: 2em; } +.page .title, +.post .title { + font-size: 2rem; +} + /* Blog post or page title */ .page-title, .post-title, @@ -315,16 +331,22 @@ tbody tr:nth-child(odd) th { } .page-title, .post-title { + font-size: 1.6rem; margin-top: 0; } /* Meta data line below post title */ .post-date { display: block; + font-size: 1.0rem; margin-bottom: 1rem; color: #757575; } +.posts .post-date { + margin-bottom: 0.5rem; +} + /* Related posts */ .related { padding-top: 2rem; -- cgit v1.2.1