Skip to content

Commit

Permalink
feat(v2): style right sidebar scrollbar when overflow (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and yangshun committed Nov 21, 2019
1 parent 3303257 commit 91902ed
Showing 1 changed file with 18 additions and 0 deletions.
Expand Up @@ -30,6 +30,24 @@
top: calc(var(--ifm-navbar-height) + 2rem);
}

.tableOfContents::-webkit-scrollbar {
width: 7px;
}

.tableOfContents::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 10px;
}

.tableOfContents::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}

.tableOfContents::-webkit-scrollbar-thumb:hover {
background: #555;
}

@media only screen and (max-width: 996px) {
.tableOfContents {
display: none;
Expand Down

0 comments on commit 91902ed

Please sign in to comment.