improved styling of code in blog posts
All checks were successful
Web/pipeline/head This commit looks good
All checks were successful
Web/pipeline/head This commit looks good
This commit is contained in:
parent
28e938feb6
commit
1be224b23d
2 changed files with 10 additions and 2 deletions
|
@ -7,8 +7,8 @@ nav: nav/blognav.html
|
|||
<link rel="stylesheet" href="/style/book.css">
|
||||
{% else %}
|
||||
<script>
|
||||
let style = dark ? "native" : "default";
|
||||
addStyle(`https://cdn.jsdelivr.net/gh/jwarby/pygments-css@master/${style}.css`);
|
||||
let style = dark ? "monokai" : "friendly";
|
||||
addStyle(`https://cdn.jsdelivr.net/gh/richleland/pygments-css@master/${style}.css`);
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -226,6 +226,14 @@ blockquote {
|
|||
overflow: auto;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
pre.highlight {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
max-width: none;
|
||||
|
|
Loading…
Reference in a new issue