style change to display code block language
All checks were successful
/ weblog.lol (push) Successful in 8s

This commit is contained in:
Gordon Pedersen 2024-09-10 12:50:47 +10:00
parent e22281aa23
commit 308900272e

View file

@ -463,6 +463,16 @@ pre code {
padding: 1em; padding: 1em;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
position: relative;
}
code[data-lang]::before {
content: attr(data-lang);
position: absolute;
top: -1.5rem;
right: 0;
font-size: 1rem;
text-align: right;
} }
img { img {