Skip to content

Commit 2f085c7

Browse files
authored
Merge pull request #349 from BeAPI/fix/placeholder-media
fix (placeholder-media): use math.div
2 parents 31cbae4 + d705ee9 commit 2f085c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scss/02-tools/_m-placeholder-media.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math";
2+
13
/**
24
* Placeholder media
35
*/
@@ -36,5 +38,5 @@
3638
}
3739

3840
@mixin placeholder-media-size($width, $height) {
39-
padding-bottom: $height / $width * 100%;
41+
padding-bottom: math.div($height, $width) * 100%;
4042
}

0 commit comments

Comments
 (0)