Accepts 1 parameter:
- An integer that is the width to stop being elastic
* { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
textarea.textarea { | |
width: 50%; | |
max-width: none; | |
} |
Accepts 1 parameter:
@mixin elastic-nav($width: 100%) { | |
display: table; | |
table-layout: fixed; | |
width: $width; | |
> li { | |
display: table-cell; | |
> a { | |
width: auto; | |
} | |
} |
get ":action", :to => "static", :action => /[a-z-]+/, :as => :static |
[\n]+([^\d]) |
var loadImage = function($img, callback) { | |
var image; | |
image = new Image(); | |
return $img.load(function() { | |
if (typeof callback === 'function') { | |
callback(this); | |
} | |
return this; | |
}); | |
}; |
if ($('#main').hasClass('accordion')) { | |
$('#main .content h3').each(function(index) { | |
content = $(this).nextUntil('h1, h2, h3') | |
content.wrapAll('<section />') | |
}); | |
} | |
$('#main.accordion .content').accordion({ | |
header: 'h3', | |
collapsible: true, |
# $ crx `pwd` | |
function crx() { | |
~/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=$@ --pack-extension-key=$@/key.pem | |
} |
ul { | |
position: relative; | |
float: left; | |
left: 50%; | |
li { | |
position: relative; | |
float: left; | |
left: -50%; | |
} | |
} |