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
.group:before, | |
.group:after { | |
content: ""; | |
display: table; | |
} | |
.group:after { | |
clear: both; | |
} | |
.group { | |
zoom: 1; /* For IE 6/7 (trigger hasLayout) */ |
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
.search { | |
width: 75px; | |
-webkit-transition: all .5s ease; | |
-moz-transition: all .5s ease; | |
transition: all .5s ease; | |
} | |
.search:focus { | |
width: 200px; | |
} |
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
//Image replacement for hi-res devices | |
function highdpi_init() { | |
var hiRes = window.devicePixelRatio > 1 ? true : false; | |
if (hiRes) { | |
var els = jQuery(".replace-2x").get(); | |
for(var i = 0; i < els.length; i++) { | |
var src = els[i].src | |
src = src.replace(".png", "@2x.png"); | |
src = src.replace(".jpg", "@2x.jpg"); | |
src = src.replace(".gif", "@2x.gif"); |
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
// Add class orientation and push browser bar out | |
function setOrientation() { | |
var orient = Math.abs(window.orientation) === 90 ? 'landscape' : 'portrait'; | |
$('body').attr('class', orient); | |
//pushing safari status bar out of view | |
if (!location.hash) { | |
setTimeout(function () { | |
if (!pageYOffset) window.scrollTo(0, 1); | |
}, 1000); |
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
$("div.ui-collapsible-set").live("expand", function(e) { | |
var top = $(e.target).offset().top; | |
if ($(window).scrollTop() > top) | |
$(window).scrollTop(top); | |
}); |
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
/* Cet élément block le script injecté dans l'iframe. On le cache */ | |
#fb-root { display: none; } | |
/* on redéfini la taille du contenu */ | |
.fb_iframe_widget, .fb_iframe_widget span, .fb_iframe_widget span iframe[style] { width: 100% !important; } |
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
/* | |
#ie10 will only be red in MSIE 10, | |
both in high contrast (display setting) and default mode | |
*/ | |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#ie10 { color: red; } | |
} |
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
body { | |
font-size:11em; | |
color:#000; | |
transition:all .5s ease-in-out; | |
-o-transition:all .5s ease-in-out; | |
-moz-transition:all .5s ease-in-out; | |
-webkit-transition:all .5s ease-in-out; | |
} | |
@media screen and (max-width:500px) { |
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
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |
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
input::-webkit-input-placeholder { | |
color: #999; | |
} | |
input:-moz-placeholder { | |
color: #999; | |
} | |
input:-ms-input-placeholder { | |
color: #999; | |
} | |
input:focus::-webkit-input-placeholder { |