From 74639a9211e398094e4de7b5b9b85a40b89ea473 Mon Sep 17 00:00:00 2001 From: percychen Date: Fri, 12 Oct 2018 09:50:40 +0800 Subject: [PATCH] =?UTF-8?q?[other]=E4=BB=A3=E7=A0=81=E5=9D=97=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=A7=BB=E9=99=A4=E5=B0=8F=E5=9C=86=E7=82=B9=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E4=BF=AE=E5=A4=8D=E5=AF=B9=E9=BD=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/posts_style_custom.css | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/public/css/posts_style_custom.css b/public/css/posts_style_custom.css index cfb8626..75fff8d 100644 --- a/public/css/posts_style_custom.css +++ b/public/css/posts_style_custom.css @@ -33,12 +33,12 @@ white-space: pre-wrap } .hljs ul { - list-style: decimal; + list-style: none; padding: 0px; + padding-left: 0em!important; } .hljs ul li { - list-style: decimal; - border-left: 3px solid #6ce26c !important; + list-style: none; font-family: "Consulas", "Courier New", Courier, mono, serif; font-weight: 200; font-size: 12px; @@ -54,3 +54,25 @@ code.hljs{ background: transparent; } +.hljs ul { + list-style-type: none; + margin-left: 0; +} + +.hljs ul li { + counter-increment: customlistcounter; +} + +.hljs ul li:before { + content: counter(customlistcounter) " "; + /*font-weight: bold;*/ + float: left; + width: 3em; + margin-right: 10px; + color: #999; + border-right: 3px solid #6ce26c !important; +} + +.hljs ul :first-child { + counter-reset: customlistcounter; +} \ No newline at end of file