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
// Fluid Squares | |
// ------------------------------------------------------- | |
@mixin box($box-size: 80px, $fluid: false) { | |
display: block; | |
position: relative; | |
height: 0; | |
width: $box-size; | |
padding-bottom: $box-size; | |
@if($fluid) { | |
height: 0; |
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
$(".menu").click(function() { //use a class, since your ID gets mangled | |
$(this).addClass("active"); //add the class to the clicked element | |
}); |
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
$(document).ready(function() { | |
function filterPath(string) { | |
return string | |
.replace(/^\//,'') | |
.replace(/(index|default).[a-zA-Z]{3,4}$/,'') | |
.replace(/\/$/,''); | |
} | |
var locationPath = filterPath(location.pathname); | |
var scrollElem = scrollableElement('html', 'body'); |
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(){ | |
$('.site-header') .css({'height': (($(window).height()))+'px'}); | |
$(window).resize(function(){ | |
$('.site-header') .css({'height': (($(window).height()))+'px'}); | |
}); | |
}); |
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 span($num, $gutter_pc, $gutter_px, $padding, $max_columns) { | |
$one_col: (100% - ($gutter_pc * ($max_columns - 1))) / $max_columns; | |
width:($one_col * $num) + ($gutter_pc * ($num - 1)); | |
border-left-width:$gutter_px; | |
padding:$padding; | |
margin-left:$gutter_pc; | |
} | |
@mixin offset($num, $gutter_pc, $gutter_px, $padding, $max_columns) { | |
$one_col: (100% - ($gutter_pc * ($max_columns - 1))) / $max_columns; |
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
%container { | |
width: 100%; | |
max-width: 1280px; | |
padding: 20px; | |
margin: 20px auto; | |
position: relative; | |
} | |
%clearfix:before, | |
%clearfix:after { | |
content: " "; /* 1 */ |
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 hide-text { font: 0/0 a!important; color: transparent!important; text-shadow: none!important; background-color: transparent!important; border: 0!important;} | |
.hide-text { | |
@include hide-text; | |
} |
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
<VirtualHost *:80> | |
ServerName pow | |
ServerAlias *.dev | |
ProxyPass / http://localhost:20559/ | |
ProxyPassReverse / http://localhost:20559/ | |
ProxyPreserveHost On | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerName james.dev | |
ServerAlias *.james.dev | |
DocumentRoot "/Users/james/code/james" | |
<Directory "/Users/james/code/james"> | |
Order allow,deny | |
Allow from all | |
Options +MultiViews |
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
/* 18 Column Grid | |
----------------------------------------------------------------------------- | |
Span 1: 3.66666666667% | |
Span 2: 9.33333333333% | |
Span 3: 15.0% | |
Span 4: 20.6666666667% | |
Span 5: 26.3333333333% | |
Span 6: 32.0% | |
Span 7: 37.6666666667% |