chore: hack the clippy button

This commit is contained in:
EnixCoda 2020-12-10 23:20:02 +08:00
parent 79c4049300
commit 7f9827a4ee
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -86,6 +86,18 @@ $minimal-z-index: max($github-header-z-index, $github-pull-request-float-header-
}
}
// TODO: use react to render the button content and set color with CSS variables
@media (prefers-color-scheme: dark) {
:root[data-color-mode='auto'] .markdown-body .clippy .icon {
filter: invert(0.7); // hack to make it looks like a normal color :P
}
}
:root[data-color-mode='dark'] {
.markdown-body .clippy .icon {
filter: invert(0.7); // hack to make it looks like a normal color :P
}
}
.markdown-body {
.clippy-wrapper {
position: relative;