1
1
mirror of https://github.com/primer/css.git synced 2024-12-24 14:42:26 +03:00

provide css vars to ::backdrop (#2519)

This commit is contained in:
Keith Cirkel 2023-09-07 12:14:58 +01:00 committed by GitHub
parent 229e77172c
commit 19018bcaef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {