Skip to content

Commit

Permalink
improve scroll-bar styling
Browse files Browse the repository at this point in the history
and fix hidden gist scrollbar
  • Loading branch information
adityatelange committed Jan 25, 2021
1 parent cd03c69 commit 9c50449
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
12 changes: 11 additions & 1 deletion assets/css/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,19 @@ h6:hover .anchor {
}

.post-content ::-webkit-scrollbar-thumb {
border: 2px solid var(--hljs-bg);
background: rgba(255, 255, 255, 0.32)
}

.post-content ::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.64)
background: rgba(255, 255, 255, 0.56)
}

.gist ::-webkit-scrollbar-thumb {
border: 2px solid rgb(255, 255, 255);
background: rgba(0, 0, 0, 0.32)
}

.gist ::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.56)
}
5 changes: 5 additions & 0 deletions assets/css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,14 @@ img {

::-webkit-scrollbar-thumb {
background: var(--tertiary);
border: 5px solid var(--theme);
border-radius: var(--radius)
}

.list:not(.dark)::-webkit-scrollbar-thumb {
border: 5px solid var(--code-bg)
}

::-webkit-scrollbar-thumb:hover {
background: var(--secondary)
}
4 changes: 2 additions & 2 deletions assets/css/zmedia.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
@media screen and (min-width: 768px) {
/* reset */
::-webkit-scrollbar {
width: 10px;
height: 6px;
width: 19px;
height: 11px;
}
}

Expand Down

0 comments on commit 9c50449

Please sign in to comment.