[other]代码块列表移除小圆点以及修复对齐问题
This commit is contained in:
@@ -33,12 +33,12 @@
|
|||||||
white-space: pre-wrap
|
white-space: pre-wrap
|
||||||
}
|
}
|
||||||
.hljs ul {
|
.hljs ul {
|
||||||
list-style: decimal;
|
list-style: none;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
padding-left: 0em!important;
|
||||||
}
|
}
|
||||||
.hljs ul li {
|
.hljs ul li {
|
||||||
list-style: decimal;
|
list-style: none;
|
||||||
border-left: 3px solid #6ce26c !important;
|
|
||||||
font-family: "Consulas", "Courier New", Courier, mono, serif;
|
font-family: "Consulas", "Courier New", Courier, mono, serif;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -54,3 +54,25 @@
|
|||||||
code.hljs{
|
code.hljs{
|
||||||
background: transparent;
|
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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user