Skip to content

Commit 1085b58

Browse files
committed
优化jsdoc侧边栏滚动条
1 parent 419760c commit 1085b58

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build/jsdocs/template/static/styles/jaguar.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ li {
1616
}
1717
::-webkit-scrollbar {
1818
width: 6px;
19+
height: 10px;
1920
background-color: transparent;
2021
padding-top: 50px;
2122
}
@@ -48,9 +49,9 @@ li {
4849
.main-sidebar .search {
4950
padding: 10px 15px;
5051
}
51-
.main-sidebar .search input {
52-
}
52+
5353
.main-sidebar .list {
54+
height: 100%;
5455
padding: 5px 5px 0 5px;
5556
position: relative;
5657
overflow: auto;

build/jsdocs/template/tmpl/navigation.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function buildLi(obj){
148148
<div class="search">
149149
<input id="searchBox" type="text" class="form-control input-sm" placeholder="Search Documentations">
150150
</div>
151-
<div style='width: 100%;position: absolute;top: 50px;bottom: 0px;left: 0px;'>
151+
<div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;padding-top:50px;height:100%'>
152152
<div style='height:100%;overflow:auto'>
153153
<ul class="sidebar-menu tree list" data-widget='tree'>
154154
<?js

0 commit comments

Comments
 (0)