Skip to content

Commit de94e5a

Browse files
authored
Merge pull request #231 from OCram85/fixScrollbar
🐛 Fixes scrollbar in code blocks
2 parents 7e78afb + a02c0ac commit de94e5a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assets/scss/common/_dark.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ body.dark .docs-navigation {
188188
}
189189

190190
body.dark pre code::-webkit-scrollbar-thumb {
191-
background: $border-dark;
191+
background: $gray-400;
192192
}
193193

194194
body.dark code:not(.hljs) {
@@ -202,7 +202,7 @@ body.dark pre code:hover {
202202
}
203203

204204
body.dark pre code::-webkit-scrollbar-thumb:hover {
205-
background: $border-dark;
205+
background: $gray-500;
206206
}
207207

208208
body.dark blockquote {

assets/scss/components/_code.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ pre code::-webkit-scrollbar {
4949
}
5050

5151
pre code::-webkit-scrollbar-thumb {
52-
background: $gray-200;
52+
background: $gray-400;
5353
}
5454

5555
pre code:hover {
5656
scrollbar-width: thin;
57-
scrollbar-color: $gray-200 transparent;
57+
scrollbar-color: $gray-500 transparent;
5858
}
5959

6060
pre code::-webkit-scrollbar-thumb:hover {
61-
background: $gray-200;
61+
background: $gray-500;
6262
}

0 commit comments

Comments
 (0)