add syntax highlighting for code blocks

This commit is contained in:
zyl 2024-11-07 14:56:13 -08:00
parent a8d8096ba6
commit e3630208fa
Signed by: zyl
SSH key fingerprint: SHA256:uxxbSXbdroP/OnKBGnEDk5q7EKB2razvstC/KmzdXXs
8 changed files with 251 additions and 6 deletions

View file

@ -166,3 +166,17 @@ abbr {
.flex-spacer {
flex-grow: 1;
}
.wd-codeblock {
position: relative;
.copy {
position: absolute;
top: 0;
right: 0;
}
& > pre {
padding: 8px;
}
}