mirror of
https://github.com/foo-dogsquared/hugo-theme-more-contentful.git
synced 2025-01-30 22:57:57 +00:00
Add color palette for backdrop
The backdrop element doesn't inherit from anything. So we'll have to manually add one to all of them.
This commit is contained in:
parent
0ddcb12058
commit
b8ff9e866f
@ -91,19 +91,19 @@
|
||||
|
||||
{{- if eq $name "_light" }}
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
:root, ::backdrop {
|
||||
@include createColorScheme
|
||||
}
|
||||
}
|
||||
{{- else if eq $name "_dark" }}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
:root, ::backdrop {
|
||||
@include createColorScheme
|
||||
}
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
[data-theme="{{ .scheme }}"]:root {
|
||||
[data-theme="{{ .scheme }}"]:root, [data-theme="{{ .scheme }}"]::backdrop {
|
||||
@include createColorScheme;
|
||||
}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user