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
String.prototype.trim = typeof (String.prototype.trim) != "undefined" ? | |
String.prototype.trim : | |
function() { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }; |
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 asyncLoad(scriptURL,callback) | |
{ | |
if(!scriptURL){return;} | |
var firstScriptTag=document.getElementsByTagName('script')[0]; | |
var js=document.createElement('script'); | |
js.type='text/javascript'; | |
js.src=scriptURL; | |
js.async=true; | |
if(callback && typeof(callback)===typeof(Function)) |
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
@media | |
only screen and (-webkit-min-device-pixel-ratio: 1.3), | |
only screen and (min-device-pixel-ratio: 1.3), | |
only screen and (min-resolution: 120dpi) { | |
/* Votre code ici pour les écrans Retina */ | |
} |
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
[ | |
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+i"], "command": "toggle_setting", "args": {"setting": "gutter"} } | |
] |
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
/*------------------------------------*\ | |
Auto Button Mixin | |
\*------------------------------------*/ | |
@mixin button( $base-color: #f9f9f9, | |
$radius: 4px, | |
$bold: true, | |
$drop-shadow: true, | |
$padding: '.5em 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
/* Checkbox Custom Style | |
* ======================== | |
* Courtesy of ??? (I don't remember who showed me this trick) | |
* @_victa | |
*/ | |
/* Old Skool Reset */ | |
*{margin:0;padding:0} | |
html,body{height:100%} | |
body{ |
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
/* Pure CSS Icons (Folder/File) */ | |
body{text-align:center;background:#eff3f6;margin:2em;} | |
i{display:inline-block;position:relative;margin:0 .1em;} | |
i::before{content:"";position:absolute;display:block;} | |
.folder{ | |
width:14px; | |
height:10px; | |
background-image:linear-gradient(#a7c3d9, #709fc2); | |
box-shadow:inset 0 1px 0 #c6d9e7, 0 1px 0 #bbbfc3; |
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
/* <i> Cloud */ | |
html { | |
min-height: 100%; | |
background: linear-gradient(#b4bcbf, #fff); | |
} | |
.cloud { | |
display: inline-block; | |
background-color: #fff; |
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
// addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
(function(win, doc){ | |
if(win.addEventListener)return; //No need to polyfill | |
function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
function addEvent(on, fn, self){ | |
return (self = this).attachEvent('on' + on, function(e){ | |
var e = e || win.event; | |
e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = true} |
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
yepnope({ | |
test : window.matchMedia("(max-device-width: 640px)").matches, | |
yep : "", | |
nope : "slider.js" | |
}); |