💄 Add tree line on TOC list style.

This commit is contained in:
凡梦星尘 2022-10-01 22:06:47 +08:00
parent 1208213476
commit a7b9d5338e
4 changed files with 60 additions and 13 deletions

View File

@ -1,26 +1,57 @@
.post-toc {
font-size: $font-size-small;
padding: 0 8px;
ul {
list-style: none;
margin: 0;
padding: 0 2px 5px 10px;
text-align: left;
counter-reset: item;
> li {
padding-left: 0;
>li {
> ul {
border-left: 1px solid;
margin-left: 6px;
li {
position: relative;
padding-left: 0;
&:before {
position: absolute;
content: ' ';
top: 0.14em;
left: -0.75em;
width: 0.68em;
height: 0.815em;
border-style: none none dashed none;
border-width: 0.05em;
}
}
}
}
a {
transition: all $transition-ease;
border: none;
&:before {
content: counters(item, ".") ". ";
content: counters(item, ".") ". ";
counter-increment: item;
}
&:hover {
text-decoration: underline;
color: $orange;
}
}
}
@ -39,24 +70,24 @@
display: if($toc_expand_all, block, none);
}
.active > .nav-child {
.active>.nav-child {
display: block;
}
.active-current > .nav-child {
.active-current>.nav-child {
display: block;
> .nav-item {
>.nav-item {
display: block;
}
}
.active > a {
.active>a {
border-bottom-color: $sidebar-highlight;
color: $sidebar-highlight;
}
.active-current > a {
.active-current>a {
color: $sidebar-highlight;
&:hover {
@ -64,4 +95,4 @@
}
}
}
}
}

View File

@ -70,7 +70,7 @@
border-bottom: 1px solid $body-bg-color;
}
h3 {
h3, h4 {
border-bottom: 1px dotted $body-bg-color;
}
}

View File

@ -61,6 +61,12 @@ markup:
noHl: false
style: monokai
tabWidth: 2
tableOfContents:
# 开始/结束标题级别1-6 (建议从2开始)
# Heading title level of start or end: 1-6
# Recommand start at 2
startLevel: 2
endLevel: 4
# 站点文章导航文件
# Site map of all articles

View File

@ -47,6 +47,10 @@ url: post/table-of-content.html
因为战斗力相较悬殊,所以游击队只能是靠打一枪换一个地方的办法,专找敌人薄弱的地方攻击,但更多时候,都是在防御和转移阵地。
### 迎来解放
1949年12月国民党云南省主席卢汉在昆明宣布起义云南正式拉开解放的序幕。1950年2月20日陈赓、宋任穷、周保中率解放军第二野战军第四兵团进入昆明24日陈赓宣布云南全境解放。
## 生活的断层
### 跌入生活底层
@ -57,4 +61,10 @@ url: post/table-of-content.html
### 岁月像一条河
2015年是褚时健和马静芬结婚60周年被称为“钻石婚”的纪念年份。这简直是一份人生的奖赏,在中国离婚率愈益升高的当下60年的婚姻几乎就像一个前世之梦。一个甲子的相伴相随褚时健和马静芬共同经历了国家和个人的各种风浪共同面对过生死。他们两人已经不仅是夫妻更是一对战友。尽管马静芬偶尔会对褚时健年轻时候的粗心抱怨上两句但说到最后她会说一句“没有我就没有他没有他也就没有我。”
2015年是褚时健和马静芬结婚60周年被称为“钻石婚”的纪念年份。这简直是一份人生的奖赏,在中国离婚率愈益升高的当下60年的婚姻几乎就像一个前世之梦。一个甲子的相伴相随褚时健和马静芬共同经历了国家和个人的各种风浪共同面对过生死。他们两人已经不仅是夫妻更是一对战友。尽管马静芬偶尔会对褚时健年轻时候的粗心抱怨上两句但说到最后她会说一句“没有我就没有他没有他也就没有我。”
## 作者致谢
这本书从2014年初夏开始采访到今天完稿历时18个月。封面上“作者”只能是我一个人的名字但也只有我自己知道这本书包含了太多人的心力和体力。我当然首先要致谢王石先生没有他就没有这本书。我自己细想下来没有王石先生一直的鞭策和鼓励也没有我写作工作的今天。从2006年我开始从事专业写作工作以来他给我创造了很多写作的机会并且不吝自己诸多人生和学习的体会和感悟一一传递予我。知遇之恩感谢非常。
最后,我当然要把最大的感谢致予褚时健先生。不仅是因为他慷慨、坦率面对我的各种提问,更重要的是,在倾听他的故事的过程里,他繁盛的人生经历,他的强大生命力,他对生活、对事业的一片赤子之心,也丰富了我对自己人生的思考。