Bones/stylesheets/skeleton.css

237 lines
8.1 KiB
CSS
Raw Normal View History

/*
* Skeleton V2.0
* Copyright 2011, Dave Gamache (@dhg)
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 8/17/2011
*/
/* Table of Contents
==================================================
#Base 960 Grid
2011-07-24 10:47:07 -04:00
#Tablet (Portrait)
#Mobile (Portrait)
2011-07-24 10:47:07 -04:00
#Mobile (Landscape)
#Clearing */
/* #Base 960 Grid
================================================== */
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
[class*="g-"] { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
.row { margin-bottom: 20px; }
2011-07-24 10:47:07 -04:00
/* Nested Column Classes */
.alpha { margin-left: 0; }
.omega { margin-right: 0; }
2011-07-24 10:47:07 -04:00
/* Base Grid */
.g-1 { width: 40px; }
.g-2 { width: 100px; }
.g-3 { width: 160px; }
.g-4 { width: 220px; }
.g-5 { width: 280px; }
.g-6 { width: 340px; }
.g-7 { width: 400px; }
.g-8 { width: 460px; }
.g-9 { width: 520px; }
.g-10 { width: 580px; }
.g-11 { width: 640px; }
.g-12 { width: 700px; }
.g-13 { width: 760px; }
.g-14 { width: 820px; }
.g-15 { width: 880px; }
.g-16 { width: 940px; }
.g-1-3rd { width: 300px; }
.g-2-3rds { width: 620px; }
/* Offsets */
.indent-1 { padding-left: 60px; }
.indent-2 { padding-left: 120px; }
.indent-3 { padding-left: 180px; }
.indent-4 { padding-left: 240px; }
.indent-5 { padding-left: 300px; }
.indent-6 { padding-left: 360px; }
.indent-7 { padding-left: 420px; }
.indent-8 { padding-left: 480px; }
.indent-9 { padding-left: 540px; }
.indent-10 { padding-left: 600px; }
.indent-11 { padding-left: 660px; }
.indent-12 { padding-left: 720px; }
.indent-13 { padding-left: 780px; }
.indent-14 { padding-left: 840px; }
.indent-15 { padding-left: 900px; }
/* #Tablet (Portrait)
================================================== */
2011-07-24 10:47:07 -04:00
/* Note: Design for a width of 768px */
@media only screen and (min-width: 768px) and (max-width: 976px) {
.container { width: 752px; }
[class*="g-"] { margin-left: 10px; margin-right: 10px; }
.alpha { margin-left: 0; margin-right: 10px; }
.omega { margin-right: 0; margin-left: 10px; }
.g-1 { width: 27px; }
.g-2 { width: 74px; }
.g-3 { width: 121px; }
.g-4 { width: 168px; }
.g-5 { width: 215px; }
.g-6 { width: 262px; }
.g-7 { width: 309px; }
.g-8 { width: 356px; }
.g-9 { width: 403px; }
.g-10 { width: 450px; }
.g-11 { width: 497px; }
.g-12 { width: 544px; }
.g-13 { width: 591px; }
.g-14 { width: 638px; }
.g-15 { width: 685px; }
.g-16 { width: 732px; }
.g-1-3rd { width: 237px; }
.g-2-3rds { width: 475px; }
/* Offsets */
.indent-1 { padding-left: 47px; }
.indent-2 { padding-left: 94px; }
.indent-3 { padding-left: 141px; }
.indent-4 { padding-left: 188px; }
.indent-5 { padding-left: 235px; }
.indent-6 { padding-left: 282px; }
.indent-7 { padding-left: 329px; }
.indent-8 { padding-left: 376px; }
.indent-9 { padding-left: 423px; }
.indent-10 { padding-left: 470px; }
.indent-11 { padding-left: 517px; }
.indent-12 { padding-left: 564px; }
.indent-13 { padding-left: 611px; }
.indent-14 { padding-left: 658px; }
.indent-15 { padding-left: 705px; }
2011-07-24 10:47:07 -04:00
}
/* #Mobile (Portrait)
================================================== */
2011-07-24 10:47:07 -04:00
/* Note: Design for a width of 320px */
2011-07-24 10:47:07 -04:00
@media only screen and (max-width: 767px) {
.container { width: 300px; }
[class*="g-"] { margin: 0; }
.g-1,
.g-2,
.g-3,
.g-4,
.g-5,
.g-6,
.g-7,
.g-8,
.g-9,
.g-10,
.g-11,
.g-12,
.g-13,
.g-14,
.g-15,
.g-16,
.g-1-3rd,
.g-2-3rds { width: 300px; }
/* Offsets */
.indent-1,
.indent-2,
.indent-3,
.indent-4,
.indent-5,
.indent-6,
.indent-7,
.indent-8,
.indent-9,
.indent-10,
.indent-11,
.indent-12,
.indent-13,
.indent-14,
.indent-15 { padding-left: 0; }
}
/* #Mobile (Landscape)
================================================== */
2011-07-24 10:47:07 -04:00
/* Note: Design for a width of 480px */
2011-07-24 10:47:07 -04:00
@media only screen and (min-width: 480px) and (max-width: 767px) {
.container { width: 420px; }
[class*="g-"] { margin: 0; }
.g-1,
.g-2,
.g-3,
.g-4,
.g-5,
.g-6,
.g-7,
.g-8,
.g-9,
.g-10,
.g-11,
.g-12,
.g-13,
.g-14,
.g-15,
.g-16,
.g-1-3rd,
.g-2-3rds { width: 420px; }
2011-07-24 10:47:07 -04:00
}
/* #Clearing
================================================== */
2011-07-24 10:47:07 -04:00
/* Self Clearing Goodness */
.container:after { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
/* Use clearfix class on parent to clear nested columns,
2011-07-24 10:47:07 -04:00
or wrap each row of columns in a <div class="row"> */
.clearfix:before,
.clearfix:after,
.row:before,
.row:after {
content: '\0020';
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0; }
.row:after,
.clearfix:after {
clear: both; }
.row,
2011-07-24 10:47:07 -04:00
.clearfix {
zoom: 1; }
2011-07-24 10:47:07 -04:00
/* You can also use a <br class="clear" /> to clear columns */
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
2011-08-30 01:04:13 -04:00
}