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
@for $i from 1 throught 6 { | |
.box:nth-of-type(#{$i}) { | |
-webkit-animation-delay: $i * 0.25s; | |
-moz-animation-delay:$i * 0.25s; | |
animation-delay:$i * 0.25s; | |
} | |
} |
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
-webkit-transform: translateZ(0); | |
//or | |
-webkit-translate3d(0, 0, 0); |
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
if (myText.length > 145) { | |
myText = myText.substring(0, 140) + "..." | |
} |
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
box-sizing: content-box | |
box-sizing: padding-box | |
box-sizing: border-box | |
box-sizing: inherit |
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
$IE8:false; | |
@mixin tinted-black(image) { | |
@if ($IE8 == false) { | |
background: | |
/* top, transparent red, faked with gradient */ | |
linear-gradient( | |
rgba(0, 0, 0, 0.45), | |
rgba(0, 0, 0, 0.45) | |
), | |
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
//in the ie stylesheet - you just import the main stylesheet and flag $mediaQueries:false before import | |
$mediaQueries:true !default; | |
@mixin respond($width) { | |
@if $mediaQueries { | |
@if $width == "all" { | |
@media all { | |
@content; |
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
@function em( $target, $context ) { | |
@return $target / $context * 1em; | |
} | |
//usage font-size: em(24px, 16px); | |
//will return font-size:1.5em; |
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
.element:after { | |
content: ""; | |
display: table; | |
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
%safari-round-border-fix { | |
-webkit-background-clip:padding-box; | |
} |