Skip to content

Commit 57b4467

Browse files
authored
remove color-scheme
add custom chrome scrollbar style (removed in #428)
1 parent 0448a47 commit 57b4467

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

assets/scss/partials/base.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,17 @@ body {
2222
scrollbar-color: var(--scrollbar-thumb) transparent;
2323
}
2424
/**/
25+
26+
/* scrollbar styles for Chromium */
27+
::-webkit-scrollbar {
28+
height: auto;
29+
}
30+
31+
::-webkit-scrollbar-thumb {
32+
background-color: var(--scrollbar-thumb);
33+
}
34+
35+
::-webkit-scrollbar-track {
36+
background-color: transparent;
37+
}
38+
/**/

assets/scss/variables.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
88
}
99

1010
[data-scheme="dark"] {
11-
color-scheme: dark;
1211
--pre-text-color: #f8f8f2;
1312
--pre-background-color: #272822;
1413
@import "partials/highlight/dark.scss";
15-
16-
iframe {
17-
color-scheme: dark;
18-
}
1914
}
2015

2116
/*
@@ -50,7 +45,7 @@ $defaultTagColors: #fff, #fff, #fff, #fff, #fff;
5045
--accent-color-darker: #bdc3c7;
5146
--accent-color-text: #000;
5247
--body-text-color: rgba(255, 255, 255, 0.7);
53-
--scrollbar-thumb: #424242;
48+
--scrollbar-thumb: hsl(0, 0%, 40%);
5449
--scrollbar-track: var(--body-background);
5550
}
5651
}

0 commit comments

Comments
 (0)