Last active
February 5, 2020 09:02
-
-
Save pongstr/42b10eea817db96f18f0f1d1e60eaafd to your computer and use it in GitHub Desktop.
Utilized for divs with background image that scales
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #== | |
// 4:3 Aspect Ratio | |
@mixin box-ratio-calc($width: ""){ | |
@if ($width == "") { | |
width: 185px; | |
height: 118px; | |
} @else { | |
width: $width; | |
height: ($width / 4) * 3; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment