mirror of
https://github.com/welpo/tabi.git
synced 2025-10-10 23:38:53 +02:00
🐛 fix: improve dark mode and OS theme handling (#380)
This commit is contained in:
parent
1b11f4b321
commit
35dcf55019
17 changed files with 360 additions and 175 deletions
|
@ -66,7 +66,7 @@ footer nav {
|
|||
}
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
@mixin dark-theme-social {
|
||||
.social {
|
||||
&:hover {
|
||||
& > img {
|
||||
|
@ -79,3 +79,13 @@ footer nav {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
@include dark-theme-social;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme="light"]) {
|
||||
@include dark-theme-social;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue