Merge pull request #28 from odysa/dev
fix: make card support darkmode change
This commit is contained in:
commit
fcfda461a9
1 changed files with 15 additions and 8 deletions
|
@ -53,16 +53,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@mixin darkmode {
|
||||||
.card {
|
|
||||||
background-color: hsl(0, 0%, 16%);
|
background-color: hsl(0, 0%, 16%);
|
||||||
|
|
||||||
> figcaption {
|
> figcaption {
|
||||||
border-block-start: 1px solid hsl(0, 0%, 20%);
|
border-block-start: 1px solid hsl(0, 0%, 20%);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.card__vertical-container {
|
.card__vertical-container {
|
||||||
border-color: hsl(0, 0%, 20%);
|
border-color: hsl(0, 0%, 20%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
[data-darkmode="dark"] & {
|
||||||
|
@include darkmode();
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
[data-darkmode="auto"] & {
|
||||||
|
@include darkmode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue