Skip to content

Commit

Permalink
Style scrollbars in dark mode (#3975)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtterlord authored Oct 26, 2021
1 parent 1bf54f2 commit 446c15c
Showing 1 changed file with 28 additions and 6 deletions.
34 changes: 28 additions & 6 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,30 @@
}

a > code {
color: #087EA4 !important; /* blue-50 */
color: #087ea4 !important; /* blue-50 */
text-decoration: none !important;
}

html.dark a > code {
color: #149ECA !important; /* blue-40 */
color: #149eca !important; /* blue-40 */
}

html.dark ::-webkit-scrollbar {
width: auto;
height: auto;
}

html.dark ::-webkit-scrollbar-track {
@apply bg-wash-dark;
}

html.dark ::-webkit-scrollbar-thumb {
@apply bg-card-dark;
}

html.dark ::-webkit-scrollbar-corner,
html.dark ::-webkit-resizer {
@apply bg-card-dark;
}

.text-code {
Expand Down Expand Up @@ -102,16 +120,20 @@
}

@keyframes nav-fadein {
from { opacity: 0.5; }
to { opacity: 1; }
from {
opacity: 0.5;
}
to {
opacity: 1;
}
}
}

#_hj_feedback_container > div > button:not([aria-label="Close"]) {
#_hj_feedback_container > div > button:not([aria-label='Close']) {
display: none;
}

#_hj_feedback_container > div {
#_hj_feedback_container > div {
--hjFeedbackAccentColor: rgb(230, 247, 255) !important;
--hjFeedbackAccentTextColor: rgb(73, 119, 171) !important;
}

0 comments on commit 446c15c

Please sign in to comment.