Skip to content

Instantly share code, notes, and snippets.

$grid-max: 12;
$grid-column: 80px;
$grid-gutter: 0;
@function gridw ($span: $grid-max, $offset: 0) {
@if $span != -1 {
@return ($grid-column * $span) + ($grid-gutter * ($span - 1)) + $offset;
}
@return -1;
@alexmattorr
alexmattorr / button
Last active August 29, 2015 13:56
Interactive Button
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>How to create an animated css & javascript button!</title>
</head>
<style>
/*active affect gets rid of the box shadow and moves down 5px, this gives the impression (animation) of actually pushing a button.*/
#button:active {