Skip to content

Commit 07fa10f

Browse files
authored
doc(Scroll): update sidebar style (dotnetcore#2924)
* doc: 滚动条兼容老牌浏览器 * refactor: 微调 Sidebar 位置 * refactor: 更新 Sidebar 圆角样式
1 parent 7becc49 commit 07fa10f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/BootstrapBlazor.Server/Components/Layout/NavMenu.razor.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
width: 1px;
3030
position: absolute;
3131
top: 0;
32-
right: 0;
32+
right: -1px;
3333
bottom: 0;
3434
background-color: var(--bs-border-color);
3535
}
@@ -39,6 +39,7 @@
3939
inset: 0px -2px;
4040
cursor: col-resize;
4141
background-color: transparent;
42+
border-radius: 4px;
4243
}
4344

4445
.sidebar-bar .sidebar-body:hover {

src/BootstrapBlazor.Server/wwwroot/css/site.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,10 @@ code {
290290
margin: 2rem;
291291
}
292292
}
293+
294+
@supports not selector(::-webkit-scrollbar) {
295+
.scroll {
296+
scrollbar-color: rgba(0,0,0,0.3) rgba(0,0,0,0);
297+
scrollbar-width: thin;
298+
}
299+
}

0 commit comments

Comments
 (0)