making the CSS more readable and changing the grid indents to be position: relative then offset with left rather than padding (makes far better sense)

This commit is contained in:
Dave Gamache 2011-09-08 22:27:52 -07:00
parent 737336c221
commit 94f0591c4f
4 changed files with 479 additions and 467 deletions

View File

@ -7,7 +7,6 @@
* 8/17/2011 * 8/17/2011
*/ */
$(document).ready(function() { $(document).ready(function() {
/* Tabs Activiation /* Tabs Activiation

View File

@ -10,115 +10,115 @@
/* Table of Content /* Table of Content
================================================== ==================================================
# Reset & Basics # Reset & Basics
# Basic Styles # Basic Styles
# Site Styles # Site Styles
# Typography # Typography
# Links # Links
# Lists # Lists
# Images # Images
# Buttons # Buttons
# Tabs # Tabs
# Forms # Forms
# Misc */ # Misc */
/* # Reset & Basics (Inspired by E. Meyers) /* # Reset & Basics (Inspired by E. Meyers)
================================================== */ ================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
font-size: 100%; font-size: 100%;
font: inherit; font: inherit;
vertical-align: baseline; } vertical-align: baseline; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block; } display: block; }
body { body {
line-height: 1; } line-height: 1; }
ol, ul { ol, ul {
list-style: none; } list-style: none; }
blockquote, q { blockquote, q {
quotes: none; } quotes: none; }
blockquote:before, blockquote:after, blockquote:before, blockquote:after,
q:before, q:after { q:before, q:after {
content: ''; content: '';
content: none; } content: none; }
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; } border-spacing: 0; }
/* # Basic Styles /* # Basic Styles
================================================== */ ================================================== */
body { body {
background: #fff; background: #fff;
font: 14px/21px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; font: 14px/21px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444; color: #444;
-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */ -webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
} }
/* # Typography /* # Typography
================================================== */ ================================================== */
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
color: #181818; color: #181818;
font-family: "Georgia", "Times New Roman", serif; font-family: "Georgia", "Times New Roman", serif;
font-weight: normal; } font-weight: normal; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; } h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
h1 { font-size: 46px; line-height: 50px; margin-bottom: 14px;} h1 { font-size: 46px; line-height: 50px; margin-bottom: 14px;}
h2 { font-size: 35px; line-height: 40px; margin-bottom: 10px; } h2 { font-size: 35px; line-height: 40px; margin-bottom: 10px; }
h3 { font-size: 28px; line-height: 34px; margin-bottom: 8px; } h3 { font-size: 28px; line-height: 34px; margin-bottom: 8px; }
h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; } h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; }
h5 { font-size: 17px; line-height: 24px; } h5 { font-size: 17px; line-height: 24px; }
h6 { font-size: 14px; line-height: 21px; } h6 { font-size: 14px; line-height: 21px; }
.subheader { color: #777; } .subheader { color: #777; }
p { margin: 0 0 20px 0; } p { margin: 0 0 20px 0; }
p img { margin: 0; } p img { margin: 0; }
p.lead { font-size: 21px; line-height: 27px; color: #777; } p.lead { font-size: 21px; line-height: 27px; color: #777; }
em { font-style: italic; } em { font-style: italic; }
strong { font-weight: bold; color: #333; } strong { font-weight: bold; color: #333; }
small { font-size: 80%; } small { font-size: 80%; }
/* Blockquotes */ /* Blockquotes */
blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; } blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; }
blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; } blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
blockquote cite { display: block; font-size: 12px; color: #555; } blockquote cite { display: block; font-size: 12px; color: #555; }
blockquote cite:before { content: "\2014 \0020"; } blockquote cite:before { content: "\2014 \0020"; }
blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; } blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
/* # Links /* # Links
================================================== */ ================================================== */
a, a:visited { color: #333; text-decoration: underline; outline: 0; } a, a:visited { color: #333; text-decoration: underline; outline: 0; }
a:hover, a:focus { color: #000; } a:hover, a:focus { color: #000; }
p a, p a:visited { line-height: inherit; } p a, p a:visited { line-height: inherit; }
/* # Lists /* # Lists
================================================== */ ================================================== */
ul, ol { margin-bottom: 20px; } ul, ol { margin-bottom: 20px; }
ul { list-style: none outside; } ul { list-style: none outside; }
ol { list-style: decimal; } ol { list-style: decimal; }
ol, ul.square, ul.circle, ul.disc { margin-left: 30px; } ol, ul.square, ul.circle, ul.disc { margin-left: 30px; }
ul.square { list-style: square outside; } ul.square { list-style: square outside; }
ul.circle { list-style: circle outside; } ul.circle { list-style: circle outside; }
ul.disc { list-style: disc outside; } ul.disc { list-style: disc outside; }
ul ul, ul ol, ul ul, ul ol,
ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; } ol ol, ol ul { margin: 4px 0 5px 30px; font-size: 90%; }
ul ul li, ul ol li, ul ul li, ul ol li,
ol ol li, ol ul li { margin-bottom: 6px; } ol ol li, ol ul li { margin-bottom: 6px; }
li { line-height: 18px; margin-bottom: 12px; } li { line-height: 18px; margin-bottom: 12px; }
ul.large li { line-height: 21px; } ul.large li { line-height: 21px; }
li p { line-height: 21px; } li p { line-height: 21px; }
/* # Images /* # Images
================================================== */ ================================================== */
img.scale-with-grid { img.scale-with-grid {
max-width: 100%; max-width: 100%;
height: auto; } height: auto; }
@ -126,18 +126,18 @@
/* # Buttons /* # Buttons
================================================== */ ================================================== */
a.button, a.button,
button, button,
input[type="submit"], input[type="submit"],
input[type="reset"], input[type="reset"],
input[type="button"] { input[type="button"] {
background: #eee; /* Old browsers */ background: #eee; /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */ background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */ background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */ background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */ background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */ background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* IE10+ */
background: linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */ background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%); /* W3C */
border: 1px solid #aaa; border: 1px solid #aaa;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
@ -156,42 +156,42 @@
line-height: 21px; line-height: 21px;
font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; } font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; }
a.button:hover, a.button:hover,
button:hover, button:hover,
input[type="submit"]:hover, input[type="submit"]:hover,
input[type="reset"]:hover, input[type="reset"]:hover,
input[type="button"]:hover { input[type="button"]:hover {
color: #222; color: #222;
background: #ddd; /* Old browsers */ background: #ddd; /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */ background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */ background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */ background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */ background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */ background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* IE10+ */
background: linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */ background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%); /* W3C */
border: 1px solid #888; border: 1px solid #888;
border-top: 1px solid #aaa; border-top: 1px solid #aaa;
border-left: 1px solid #aaa; } border-left: 1px solid #aaa; }
a.button:active, a.button:active,
button:active, button:active,
input[type="submit"]:active, input[type="submit"]:active,
input[type="reset"]:active, input[type="reset"]:active,
input[type="button"]:active { input[type="button"]:active {
border: 1px solid #666; border: 1px solid #666;
background: #ccc; /* Old browsers */ background: #ccc; /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */ background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */ background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */ background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */ background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* Opera11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */ background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* IE10+ */
background: linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ } background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%); /* W3C */ }
.button.full-width, .button.full-width,
button.full-width, button.full-width,
input[type="submit"].full-width, input[type="submit"].full-width,
input[type="reset"].full-width, input[type="reset"].full-width,
input[type="button"].full-width { input[type="button"].full-width {
width: 100%; width: 100%;
padding-left: 0 !important; padding-left: 0 !important;
padding-right: 0 !important; padding-right: 0 !important;
@ -200,19 +200,19 @@
/* # Tabs (activate in tabs.js) /* # Tabs (activate in tabs.js)
================================================== */ ================================================== */
ul.tabs { ul.tabs {
display: block; display: block;
margin: 0 0 20px 0; margin: 0 0 20px 0;
padding: 0; padding: 0;
border-bottom: solid 1px #ddd; } border-bottom: solid 1px #ddd; }
ul.tabs li { ul.tabs li {
display: block; display: block;
width: auto; width: auto;
height: 30px; height: 30px;
padding: 0; padding: 0;
float: left; float: left;
margin-bottom: 0; } margin-bottom: 0; }
ul.tabs li a { ul.tabs li a {
display: block; display: block;
text-decoration: none; text-decoration: none;
width: auto; width: auto;
@ -224,7 +224,7 @@
margin: 0; margin: 0;
background: #f5f5f5; background: #f5f5f5;
font-size: 13px; } font-size: 13px; }
ul.tabs li a.active { ul.tabs li a.active {
background: #fff; background: #fff;
height: 30px; height: 30px;
position: relative; position: relative;
@ -239,49 +239,49 @@
-moz-border-radius-topright: 2px; -moz-border-radius-topright: 2px;
-webkit-border-top-right-radius: 2px; -webkit-border-top-right-radius: 2px;
border-top-right-radius: 2px; } border-top-right-radius: 2px; }
ul.tabs li:first-child a.active { ul.tabs li:first-child a.active {
margin-left: 0; } margin-left: 0; }
ul.tabs li:first-child a { ul.tabs li:first-child a {
border-width: 1px 1px 0 1px; border-width: 1px 1px 0 1px;
-moz-border-radius-topleft: 2px; -moz-border-radius-topleft: 2px;
-webkit-border-top-left-radius: 2px; -webkit-border-top-left-radius: 2px;
border-top-left-radius: 2px; } border-top-left-radius: 2px; }
ul.tabs li:last-child a { ul.tabs li:last-child a {
-moz-border-radius-topright: 2px; -moz-border-radius-topright: 2px;
-webkit-border-top-right-radius: 2px; -webkit-border-top-right-radius: 2px;
border-top-right-radius: 2px; } border-top-right-radius: 2px; }
ul.tabs-content { margin: 0; display: block; } ul.tabs-content { margin: 0; display: block; }
ul.tabs-content > li { display:none; } ul.tabs-content > li { display:none; }
ul.tabs-content > li.active { display: block; } ul.tabs-content > li.active { display: block; }
/* Clearfixing tabs for beautiful stacking */ /* Clearfixing tabs for beautiful stacking */
ul.tabs:before, ul.tabs:before,
ul.tabs:after { ul.tabs:after {
content: '\0020'; content: '\0020';
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
width: 0; width: 0;
height: 0; } height: 0; }
ul.tabs:after { ul.tabs:after {
clear: both; } clear: both; }
ul.tabs { ul.tabs {
zoom: 1; } zoom: 1; }
/* # Forms /* # Forms
================================================== */ ================================================== */
form { form {
margin-bottom: 20px; } margin-bottom: 20px; }
fieldset { fieldset {
margin-bottom: 20px; } margin-bottom: 20px; }
input[type="text"], input[type="text"],
input[type="password"], input[type="password"],
input[type="email"], input[type="email"],
textarea, textarea,
select { select {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 6px 4px; padding: 6px 4px;
outline: none; outline: none;
@ -296,30 +296,30 @@
display: block; display: block;
margin-bottom: 20px; margin-bottom: 20px;
background: #fff; } background: #fff; }
select { select {
padding: 0; } padding: 0; }
input[type="text"]:focus, input[type="text"]:focus,
input[type="password"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="email"]:focus,
textarea:focus { textarea:focus {
border: 1px solid #aaa; border: 1px solid #aaa;
color: #444; color: #444;
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
-webkit-box-shadow: 0 0 3px rgba(0,0,0,.2); -webkit-box-shadow: 0 0 3px rgba(0,0,0,.2);
-moz-box-shadow: 0 0 3px rgba(0,0,0,.2);
box-shadow: 0 0 3px rgba(0,0,0,.2); } box-shadow: 0 0 3px rgba(0,0,0,.2); }
textarea { textarea {
min-height: 60px; } min-height: 60px; }
label, label,
legend { legend {
display: block; display: block;
font-weight: bold; font-weight: bold;
font-size: 13px; } font-size: 13px; }
select { select {
width: 220px; } width: 220px; }
input[type="checkbox"] { input[type="checkbox"] {
display: inline; } display: inline; }
label span, label span,
legend span { legend span {
font-weight: normal; font-weight: normal;
font-size: 13px; font-size: 13px;
color: #444; } color: #444; }
@ -327,9 +327,15 @@
/* # Misc /* # Misc
================================================== */ ================================================== */
.remove-bottom { margin-bottom: 0 !important; } .remove-bottom { margin-bottom: 0 !important; }
.half-bottom { margin-bottom: 10px !important; } .half-bottom { margin-bottom: 10px !important; }
.add-bottom { margin-bottom: 20px !important; } .add-bottom { margin-bottom: 20px !important; }
hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 30px; height: 0; }
hr {
border: solid #ddd;
border-width: 1px 0 0;
clear: both;
margin: 10px 0 30px;
height: 0; }

View File

@ -9,10 +9,10 @@
/* Table of Contents /* Table of Contents
================================================== ==================================================
#Site Styles #Site Styles
#Page Styles #Page Styles
#Media Queries #Media Queries
#Font-Face */ #Font-Face */
/* #Site Styles /* #Site Styles
================================================== */ ================================================== */
@ -23,22 +23,22 @@
/* #Media Queries /* #Media Queries
================================================== */ ================================================== */
/* Note: All the sizes are increased by 16px to account for browser scrollbar width */ /* Note: All the sizes are increased by 16px to account for browser scrollbar width */
/* Smaller than standard 960 (devices and browsers) */ /* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 976px) {} @media only screen and (max-width: 976px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */ /* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 976px) {} @media only screen and (min-width: 768px) and (max-width: 976px) {}
/* All Mobile Sizes (devices and browser) */ /* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {} @media only screen and (max-width: 767px) {}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) { @media only screen and (min-width: 480px) and (max-width: 767px) {
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (min-width: 480px) {} @media only screen and (min-width: 480px) {}
/* #Font-Face /* #Font-Face

View File

@ -10,71 +10,80 @@
/* Table of Contents /* Table of Contents
================================================== ==================================================
#Base 960 Grid #Base 960 Grid
#Tablet (Portrait) #Tablet (Portrait)
#Mobile (Portrait) #Mobile (Portrait)
#Mobile (Landscape) #Mobile (Landscape)
#Clearing */ #Clearing */
/* #Base 960 Grid /* #Base 960 Grid
================================================== */ ================================================== */
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; } .container {
[class*="g-"] { float: left; display: inline; margin-left: 10px; margin-right: 10px; } position: relative;
.row { margin-bottom: 20px; } width: 960px;
margin: 0 auto;
padding: 0; }
[class*="g-"] {
position: relative;
float: left;
display: inline;
margin-left: 10px;
margin-right: 10px; }
.row {
margin-bottom: 20px; }
/* Nested Column Classes */ /* Nested Column Classes */
.alpha { margin-left: 0; } .alpha { margin-left: 0; }
.omega { margin-right: 0; } .omega { margin-right: 0; }
/* Base Grid */ /* Base Grid */
.g-1 { width: 40px; } .g-1 { width: 40px; }
.g-2 { width: 100px; } .g-2 { width: 100px; }
.g-3 { width: 160px; } .g-3 { width: 160px; }
.g-4 { width: 220px; } .g-4 { width: 220px; }
.g-5 { width: 280px; } .g-5 { width: 280px; }
.g-6 { width: 340px; } .g-6 { width: 340px; }
.g-7 { width: 400px; } .g-7 { width: 400px; }
.g-8 { width: 460px; } .g-8 { width: 460px; }
.g-9 { width: 520px; } .g-9 { width: 520px; }
.g-10 { width: 580px; } .g-10 { width: 580px; }
.g-11 { width: 640px; } .g-11 { width: 640px; }
.g-12 { width: 700px; } .g-12 { width: 700px; }
.g-13 { width: 760px; } .g-13 { width: 760px; }
.g-14 { width: 820px; } .g-14 { width: 820px; }
.g-15 { width: 880px; } .g-15 { width: 880px; }
.g-16 { width: 940px; } .g-16 { width: 940px; }
.g-1-3rd { width: 300px; } .g-1-3rd { width: 300px; }
.g-2-3rds { width: 620px; } .g-2-3rds { width: 620px; }
/* Offsets */ /* Offsets */
.indent-1 { padding-left: 60px; } .indent-1 { left: 60px; }
.indent-2 { padding-left: 120px; } .indent-2 { left: 120px; }
.indent-3 { padding-left: 180px; } .indent-3 { left: 180px; }
.indent-4 { padding-left: 240px; } .indent-4 { left: 240px; }
.indent-5 { padding-left: 300px; } .indent-5 { left: 300px; }
.indent-6 { padding-left: 360px; } .indent-6 { left: 360px; }
.indent-7 { padding-left: 420px; } .indent-7 { left: 420px; }
.indent-8 { padding-left: 480px; } .indent-8 { left: 480px; }
.indent-9 { padding-left: 540px; } .indent-9 { left: 540px; }
.indent-10 { padding-left: 600px; } .indent-10 { left: 600px; }
.indent-11 { padding-left: 660px; } .indent-11 { left: 660px; }
.indent-12 { padding-left: 720px; } .indent-12 { left: 720px; }
.indent-13 { padding-left: 780px; } .indent-13 { left: 780px; }
.indent-14 { padding-left: 840px; } .indent-14 { left: 840px; }
.indent-15 { padding-left: 900px; } .indent-15 { left: 900px; }
/* #Tablet (Portrait) /* #Tablet (Portrait)
================================================== */ ================================================== */
/* Note: Design for a width of 768px */ /* Note: Design for a width of 768px */
@media only screen and (min-width: 768px) and (max-width: 976px) {
@media only screen and (min-width: 768px) and (max-width: 976px) {
.container { width: 752px; } .container { width: 752px; }
[class*="g-"] { margin-left: 10px; margin-right: 10px; } [class*="g-"] { margin-left: 10px; margin-right: 10px; }
@ -102,30 +111,29 @@
.g-2-3rds { width: 475px; } .g-2-3rds { width: 475px; }
/* Offsets */ /* Offsets */
.indent-1 { padding-left: 47px; } .indent-1 { left: 47px; }
.indent-2 { padding-left: 94px; } .indent-2 { left: 94px; }
.indent-3 { padding-left: 141px; } .indent-3 { left: 141px; }
.indent-4 { padding-left: 188px; } .indent-4 { left: 188px; }
.indent-5 { padding-left: 235px; } .indent-5 { left: 235px; }
.indent-6 { padding-left: 282px; } .indent-6 { left: 282px; }
.indent-7 { padding-left: 329px; } .indent-7 { left: 329px; }
.indent-8 { padding-left: 376px; } .indent-8 { left: 376px; }
.indent-9 { padding-left: 423px; } .indent-9 { left: 423px; }
.indent-10 { padding-left: 470px; } .indent-10 { left: 470px; }
.indent-11 { padding-left: 517px; } .indent-11 { left: 517px; }
.indent-12 { padding-left: 564px; } .indent-12 { left: 564px; }
.indent-13 { padding-left: 611px; } .indent-13 { left: 611px; }
.indent-14 { padding-left: 658px; } .indent-14 { left: 658px; }
.indent-15 { padding-left: 705px; } .indent-15 { left: 705px; }
} }
/* #Mobile (Portrait) /* #Mobile (Portrait)
================================================== */ ================================================== */
/* Note: Design for a width of 320px */ /* Note: Design for a width of 320px */
@media only screen and (max-width: 767px) {
@media only screen and (max-width: 767px) {
.container { width: 300px; } .container { width: 300px; }
[class*="g-"] { margin: 0; } [class*="g-"] { margin: 0; }
@ -164,17 +172,16 @@
.indent-12, .indent-12,
.indent-13, .indent-13,
.indent-14, .indent-14,
.indent-15 { padding-left: 0; } .indent-15 { left: 0; }
} }
/* #Mobile (Landscape) /* #Mobile (Landscape)
================================================== */ ================================================== */
/* Note: Design for a width of 480px */ /* Note: Design for a width of 480px */
@media only screen and (min-width: 480px) and (max-width: 767px) {
@media only screen and (min-width: 480px) and (max-width: 767px) {
.container { width: 420px; } .container { width: 420px; }
[class*="g-"] { margin: 0; } [class*="g-"] { margin: 0; }
@ -198,40 +205,40 @@
.g-1-3rd, .g-1-3rd,
.g-2-3rds { width: 420px; } .g-2-3rds { width: 420px; }
} }
/* #Clearing /* #Clearing
================================================== */ ================================================== */
/* Self Clearing Goodness */ /* Self Clearing Goodness */
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; } .container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
/* Use clearfix class on parent to clear nested columns, /* Use clearfix class on parent to clear nested columns,
or wrap each row of columns in a <div class="row"> */ or wrap each row of columns in a <div class="row"> */
.clearfix:before, .clearfix:before,
.clearfix:after, .clearfix:after,
.row:before, .row:before,
.row:after { .row:after {
content: '\0020'; content: '\0020';
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
width: 0; width: 0;
height: 0; } height: 0; }
.row:after, .row:after,
.clearfix:after { .clearfix:after {
clear: both; } clear: both; }
.row, .row,
.clearfix { .clearfix {
zoom: 1; } zoom: 1; }
/* You can also use a <br class="clear" /> to clear columns */ /* You can also use a <br class="clear" /> to clear columns */
.clear { .clear {
clear: both; clear: both;
display: block; display: block;
overflow: hidden; overflow: hidden;
visibility: hidden; visibility: hidden;
width: 0; width: 0;
height: 0; height: 0;
} }