From a77c0ffe85a4a25718259ca33ec4be1d5ca7a9d6 Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 26 Jun 2020 16:35:23 +0200 Subject: [PATCH] add style for line number --- doc/assets/style.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/assets/style.css b/doc/assets/style.css index b884d23..344be53 100644 --- a/doc/assets/style.css +++ b/doc/assets/style.css @@ -276,4 +276,24 @@ a:hover{ form.search-form { display: contents; +} + +td.hljs-ln-numbers { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + + text-align: center; + color: #ccc; + vertical-align: top; + font-size: 13; + /* your custom style here */ +} + +/* for block of code */ +#container .blogentry .hljs-ln td.hljs-ln-code { + padding-left: 10px; } \ No newline at end of file