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