diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-30 23:45:41 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-30 23:45:41 +0800 |
| commit | 23c8e8fed64c5995101cc9ceb08706d8849b0a3c (patch) | |
| tree | 0b5cd4eb18caf8313f41911b1d208c3da2c72c88 /assets/css | |
| parent | 7168e743fe802cc977ce8fe990f09bf87ba46eaa (diff) | |
:zap: Add: 各种优化、新增和修复
- 新增:支持自定义「导航栏图标按钮」
- 新增:文章目录(使用 `{:toc:}` 在文中插入目录)
- 新增:归档页面中添加「文章分类」栏目
- 优化:将设置项「Pjax 完成后执行事件」更改为更准确的「Pjax 回调函数」
- 修复:一个存在了超久的拼写错误(`paresNav`=>`parseNav`)
- 修复:archive 页面(即分类、标签、搜索等)文章头图问题
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/main/nav.css | 5 | ||||
| -rw-r--r-- | assets/css/main/post.css | 25 |
2 files changed, 30 insertions, 0 deletions
diff --git a/assets/css/main/nav.css b/assets/css/main/nav.css index dfd0d59..8ae1ba2 100644 --- a/assets/css/main/nav.css +++ b/assets/css/main/nav.css @@ -230,6 +230,7 @@ background: rgb(240,240,240);
}
.drawer-icon {
+ display: inline-block;
height: 45px;
width: 45px;
border-radius: 100%;
@@ -238,10 +239,14 @@ margin: 0 3px;
border: none;
outline: none;
+ padding: 1px 6px;
}
.drawer-icon:hover {
background: rgb(240,240,240);
}
+a.drawer-icon {
+ line-height: 2.55
+}
/* Search/Login/Menu */
.search,.login,.mobile-menu {
diff --git a/assets/css/main/post.css b/assets/css/main/post.css index 5dc5a95..5520a93 100644 --- a/assets/css/main/post.css +++ b/assets/css/main/post.css @@ -444,3 +444,28 @@ .post-item-content{
padding: 0 35px 10px 35px;
}
+
+/* 文章目录 **/
+
+.toc-box {
+ border: 1px solid #ddd;
+ background: rgb(245,245,245);
+ padding: 1em 2em;
+ border-radius: .2em
+}
+
+.toc-level-3 {
+ margin-left: 1em;
+}
+
+.toc-level-4 {
+ margin-left: 2em;
+}
+
+.toc-level-5 {
+ margin-left: 3em;
+}
+
+.toc-level-6 {
+ margin-left: 4em;
+}
\ No newline at end of file |
