Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @mixin div-same-size-as-background-img($url) {
- background-image: url($url);
- background-size: contain;
- background-repeat: no-repeat;
- width: 100%;
- height: 0;
- padding-top: percentage(image-height($url) / image-width($url));
- }
Add Comment
Please, Sign In to add comment