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
/* Extending Bootstrap */ | |
.row.no-gutters { margin-right: 0; margin-left: 0; } | |
.row.no-gutters > [class^="col-"], | |
.row.no-gutters > [class*=" col-"] { padding-right: 0; padding-left: 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
/* Vertical align any element */ | |
.ghostCenter { | |
text-align: center; | |
} | |
/* The ghost, nudged to maintain perfect centering */ | |
.ghostCenter:before { | |
content: ''; | |
display: inline-block; | |
zoom: 1; *display: inline; /* inline-block IE fix */ |
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
// Parallax | |
function parallaxPosition() { | |
var scrollDistance = $(window).scrollTop(); | |
var newDistance = (scrollDistance / 4); | |
$('.parallax').css('background-position', 'center ' + newDistance + 'px'); | |
console.log('test'); | |
} |
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
/* detect touch */ | |
if("ontouchstart" in window){ | |
document.documentElement.className = document.documentElement.className + " touch"; | |
} | |
if(!$("html").hasClass("touch")){ | |
// Do stuff | |
} |
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
/* FIREFOX TWEAKS */ | |
:active { | |
outline: none; | |
} | |
:focus { | |
-moz-outline-style: none; | |
} | |
:-moz-any-link:focus { | |
outline: 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
.row.row-center > div { | |
display: inline-block; | |
zoom: 1; *display: inline; /* inline-block IE fix */ | |
margin-right: -4px; /* inline-block whitespace fix */ | |
float: none !important; | |
vertical-align: middle; | |
} |
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
.Absolute-Center { | |
margin: auto; | |
position: absolute; | |
top: 0; left: 0; bottom: 0; right: 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
/* ----- Responsive Videos (16:9 ratio) ----- */ | |
.responsive-video { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
} | |
.responsive-video iframe, | |
.responsive-video object, | |
.responsive-video embed { | |
position: absolute; |
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
.ir { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background-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
<!doctype html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
</head> | |
<body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> |