adding in the offsets and a few other small things

This commit is contained in:
dhg 2014-12-09 11:12:30 -08:00
parent c63d4b7a02
commit a3208cfa39

164
css/skeleton.css vendored
View File

@ -4,7 +4,7 @@
* www.getskeleton.com * www.getskeleton.com
* Free to use under the MIT license. * Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php * http://www.opensource.org/licenses/mit-license.php
* 11/25/2014 * 12/9/2014
*/ */
@ -28,23 +28,22 @@
/* Grid /* Grid
*/ */
.container { .container {
position: relative; position: relative;
width: 80%; width: 80%;
max-width: 960px; max-width: 960px;
margin: 0 auto; margin: 0 auto;
padding: 0; } padding: 0; }
.container .column, .container .column,
.container .columns { .container .columns {
float: left; float: left;
width: 100%; width: 100%;
box-sizing: border-box; } box-sizing: border-box; }
.row { .row {
margin-bottom: 20px; } margin-bottom: 2rem; }
.row .column:first-child, .row .column:first-child,
.row .columns:first-child { .row .columns:first-child {
margin-left: 0; } margin-left: 0; }
/* For devices larger than 550px */ /* For devices larger than 550px */
@media (min-width: 550px) { @media (min-width: 550px) {
@ -72,6 +71,25 @@
.container .one-half.column { width: 48%; } .container .one-half.column { width: 48%; }
/* Offsets */
.container .offset-by-one.column,
.container .offset-by-one.columns { margin-left: 8.66666666667%; }
.container .offset-by-two.column { margin-left: 17.3333333333%; }
.container .offset-by-three.column { margin-left: 26%; }
.container .offset-by-four.column { margin-left: 34.6666666667%; }
.container .offset-by-five.column { margin-left: 43.3333333333%; }
.container .offset-by-six.column { margin-left: 52%; }
.container .offset-by-seven.column { margin-left: 60.6666666667%; }
.container .offset-by-eight.column { margin-left: 69.3333333333%; }
.container .offset-by-nine.column { margin-left: 78.0%; }
.container .offset-by-ten.column { margin-left: 86.6666666667%; }
.container .offset-by-eleven.column { margin-left: 95.3333333333%; }
.container .offset-by-one-third.column { margin-left: 34.6666666667%; }
.container .offset-by-two-thirds.column { margin-left: 69.3333333333%; }
.container .offset-by-one-half.column { margin-left: 52%; }
} }
@ -81,22 +99,21 @@
html is set to 62.5% so that all the REM measurements throughout Skeleton html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */ are based on 10px sizing. So basically 1.5rem = 15px :) */
html { html {
font-size: 62.5%; } font-size: 62.5%; }
body { body {
background: #fff; font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */ line-height: 1.6;
line-height: 1.6; font-weight: 400;
font-weight: 400; font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; }
color: #222; }
/* Typography /* Typography
*/ */
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: 300; font-weight: 300;
margin-top: 0; margin-top: 0;
margin-bottom: 2rem; } margin-bottom: 2rem; }
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;} h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; } h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; } h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
@ -114,13 +131,16 @@ h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
h6 { font-size: 1.5rem; } h6 { font-size: 1.5rem; }
} }
p {
margin-top: 0; }
/* Links /* Links
*/ */
a { a {
color: #1EAEDB; } color: #1EAEDB; }
a:hover { a:hover {
color: #0FA0CE; } color: #0FA0CE; }
/* Buttons /* Buttons
@ -191,11 +211,11 @@ input[type="text"],
input[type="password"], input[type="password"],
textarea, textarea,
select { select {
border: 1px solid #D1D1D1; border: 1px solid #D1D1D1;
height: 36px; height: 36px;
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
border-radius: 4px; border-radius: 4px;
box-shadow: none; box-shadow: none;
background: #fff; } background: #fff; }
/* Removes awkard default styles on some inputs */ /* Removes awkard default styles on some inputs */
input[type="email"], input[type="email"],
@ -207,63 +227,63 @@ textarea {
appearance: none; appearance: none;
} }
textarea { textarea {
min-height: 65px; min-height: 65px;
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; } padding-bottom: 6px; }
input[type="email"]:focus, input[type="email"]:focus,
input[type="search"]:focus, input[type="search"]:focus,
input[type="text"]:focus, input[type="text"]:focus,
input[type="password"]:focus, input[type="password"]:focus,
textarea:focus, textarea:focus,
select:focus { select:focus {
border: 1px solid #33C3F0; border: 1px solid #33C3F0;
outline: 0; } outline: 0; }
label, label,
legend { legend {
display: block; display: block;
font-weight: 600; font-weight: 600;
margin-bottom: .5rem; } margin-bottom: .5rem; }
fieldset { fieldset {
border-width: 0; border-width: 0;
padding: 0; } padding: 0; }
input[type="checkbox"], input[type="checkbox"],
input[type="radio"] { input[type="radio"] {
display: inline; } display: inline; }
label > .label-body { label > .label-body {
display: inline-block;
font-weight: normal; font-weight: normal;
margin-left: .5rem; margin-left: .5rem; }
display: inline-block; }
/* Lists /* Lists
*/ */
ul { ul {
list-style: circle inside; } list-style: circle inside; }
ol { ol {
list-style: decimal inside; } list-style: decimal inside; }
ol, ul { ol, ul {
margin-top: 0; margin-top: 0;
padding-left: 0; } padding-left: 0; }
ul ul, ul ul,
ul ol, ul ol,
ol ol, ol ol,
ol ul { ol ul {
margin: 1.5rem 0 1.5rem 3rem; margin: 1.5rem 0 1.5rem 3rem;
font-size: 90%; } font-size: 90%; }
li { li {
margin-bottom: 1rem; } margin-bottom: 1rem; }
/* Code /* Code
*/ */
code { code {
padding: .2rem .5rem; padding: .2rem .5rem;
margin: 0 .2rem; margin: 0 .2rem;
font-size: 90%; font-size: 90%;
background: #F1F1F1; background: #F1F1F1;
border: 1px solid #E1E1E1; border: 1px solid #E1E1E1;
border-radius: 4px; border-radius: 4px;
white-space: nowrap; } white-space: nowrap; }
pre > code { pre > code {
display: block; display: block;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
@ -274,28 +294,27 @@ pre > code {
*/ */
th, th,
td { td {
padding: 12px 15px; padding: 12px 15px;
text-align: left; text-align: left;
border-bottom: 1px solid #E1E1E1; } border-bottom: 1px solid #E1E1E1; }
th:first-child, th:first-child,
td:first-child { td:first-child {
padding-left: 0; } padding-left: 0; }
th:last-child, th:last-child,
td:last-child { td:last-child {
padding-right: 0; } padding-right: 0; }
/* Spacing /* Spacing
*/ */
button, button,
.button { .button {
margin-bottom: 1rem; } margin-bottom: 1rem; }
input, input,
textarea, textarea,
select, select,
fieldset { fieldset {
margin-bottom: 1.5rem; } margin-bottom: 1.5rem; }
p,
pre, pre,
blockquote, blockquote,
form, form,
@ -306,7 +325,9 @@ p,
ul, ul,
ol, ol,
form { form {
margin-bottom: 2.5rem; } margin-bottom: 2.5rem; }
p {
margin-top: 0; }
@ -319,9 +340,9 @@ form {
max-width: 100%; max-width: 100%;
box-sizing: border-box; } box-sizing: border-box; }
.u-pull-right { .u-pull-right {
float: right; } float: right; }
.u-pull-left { .u-pull-left {
float: left; } float: left; }
/* Misc /* Misc
@ -340,7 +361,7 @@ hr {
.container:after, .container:after,
.row:after, .row:after,
.u-cf { .u-cf {
content: ""; content: "";
display: table; display: table;
clear: both; } clear: both; }
@ -358,7 +379,7 @@ there.
/* Larger than mobile */ /* Larger than mobile */
@media (min-width: 400px) {} @media (min-width: 400px) {}
/* Larger than phablet */ /* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {} @media (min-width: 550px) {}
/* Larger than tablet */ /* Larger than tablet */
@ -369,18 +390,3 @@ there.
/* Larger than Desktop HD */ /* Larger than Desktop HD */
@media (min-width: 1200px) {} @media (min-width: 1200px) {}
/* Smaller than Desktop HD */
@media (max-width: 1199px) {}
/* Smaller than desktop */
@media (max-width: 999px) {}
/* Smaller than tablet */
@media (max-width: 749px) {}
/* Smaller than phablet */
@media (max-width: 549px) {}
/* Smaller than mobile */
@media (max-width: 399px) {}