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">
|
<link rel="stylesheet" href="/style/book.css">
|
||||||
{% else %}
|
{% else %}
|
||||||
<script>
|
<script>
|
||||||
let style = dark ? "native" : "default";
|
let style = dark ? "monokai" : "friendly";
|
||||||
addStyle(`https://cdn.jsdelivr.net/gh/jwarby/pygments-css@master/${style}.css`);
|
addStyle(`https://cdn.jsdelivr.net/gh/richleland/pygments-css@master/${style}.css`);
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -226,6 +226,14 @@ blockquote {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre.highlight {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.container {
|
.container {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
|
Loading…
Reference in a new issue