mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
8 lines
185 B
SCSS
8 lines
185 B
SCSS
@mixin aspect-ratio($width, $height) {
|
|
&:before {
|
|
content: "";
|
|
display: block;
|
|
width: 100%;
|
|
padding-top: (math.div($height, $width) * 100%);
|
|
}
|
|
}
|