style change to display code block language
All checks were successful
/ weblog.lol (push) Successful in 10s
All checks were successful
/ weblog.lol (push) Successful in 10s
This commit is contained in:
parent
e22281aa23
commit
ca363a68d5
1 changed files with 10 additions and 0 deletions
|
@ -463,6 +463,16 @@ pre code {
|
|||
padding: 1em;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
code[data-lang]::after {
|
||||
content: attr(data-lang);
|
||||
position: absolute;
|
||||
top: -1.5rem;
|
||||
right: 0;
|
||||
font-size: 1rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
Loading…
Reference in a new issue