Fix context-based media feature (not supported by Safari <16.4 (#1240)

Realized that the new syntax is only supported on [Safari 16.4](https://caniuse.com/css-media-range-syntax), which is gated by OS updates. Going to revert this change for the foreseeable future.

Closes #1239.
This commit is contained in:
Matt Wang 2023-04-25 09:46:42 -07:00 committed by GitHub
parent 3723875b93
commit e64d97c4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
// If the key exists in the map
@if $value {
// Prints a media query based on the value
@media (width >= rem($value)) {
@media (min-width: rem($value)) {
@content;
}
} @else {

View File

@ -32,6 +32,7 @@
"alpha-value-notation": null,
"at-rule-empty-line-before": null,
"color-function-notation": null,
"media-feature-range-notation": "prefix",
"no-descending-specificity": null,
"scss/no-global-function-names": null
}