fix(css): compatibility with hexojs/hexo-util#229

- https://github.com/hexojs/hexo-util/pull/229
This commit is contained in:
MDLeom 2020-08-15 13:38:31 +00:00
parent 9b3b9d569d
commit 75cc2a8dc9
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
3 changed files with 30 additions and 6 deletions

View File

@ -30,6 +30,22 @@ theme_config:
icons: false 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
Build "source/css/_source.css" into "source/css/chameleon.css" Build "source/css/_source.css" into "source/css/chameleon.css"

View File

@ -126,16 +126,20 @@ hr {
} }
figcaption, figcaption,
small { small,
pre div {
font-size: 0.9em; font-size: 0.9em;
color: #888; color: #888;
} }
figcaption { /* code caption */
figcaption,
pre div {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
pre figcaption a { pre figcaption a,
pre div a {
float: right; float: right;
} }

View File

@ -571,16 +571,20 @@ hr {
} }
figcaption, figcaption,
small { small,
pre div {
font-size: 0.9em; font-size: 0.9em;
color: #888; color: #888;
} }
figcaption { /* code caption */
figcaption,
pre div {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
pre figcaption a { pre figcaption a,
pre div a {
float: right; float: right;
} }