From f7fd87820c9579052ce78bb1fb43dc81f6d35079 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Fri, 5 Apr 2019 03:03:54 +0800 Subject: [PATCH] Add code highlight patch --- static/css/style.css | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 97e1639..96d0d45 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,8 +1,8 @@ /* - * Paper v3.0 + * Paper v3.1 * A simple, clean, flexible Hugo theme. * Designed by MR.LEE (https://mrlee.me/) - * Updated in 2019.4.1 + * Updated in 2019.4.5 */ /* Reset @@ -428,9 +428,33 @@ img { margin-left: 0; margin-right: 0; padding: 20px 22px; - line-height: 1.6; + line-height: 1.7; border-radius: 2px; } +.post-content .highlight table { + padding: 20px 22px; +} +.post-content .highlight table td { + padding: 0; + border-bottom: 0; +} +.post-content .highlight table td pre { + margin-top: 0; + margin-bottom: 0; +} +.post-content .highlight table td:first-child pre code { + padding-right: 0; + color: rgba(0, 0, 0, 0.2); + border-radius: 2px 0 0 2px; +} +.post-content .highlight table td:last-child pre code { + padding-left: 0; + border-radius: 0 2px 2px 0; +} +.post-content .highlight .ln { + margin-right: 24px; + color: rgba(0, 0, 0, 0.2); +} .post-content blockquote { margin: 0 0 0 -24px; padding: 0 0 0 21px;