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 { | |
transform: rotate(-90deg); | |
-webkit-transform: rotate(-90deg); | |
-moz-transform: rotate(-90deg); | |
-ms-transform: rotate(-90deg); | |
-o-transform: rotate(-90deg); | |
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); | |
} |
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
.dont-select { | |
-webkit-user-select: none; /* Chrome all / Safari all */ | |
-moz-user-select: none; /* Firefox all */ | |
-ms-user-select: none; /* IE 10+ */ | |
/* No support for these yet, use at own risk */ | |
-o-user-select: none; | |
user-select: none; | |
} |
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
.sticky { | |
position: fixed; | |
left: 0; | |
top: 0; | |
width: 100%; | |
z-index: 100; | |
} |
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
html { | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
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() { | |
var lastScrollTop = 0; | |
$(window).scroll(function(e){ | |
var st = $(this).scrollTop(); | |
if (st > lastScrollTop){ | |
// downscroll code | |
$('.navigation').hide(); |
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
html { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
/* Non standard for webkit */ | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
-ms-hyphens: auto; |
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
img { | |
filter: url(filters.svg#grayscale); /* Firefox */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(1); /* Webkit */ | |
} | |
img:hover { | |
filter: none; | |
-webkit-filter: grayscale(0); | |
} |
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
<meta name="viewport" content="width=device-width, minimal-ui" /> |
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
if (window.devicePixelRatio > 1) { | |
var retinaValue = window.devicePixelRatio; | |
console.log(retinaValue); | |
_gaq.push(['_trackEvent', 'retinaValue', retinaValue]); | |
} |
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 scanOrientation() { | |
var width = window.innerWidth; | |
var height = window.innerHeight; | |
if (width < height){ | |
// _gaq.push(['_trackEvent', 'Orientation', 'Portrait']); | |
console.log("Portrait: " + width + "x" + height); | |
} | |
if (width > height){ | |
// _gaq.push(['_trackEvent', 'Orientation', 'Landscape']); |