feat: 调整toc样式
This commit is contained in:
@@ -30,18 +30,18 @@ const lowLevel = Math.min(...toc.map((v) => v.level));
|
||||
<style>
|
||||
.toc-mount {
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
bottom: -64px;
|
||||
right: -320px;
|
||||
width: 280px;
|
||||
padding: 24px 0;
|
||||
padding: 0px 0;
|
||||
}
|
||||
|
||||
.toc {
|
||||
position: sticky;
|
||||
top: 60px;
|
||||
height: calc(100vh - 120px);
|
||||
bottom: -64px;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user