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
var app = {}; | |
app.$colors = $('canvas.color-palette'); | |
app.colorctx = app.$colors[0].getContext('2d'); | |
// Build Color palette | |
app.buildColorPalette = function() { | |
var gradient = app.colorctx.createLinearGradient(0, 0, app.$colors.width(), 0); | |
// Create color gradient |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Number Test</title> | |
<style> | |
tr { | |
background: #ddd; | |
} | |
tr:nth-child(odd) { |
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
ul { | |
list-style: none; | |
} | |
li { | |
float: left; | |
margin-right: 20px; | |
} | |
.secondary-menu { | |
display: none; |
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
var mediaCheck = function(options) { | |
var mq, | |
matchMedia = window.matchMedia !== undefined; | |
if (matchMedia) { | |
mqChange = function(mq, options) { | |
if (mq.matches) { | |
options.entry(); | |
} else { | |
options.exit(); |
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
.valid { | |
background: green; | |
color: #fff; | |
} | |
.error { | |
background: red; | |
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
.valid { | |
background: green; | |
color: #fff; | |
} | |
.error { | |
background: red; | |
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
(function() { | |
var resizeTimer; | |
// Assuming we have jQuery present | |
$( window ).on( "resize", function() { | |
// Use resizeTimer to throttle the resize handler | |
clearTimeout( resizeTimer ); | |
resizeTimer = setTimeout(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
@mixin hd($path, $img) { | |
@media (-webkit-max-device-pixel-ratio: 1.49), | |
(-o-max-device-pixel-ratio: 3/2.01), | |
(max-device-pixel-ratio: 1.49) { | |
background-image: url($path + "/" + $img); | |
} | |
@media (-webkit-min-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), |
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
@mixin rem-width( $em-size ) { | |
width: $em-size * $base-font-multiplier * 16px; | |
width: $em-size * 1rem; | |
} |
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
.elementA:before, | |
.elementB:before, | |
.elementA:after, | |
.elementB:after { content: ""; display: table; } | |
.elementA:after | |
.elementB:after { clear: both; } | |
.elementA, | |
.elementB { *zoom: 1; } |
OlderNewer