summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/static/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'vhosts/blog/static/style.css')
-rw-r--r--vhosts/blog/static/style.css16
1 files changed, 16 insertions, 0 deletions
diff --git a/vhosts/blog/static/style.css b/vhosts/blog/static/style.css
index 830a593b..078c0774 100644
--- a/vhosts/blog/static/style.css
+++ b/vhosts/blog/static/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;
}