Bones/css/skeleton.css

417 lines
11 KiB
CSS
Raw Normal View History

/*
* Skeleton V2.0
* Copyright 2014, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 12/9/2014
*/
/* Table of contents
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
- Code
- Tables
- Spacing
- Utilities
- Clearing
- Media Queries
*/
/* Grid
*/
.container {
margin: 0 auto;
max-width: 960px;
padding: 0;
position: relative;
width: 80%; }
.container .column,
.container .columns {
box-sizing: border-box;
float: left;
width: 100%; }
.row {
margin-bottom: 2rem; }
.row .column:first-child,
.row .columns:first-child {
margin-left: 0; }
/* For devices larger than 550px */
@media (min-width: 550px) {
.container .column,
.container .columns {
margin-left: 4%; }
.container .one.column,
.container .one.columns { width: 4.66666666667%; }
.container .two.columns { width: 13.3333333333%; }
.container .three.columns { width: 22%; }
.container .four.columns { width: 30.6666666667%; }
.container .five.columns { width: 39.3333333333%; }
.container .six.columns { width: 48%; }
.container .seven.columns { width: 56.6666666667%; }
.container .eight.columns { width: 65.3333333333%; }
.container .nine.columns { width: 74.0%; }
.container .ten.columns { width: 82.6666666667%; }
.container .eleven.columns { width: 91.3333333333%; }
.container .twelve.columns { width: 100%; margin-left: 0; }
2014-11-20 19:38:45 -05:00
.container .one-third.column { width: 30.6666666667%; }
.container .two-thirds.column { width: 65.3333333333%; }
.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%; }
}
/* Base Styles
*/
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
font-size: 62.5%; }
body {
color: #222;
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
font-weight: 400;
line-height: 1.6; }
/* Typography
*/
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
margin-bottom: 2rem;
margin-top: 0; }
h1 { font-size: 4.0rem; line-height: 1.2; 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; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
/* Larger than phablet */
@media (min-width: 550px) {
h1 { font-size: 5.0rem; }
h2 { font-size: 4.2rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 3.0rem; }
h5 { font-size: 2.4rem; }
h6 { font-size: 1.5rem; }
}
p {
margin-top: 0; }
2014-11-20 19:38:45 -05:00
/* Links
*/
a {
color: #1EAEDB; }
a:hover {
color: #0FA0CE; }
/* Buttons
*/
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
background-color: transparent;
border: 1px solid #bbb;
border-radius: 4px;
box-sizing: border-box;
color: #555;
cursor: pointer;
display: inline-block;
font-size: 11px;
font-weight: 600;
height: 38px;
line-height: 38px;
letter-spacing: .1rem;
padding: 0 30px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap; }
.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:focus,
button:focus,
input[type="button"]:focus
input[type="reset"]:focus,
input[type="submit"]:focus {
border-color: #888;
color: #333;
outline: 0; }
.button.button-primary,
button.button-primary,
input[type="button"].button-primary,
input[type="reset"].button-primary,
input[type="submit"].button-primary {
background-color: #33C3F0;
border-color: #33C3F0;
color: #FFF; }
.button.button-primary:hover,
button.button-primary:hover,
input[type="button"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="submit"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="button"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="submit"].button-primary:focus {
background-color: #1EAEDB;
border-color: #1EAEDB;
color: #FFF; }
/* Forms
*/
input[type="email"],
input[type="password"],
input[type="search"],
input[type="text"],
select,
textarea {
background: #fff;
border: 1px solid #D1D1D1;
border-radius: 4px;
box-shadow: none;
height: 36px;
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ }
/* Removes awkard default styles on some inputs */
input[type="email"],
input[type="search"],
input[type="text"],
textarea {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none; }
textarea {
min-height: 65px;
padding-bottom: 6px;
padding-top: 6px; }
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
border: 1px solid #33C3F0;
outline: 0; }
label,
legend {
display: block;
font-weight: 600;
margin-bottom: .5rem; }
fieldset {
border-width: 0;
padding: 0; }
input[type="checkbox"],
input[type="radio"] {
display: inline; }
label > .label-body {
display: inline-block;
font-weight: normal;
margin-left: .5rem; }
/* Lists
*/
ol {
list-style: decimal inside; }
ul {
list-style: circle inside; }
ol, ul {
margin-top: 0;
padding-left: 0; }
ol ol,
ol ul,
ul ul,
ul ol {
margin: 1.5rem 0 1.5rem 3rem;
font-size: 90%; }
li {
margin-bottom: 1rem; }
/* Code
*/
code {
background: #F1F1F1;
border: 1px solid #E1E1E1;
border-radius: 4px;
font-size: 90%;
margin: 0 .2rem;
padding: .2rem .5rem;
white-space: nowrap; }
pre > code {
display: block;
padding: 1rem 1.5rem;
2014-12-01 15:59:46 -05:00
white-space: pre; }
/* Tables
*/
th,
td {
border-bottom: 1px solid #E1E1E1;
padding: 12px 15px;
text-align: left; }
th:first-child,
td:first-child {
padding-left: 0; }
th:last-child,
td:last-child {
padding-right: 0; }
/* Spacing
*/
button,
.button {
margin-bottom: 1rem; }
fieldset,
input,
select,
textarea
{
margin-bottom: 1.5rem; }
blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
margin-bottom: 2.5rem; }
p {
margin-top: 0; }
/* Utilities
*/
.u-full-width {
box-sizing: border-box;
width: 100%; }
.u-max-full-width {
box-sizing: border-box;
max-width: 100%; }
.u-pull-right {
float: right; }
.u-pull-left {
float: left; }
/* Misc
*/
hr {
border-top: 1px solid #E1E1E1;
border-width: 0;
margin-bottom: 3.5rem;
margin-top: 3rem; }
/* Clearing
*/
/* Self Clearing Goodness */
.container:after,
.row:after,
.u-cf {
clear: both;
content: "";
display: table; }
/* Media Queries
*/
/*
Note: The best way to structure the use of media queries is to create the queries
near the relevant code. For example, if you wanted to change the styles for buttons
on small devices, paste the mobile query code up in the buttons secion and style it
there.
*/
2014-12-01 15:59:46 -05:00
/* Larger than mobile */
@media (min-width: 400px) {}
/* Larger than phablet (also point when grid becomes active) */
2014-12-01 15:59:46 -05:00
@media (min-width: 550px) {}
/* Larger than tablet */
@media (min-width: 750px) {}
2014-12-01 15:59:46 -05:00
/* Larger than desktop */
@media (min-width: 1000px) {}
2014-12-01 15:59:46 -05:00
/* Larger than Desktop HD */
@media (min-width: 1200px) {}