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 getURLParameter(url, param) { | |
return decodeURIComponent((new RegExp('[?|&]' + param + '=' + '([^&;]+?)(&|#|;|$)').exec(url)||[,""])[1].replace(/\+/g, '%20'))||null; | |
} |
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
html { | |
&.touch { | |
// iOs hack for clicking html tag | |
cursor:pointer; | |
// prevent android blue highlight on click | |
-webkit-tap-highlight-color: rgba(255, 255, 255, 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
// http://fvsch.com/code/video-background/ | |
#video-bg { | |
position: fixed; | |
top: 0; right: 0; bottom: 0; left: 0; | |
overflow: hidden; | |
} | |
#video-bg > video { | |
position: absolute; | |
top: 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
// iOs hack for clicking html tag or dynamically loaded elements | |
&.touch { | |
cursor:pointer; | |
// prevent android blue highlight on click | |
-webkit-tap-highlight-color: rgba(255, 255, 255, 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
$(this).find('.products_list').one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", function() { | |
// your code when the transition has finished | |
}); |
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
Modernizr.load({ | |
test: Modernizr.inputtypes && Modernizr.input.placeholder, | |
nope: 'scripts/polyfills/placeholders.jquery.min.js' | |
}); |
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
/* jagged rotated font fix (filter for FF)*/ | |
-webkit-backface-visibility:hidden; | |
outline: 1px solid transparent; | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); |
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
@font-face { | |
font-family: 'cicle_gorditagordita'; | |
src: url('fonts/Cicle_Gordita-webfont.eot'); | |
src: url('fonts/Cicle_Gordita-webfont.eot?#iefix') format('embedded-opentype'), | |
url('fonts/Cicle_Gordita-webfont.woff') format('woff'), | |
url('fonts/Cicle_Gordita-webfont.ttf') format('truetype'), | |
url('fonts/Cicle_Gordita-webfont.svg#cicle_gorditagordita') format('svg'); | |
font-weight: normal; | |
font-style: normal; |
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
$('a[href^="#"]').on("click", function(){ | |
var the_id = $(this).attr("href"); | |
$('html, body').animate({ | |
scrollTop:$(the_id).offset().top | |
}, 'slow'); | |
return false; | |
}); | |
// si scroll dans un conteneur : |
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
/* ------------------------ */ | |
/* LESS mixin for CSS arrow */ | |
/* ------------------------ */ | |
/* https://github.com/HugoGiraudel/LESS-Mixin-for-CSS-arrows | |
//Usage | |
.arrow(size, color, direction, offset, border-size, border-color); | |
Where |
NewerOlder