From e4625b5cf9490b65349ae27a988a004fd97cbedd Mon Sep 17 00:00:00 2001 From: sunface Date: Thu, 24 Mar 2022 10:23:53 +0800 Subject: [PATCH] update css style of the book --- book.toml | 2 +- theme/{style2.css => style.css} | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) rename theme/{style2.css => style.css} (85%) diff --git a/book.toml b/book.toml index b72ba694..a60bac8a 100644 --- a/book.toml +++ b/book.toml @@ -5,7 +5,7 @@ title = "Rust语言圣经(Rust教程 Rust Course)" src = "src" [output.html] -additional-css = ["theme/style2.css"] +additional-css = ["theme/style.css"] additional-js = ["assets/custom0.js", "assets/bigPicture.js"] git-repository-url = "https://github.com/sunface/rust-course" edit-url-template = "https://github.com/sunface/rust-course/edit/main/{path}" diff --git a/theme/style2.css b/theme/style.css similarity index 85% rename from theme/style2.css rename to theme/style.css index 16b7e034..f1879d3e 100644 --- a/theme/style2.css +++ b/theme/style.css @@ -50,4 +50,16 @@ overflow: hidden; padding: 10px 0; color: gray; +} + +/* 修改章节目录的间距 */ +.chapter li.chapter-item { + /* 没有文件时的文字颜色 */ + color: #939da3; + margin-top: 1.2rem; +} + +/* 修改滚动条宽度 */ +::-webkit-scrollbar { + width: 7px; } \ No newline at end of file