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