This repository has been archived on 2022-08-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Oldphaloskepsis/plugins/jetpack/scss/_utilities/mixins/_image-replacement.scss
2017-01-12 23:10:07 +00:00

13 lines
No EOL
546 B
SCSS

// ==========================================================================
// Image replacement
// ==========================================================================
@mixin image-replacement($url, $width, $height) {
// I totally stole this idea from Marcel Shields.
// Read his article: http://css-tricks.com/replace-the-image-in-an-img-with-css/
display: block;
width: $width; // Width of new image
height: $height; // Height of new image
padding-left: $width; // Equal to width of new image
background: url($url) no-repeat;
}