This file contains hidden or 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://nicolasgallagher.com/micro-clearfix-hack/ */ | |
.cf { | |
zoom: 1; | |
&:before, &:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; |
This file contains hidden or 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://nicolasgallagher.com/another-css-image-replacement-technique/ */ | |
.ir { | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
} |
This file contains hidden or 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
.boxShadow(@x : 2px, @y : 2px, @blur : 5px, @spread : 0, @color : rgba(0,0,0,.6)) { | |
-webkit-box-shadow: @x @y @blur @spread @color; | |
-moz-box-shadow: @x @y @blur @spread @color; | |
box-shadow: @x @y @blur @spread @color; | |
} |
This file contains hidden or 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
.textShadow (@value: 1px 1px 3px rgba(0, 0, 0, .3)) { | |
text-shadow: @value; | |
} |
This file contains hidden or 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
.gradient (@startColor: #eee, @endColor: #fff) { | |
background-color: @startColor; | |
background: -webkit-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); | |
background: -webkit-linear-gradient(top, @startColor, @endColor); | |
background: -moz-linear-gradient(top, @startColor, @endColor); | |
background: -ms-linear-gradient(top, @startColor, @endColor); | |
background: -o-linear-gradient(top, @startColor, @endColor); | |
} |
This file contains hidden or 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
.hGradient (@startColor: #eee, @endColor: #fff) { | |
background-color: @startColor; | |
background-image: -webkit-gradient(linear, left top, right top, from(@startColor), to(@endColor)); | |
background-image: -webkit-linear-gradient(left, @startColor, @endColor); | |
background-image: -moz-linear-gradient(left, @startColor, @endColor); | |
background-image: -ms-linear-gradient(left, @startColor, @endColor); | |
background-image: -o-linear-gradient(left, @startColor, @endColor); | |
} |
This file contains hidden or 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
.rotate (@deg) { | |
-webkit-transform: rotate(@deg); | |
-moz-transform: rotate(@deg); | |
-ms-transform: rotate(@deg); | |
-o-transform: rotate(@deg); | |
} |
This file contains hidden or 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 getQueryVariable(variable) { | |
var query = window.location.search.substring(1); | |
var vars = query.split("&"); | |
for (var i=0;i<vars.length;i++) { | |
var pair = vars[i].split("="); | |
if(pair[0] == variable){return pair[1];} | |
} | |
return(false); | |
} |
This file contains hidden or 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 getUrlVars() { | |
var vars = {}; | |
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { | |
vars[key] = value; | |
}); | |
return vars; | |
} |
This file contains hidden or 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
var items = $('.to_order li').get(); | |
items.sort(function(a,b){ | |
var keyA = $(a).text(); | |
var keyB = $(b).text(); | |
if (keyA < keyB) return -1; | |
if (keyA > keyB) return 1; | |
return 0; | |
}); | |
var ul = $('.to_order'); |
OlderNewer