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
@mixin inl-block { | |
display: -moz-inline-stack; | |
display: inline-block; | |
vertical-align: middle; | |
*vertical-align: auto; | |
zoom: 1; | |
*display: inline; | |
} | |
%inline-block { |
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
@mixin position( | |
$position: absolute, | |
$top: null, | |
$right: null, | |
$bottom: null, | |
$left: null | |
) { | |
position: $position; | |
top: $top; | |
right: $right; |
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
$isRetina: "(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-device-pixel-ratio: 1.5)"; | |
@mixin retina { | |
@media #{$isRetina} { @content; } | |
} | |
// usage | |
.logotype { | |
width: 100px; |
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
@mixin ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-color: transparent; | |
} | |
%ir { | |
@include ir; |
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
// Mixin for custom webfonts with IE8 fallback | |
@mixin font-face( | |
$name, | |
$font-files, | |
$eot: false, | |
$weight: normal, | |
$style: normal | |
) { | |
$iefont: unquote("#{$eot}?#iefix"); |
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
@mixin font-smoothing($val: antialiased) { | |
@include prefix(font-smoothing, $val); | |
} | |
// usage | |
* { | |
@include font-smoothing(antialiased); | |
} |
NewerOlder