提交 e1aa88c6 编写于 作者: G Guillaume Gomez

Improve scrollbar display in rustdoc

上级 1b521f57
......@@ -182,6 +182,18 @@ nav.sub {
top: 0;
bottom: 0;
overflow: auto;
/* Improve the sidebar display on firefox */
scrollbar-width: thin;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar {
width: 8px;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0;
}
.sidebar .block > ul > li {
......
......@@ -30,6 +30,18 @@ pre {
.sidebar {
background-color: #505050;
/* Improve the sidebar display on firefox */
scrollbar-color: rgba(32,34,37,.6) transparent;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar-track {
background-color: #717171;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar-thumb {
background-color: rgba(32, 34, 37, .6);
}
.sidebar .current {
......
......@@ -32,6 +32,18 @@ pre {
.sidebar {
background-color: #F1F1F1;
/* Improve the sidebar display on firefox */
scrollbar-color: rgba(36, 37, 39, 0.6) #d9d9d9;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar-track {
background-color: #dcdcdc;
}
/* Improve the sidebar display on webkit-based browsers */
.sidebar::-webkit-scrollbar-thumb {
background-color: rgba(36, 37, 39, 0.6);
}
.sidebar .current {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册