Skip to content

Instantly share code, notes, and snippets.

View jamesslock's full-sized avatar

James Seymour-Lock jamesslock

  • Ebates, Rakuten
  • New York City
View GitHub Profile
.hero-map {
width: 100%;
position: absolute;
height: 414px;
margin: 0 auto 0;
background-position: top center;
background-repeat: no-repeat;
-webkit-background-size: 1200px 528px;
-o-background-size: 1200px 528px;
-moz-background-size: 1200px 528px;
/* 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%
.btn {
border: 1px solid #bfbfbf;
background: #f6f6f6;
// Typography
font-size: 1em;
text-shadow: 0px 1px 0px rgba(255,255,255,1.0);
color: #d0d0d0;
// CSS3 Elements
@jamesslock
jamesslock / grid.scss
Last active October 12, 2015 13:18
Simple sexy Sass grid
/* 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%
<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
<VirtualHost *:80>
ServerName pow
ServerAlias *.dev
ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On
</VirtualHost>
@jamesslock
jamesslock / gist:4218223
Created December 5, 2012 18:31
hide text better
@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;
}
%container {
width: 100%;
max-width: 1280px;
padding: 20px;
margin: 20px auto;
position: relative;
}
%clearfix:before,
%clearfix:after {
content: " "; /* 1 */
@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;
@jamesslock
jamesslock / gist:6223554
Created August 13, 2013 17:30
Set site hero to match browser height.
$(function(){
$('.site-header') .css({'height': (($(window).height()))+'px'});
$(window).resize(function(){
$('.site-header') .css({'height': (($(window).height()))+'px'});
});
});