diff options
Diffstat (limited to 'vhosts/blog/public/style.css')
| -rw-r--r-- | vhosts/blog/public/style.css | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vhosts/blog/public/style.css b/vhosts/blog/public/style.css index 830a593b..078c0774 100644 --- a/vhosts/blog/public/style.css +++ b/vhosts/blog/public/style.css @@ -156,6 +156,22 @@ code { padding: 0; } +/* https://github.com/shikijs/shiki/issues/3 */ +.shiki code { + counter-reset: codeblock-line-number; + counter-increment: codeblock-line-number 0; +} + +.numbered .shiki code .line::before { + content: counter(codeblock-line-number); + counter-increment: codeblock-line-number; + width: 2rem; + margin-right: 1.5rem; + display: inline-block; + text-align: right; + color: #777; +} + li.revision { list-style: inside; } |
