Created
June 15, 2015 12:59
-
-
Save hudochenkov/7a18611862b8dbe5a761 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@mixin icon($width, $height: $width, $center: false) { | |
width: $width; | |
height: $height; | |
@if $center { | |
margin-top: - floor($height / 2); | |
margin-left: - floor($width / 2); | |
} | |
} | |
.block { | |
@include icon(10px, 20px, true); | |
} |
This file contains 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
.block { | |
width: 10px; | |
height: 20px; | |
margin-top: -10px; | |
margin-left: -5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment