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:
@@ -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)});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user