From 75cc2a8dc9b0dbc7736494816ab2400b04a76a7f Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 15 Aug 2020 13:38:31 +0000 Subject: [PATCH] fix(css): compatibility with hexojs/hexo-util#229 - https://github.com/hexojs/hexo-util/pull/229 --- themes/chameleon/README.md | 16 ++++++++++++++++ themes/chameleon/source/css/_source.css | 10 +++++++--- themes/chameleon/source/css/chameleon.css | 10 +++++++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/themes/chameleon/README.md b/themes/chameleon/README.md index 0aed967..6ab8726 100644 --- a/themes/chameleon/README.md +++ b/themes/chameleon/README.md @@ -30,6 +30,22 @@ theme_config: icons: false ``` +## Codeblock highlight + +Following configurations need to be updated. + +``` yml +# _config.yml +highlight: + enable: true + line_number: false + hljs: true + wrap: false + +prismjs: + enable: false +``` + ## Build Build "source/css/_source.css" into "source/css/chameleon.css" diff --git a/themes/chameleon/source/css/_source.css b/themes/chameleon/source/css/_source.css index f1dfaf8..e509a48 100644 --- a/themes/chameleon/source/css/_source.css +++ b/themes/chameleon/source/css/_source.css @@ -126,16 +126,20 @@ hr { } figcaption, -small { +small, +pre div { font-size: 0.9em; color: #888; } -figcaption { +/* code caption */ +figcaption, +pre div { margin-bottom: 0.5em; } -pre figcaption a { +pre figcaption a, +pre div a { float: right; } diff --git a/themes/chameleon/source/css/chameleon.css b/themes/chameleon/source/css/chameleon.css index a60fbb0..57f36d9 100644 --- a/themes/chameleon/source/css/chameleon.css +++ b/themes/chameleon/source/css/chameleon.css @@ -571,16 +571,20 @@ hr { } figcaption, -small { +small, +pre div { font-size: 0.9em; color: #888; } -figcaption { +/* code caption */ +figcaption, +pre div { margin-bottom: 0.5em; } -pre figcaption a { +pre figcaption a, +pre div a { float: right; }