1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Reverse aspect-ratio condition

This commit is contained in:
Lucas Vallenet
2023-11-29 11:10:32 +01:00
parent 63e46cde26
commit 12d65db09f

View File

@@ -203,11 +203,11 @@
@mixin aspect-ratio($ratio: math.div(16, 9), $width: 100%, $children: false) {
@supports not (aspect-ratio: 1) {
@supports (aspect-ratio: 1) {
aspect-ratio: $ratio;
}
@supports (aspect-ratio: 1) {
@supports not (aspect-ratio: 1) {
height: 0;
padding-top: calc(#{$width} * #{math.div(1, $ratio)});