mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
refactor: use CSS vars for GitHub Corner colors
This commit is contained in:
parent
bafc1a2660
commit
3168bcf949
1 changed files with 10 additions and 20 deletions
|
@ -594,29 +594,19 @@ Otherwise, have a great day =^.^=
|
|||
></path>
|
||||
</svg>
|
||||
<style>
|
||||
:root {
|
||||
--theme-background-color: black;
|
||||
--theme-foreground-color: white;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--theme-background-color: white;
|
||||
--theme-foreground-color: black;
|
||||
}
|
||||
}
|
||||
.github-corner svg {
|
||||
fill: #fff;
|
||||
color: #fff;
|
||||
}
|
||||
.octo-arm {
|
||||
fill: #151513;
|
||||
}
|
||||
.octo-body {
|
||||
fill: #151513;
|
||||
}
|
||||
}
|
||||
@media (prefers-color-scheme: light) {
|
||||
.github-corner svg {
|
||||
fill: #151513;
|
||||
color: #fff;
|
||||
}
|
||||
.octo-arm {
|
||||
fill: #fff;
|
||||
}
|
||||
.octo-body {
|
||||
fill: #fff;
|
||||
}
|
||||
fill: var(--theme-background-color);
|
||||
color: var(--theme-foreground-color);
|
||||
}
|
||||
.github-corner:hover .octo-arm {
|
||||
animation: octocat-wave 560ms ease-in-out;
|
||||
|
|
Loading…
Reference in a new issue