mirror of
https://github.com/primer/css.git
synced 2024-12-25 07:03:35 +03:00
provide css vars to ::backdrop (#2519)
This commit is contained in:
parent
229e77172c
commit
19018bcaef
@ -29,6 +29,14 @@
|
||||
|
||||
/*! */ // This is a fix for a cssstats bug see https://github.com/cssstats/cssstats/issues/331
|
||||
}
|
||||
|
||||
::backdrop,
|
||||
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
|
||||
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"]::backdrop {
|
||||
@content;
|
||||
|
||||
/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
|
||||
}
|
||||
}
|
||||
|
||||
@else {
|
||||
|
Loading…
Reference in New Issue
Block a user