diff options
| author | nanxiaobei <nanxiaobei@gmail.com> | 2019-04-05 03:03:54 +0800 |
|---|---|---|
| committer | nanxiaobei <nanxiaobei@gmail.com> | 2019-04-05 03:03:54 +0800 |
| commit | f7fd87820c9579052ce78bb1fb43dc81f6d35079 (patch) | |
| tree | bbdee05d4a6fca58e1d73f5c479e09eb83f6b06c /static/css/style.css | |
| parent | 0a22cc570e6f34575ce9fe0f5ff34cb142989371 (diff) | |
Add code highlight patch
Diffstat (limited to 'static/css/style.css')
| -rw-r--r-- | static/css/style.css | 30 |
1 files 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; |
