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>
|
></path>
|
||||||
</svg>
|
</svg>
|
||||||
<style>
|
<style>
|
||||||
|
:root {
|
||||||
|
--theme-background-color: black;
|
||||||
|
--theme-foreground-color: white;
|
||||||
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.github-corner svg {
|
:root {
|
||||||
fill: #fff;
|
--theme-background-color: white;
|
||||||
color: #fff;
|
--theme-foreground-color: black;
|
||||||
}
|
|
||||||
.octo-arm {
|
|
||||||
fill: #151513;
|
|
||||||
}
|
|
||||||
.octo-body {
|
|
||||||
fill: #151513;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (prefers-color-scheme: light) {
|
.github-corner svg {
|
||||||
.github-corner svg {
|
fill: var(--theme-background-color);
|
||||||
fill: #151513;
|
color: var(--theme-foreground-color);
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
.octo-arm {
|
|
||||||
fill: #fff;
|
|
||||||
}
|
|
||||||
.octo-body {
|
|
||||||
fill: #fff;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.github-corner:hover .octo-arm {
|
.github-corner:hover .octo-arm {
|
||||||
animation: octocat-wave 560ms ease-in-out;
|
animation: octocat-wave 560ms ease-in-out;
|
||||||
|
|
Loading…
Reference in a new issue