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
* { | |
-webkit-box-sizing: border-box; /* Safari < 5.1, Chrome < 10 */ | |
-moz-box-sizing: border-box; /* Firefox, other Gecko */ | |
box-sizing: border-box; /* Opera/IE 8+/Safari5.1+/Chrome 10+ */ | |
} |
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
selector { | |
-webkit-transform: translate3d(0,0,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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>sorting lists</title> | |
<script src="jquery-1.7.2.min.js"></script> | |
<script src="jquery.sortChildren.js"></script> | |
<script> |
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($){ | |
function dragEnter(e) { | |
$(e.target).addClass("dragOver"); | |
e.stopPropagation(); | |
e.preventDefault(); | |
return false; | |
}; | |
function dragOver(e) { | |
e.originalEvent.dataTransfer.dropEffect = "copy"; |
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
/** | |
* SVG Data URI Background borders | |
*/ | |
body{ | |
background: #fff; | |
min-height: 100%; | |
font-family: sans-serif; | |
} |
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 _gaq=[['_setAccount','UA-XXXXXXX-X'],['_trackPageview']], | |
WebFontConfig = { google: { families: [ 'Marvel::latin' ]}}; | |
(function(d,t){ | |
function addScript(p, url){ | |
var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; | |
g.src=('https:'==location.protocol?p.s:p.n)+url; | |
s.parentNode.insertBefore(g,s); | |
} | |
addScript({ s: '//ssl', n: '//www'}, '.google-analytics.com/ga.js'); | |
addScript({ s: 'https', n: 'http'}, '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'); |
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 hashChange = function() { | |
var el = document.getElementById(window.location.hash.substr(1)); | |
$(".activeTr").removeClass("activeTr").find("td").css({ | |
"background":"", | |
"color":"" | |
}); | |
$(el).parent().addClass("activeTr").find("td").css({ | |
"background":"#08c", | |
"color":"#fff" |
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($) { | |
$('a[href*=#]:not([href=#])').click(function() | |
{ | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
|| location.hostname == this.hostname) | |
{ | |
var target = $(this.hash), | |
headerHeight = $(".primary-header").height() + 5; // Get fixed header height | |
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
// Setup Google Analytics, but not if user has specified that they don't want to be tracked. | |
(function (dnt, cookieDomain) { | |
var scriptTag, hostRe = new RegExp(cookieDomain.replace(".", "\\.") + "$"); | |
if (dnt !== "yes" && dnt !== "1") { | |
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date; | |
ga('create', 'YOUR-ID-HERE', hostRe.test(location.host) ? cookieDomain : "auto"); | |
ga(function (tracker) { | |
tracker.set("appName", "Your app name here"); | |
tracker.send('pageview'); | |
}); |
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
// Requires Bourbon | |
@import "bourbon/bourbon"; | |
// Use CSS gradient and text shadow to create line that breaks for descenders | |
// Inspired by https://medium.com/designing-medium/7c03a9274f9 | |
@mixin fancyUnderline( $color: currentColor, $bgcolor: #fff ) { | |
@include background-image( linear-gradient( to bottom, $bgcolor 50%, $color 50% ) ); | |
background-position: 0 89%; | |
background-repeat: repeat-x; | |
background-size: 1px 1px; |