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
Click any element on your site to edit its properties. | |
Double-click links to navigate. | |
/* | |
*Global Runyon styles | |
*/ | |
body, html { | |
margin: 0px; | |
padding: 0px; |
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
'initialize': function () { | |
$elements = $('h2, h3, h4, h5, li, p, a, input, option, button, span, i'); | |
$(window).resize(_.throttle(function () { | |
view.repaintType($elements); | |
}, 200)); | |
}, | |
'repaintType': function (elements) { |
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
'loadViews': function (views, callback) { | |
var self = this, | |
viewPaths = _.map(views, function (view) { | |
return 'views/' + view; | |
}); | |
require(viewPaths, function () { | |
var args = arguments; | |
_.each(args, function (view, i) { |
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
// dynamic sprite | |
$sprite: sprite-map("sprite/*.png", $spacing: 5); | |
$sprite-retina: sprite-map("sprite-retina/*.png", $spacing: 30); | |
$sprite-background: sprite-url($sprite) no-repeat transparent; | |
$sprite-retina-background-image: sprite-url($sprite-retina); | |
@mixin background-sprite($selector, $setHeight: false, $setWidth: false, $offset-x: 0, $offset-y: 0, $retina-offset-x: false, $retina-offset-y: false) { | |
background: $sprite-background; | |
background-position: sprite-position($sprite, $selector, $offset-x, $offset-y); | |
background-repeat: no-repeat; |