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
Word searching | |
1. | |
SELECT * FROM TABLE WHERE MATCH (`field`) AGAINST ('Keyword') | |
(Fastest) | |
2. | |
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
.no-flick{-webkit-transform:translate3d(0,0,0);} // put this class (or extend placeholder) to anywhere you don't want to flicker during a transform | |
.animation { | |
-webkit-backface-visibility: hidden; //will solve flickering on animated layers | |
} |
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; | |
} |
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
@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
//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
$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
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
if (myText.length > 145) { | |
myText = myText.substring(0, 140) + "..." | |
} |
OlderNewer