Skip to content

Instantly share code, notes, and snippets.

@githiro
Created January 21, 2015 09:00
Show Gist options
  • Save githiro/d8b68aa65a8923ab5ac1 to your computer and use it in GitHub Desktop.
Save githiro/d8b68aa65a8923ab5ac1 to your computer and use it in GitHub Desktop.
SASS: inline-block mixin
@mixin inline-block($force: false) {
@if $force {
display: inline-block !important;
}
@else {
display: inline-block;
}
@at-root {
.ie7 & {
@if $force {
display: inline-block !important;
}
@else {
display: inline-block;
}
zoom: 1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment