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); | |
} |
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 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
$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 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
@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
// attributes: none | text | all | element | |
// Only call for mixin within media querys, otherwise use placeholder! | |
@mixin user-select($val: none) { | |
-webkit-touch-callout: $val; | |
@include prefix(user-select, $val); | |
} | |
%user-select-none { @include user-select(none); } | |
%user-select-text { @include user-select(text); } |
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 clearfix { | |
*zoom: 1; | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { clear: both; } |
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 creating a ellipsis (...) when text is too long. | |
// Only call the mixin within media querys, otherwise use the placeholder! | |
@mixin ellipsis { | |
overflow: hidden; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
} | |
%ellipsis { |
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
// Simple mixin when calling different viewports | |
// Remember - you can't extend within media-querys | |
// | |
// basic usage: | |
// @include respond(retina) { | |
// background-image: url('path/to/retina/image.png'); | |
// background-size: 100px 50px; | |
// } | |
// Store these in your global.scss |
OlderNewer