Skip to content

Commit 446c15c

Browse files
authored
Style scrollbars in dark mode (#3975)
1 parent 1bf54f2 commit 446c15c

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

src/styles/index.css

+28-6
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,30 @@
5151
}
5252

5353
a > code {
54-
color: #087EA4 !important; /* blue-50 */
54+
color: #087ea4 !important; /* blue-50 */
5555
text-decoration: none !important;
5656
}
5757

5858
html.dark a > code {
59-
color: #149ECA !important; /* blue-40 */
59+
color: #149eca !important; /* blue-40 */
60+
}
61+
62+
html.dark ::-webkit-scrollbar {
63+
width: auto;
64+
height: auto;
65+
}
66+
67+
html.dark ::-webkit-scrollbar-track {
68+
@apply bg-wash-dark;
69+
}
70+
71+
html.dark ::-webkit-scrollbar-thumb {
72+
@apply bg-card-dark;
73+
}
74+
75+
html.dark ::-webkit-scrollbar-corner,
76+
html.dark ::-webkit-resizer {
77+
@apply bg-card-dark;
6078
}
6179

6280
.text-code {
@@ -102,16 +120,20 @@
102120
}
103121

104122
@keyframes nav-fadein {
105-
from { opacity: 0.5; }
106-
to { opacity: 1; }
123+
from {
124+
opacity: 0.5;
125+
}
126+
to {
127+
opacity: 1;
128+
}
107129
}
108130
}
109131

110-
#_hj_feedback_container > div > button:not([aria-label="Close"]) {
132+
#_hj_feedback_container > div > button:not([aria-label='Close']) {
111133
display: none;
112134
}
113135

114-
#_hj_feedback_container > div {
136+
#_hj_feedback_container > div {
115137
--hjFeedbackAccentColor: rgb(230, 247, 255) !important;
116138
--hjFeedbackAccentTextColor: rgb(73, 119, 171) !important;
117139
}

0 commit comments

Comments
 (0)