Apply a natural box layout model to all elements

This commit is contained in:
Ben Radcliffe 2015-02-19 10:01:17 -06:00
parent 88f03612b0
commit 13a0b81db2

21
css/skeleton.css vendored
View File

@ -33,13 +33,11 @@
width: 100%; width: 100%;
max-width: 960px; max-width: 960px;
margin: 0 auto; margin: 0 auto;
padding: 0 20px; padding: 0 20px; }
box-sizing: border-box; }
.column, .column,
.columns { .columns {
width: 100%; width: 100%;
float: left; float: left; }
box-sizing: border-box; }
/* For devices larger than 400px */ /* For devices larger than 400px */
@media (min-width: 400px) { @media (min-width: 400px) {
@ -119,7 +117,10 @@
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 {
box-sizing: border-box;
font-size: 62.5%; } font-size: 62.5%; }
*, *:before, *:after {
box-sizing: inherit; }
body { body {
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;
@ -185,8 +186,7 @@ input[type="button"] {
background-color: transparent; background-color: transparent;
border-radius: 4px; border-radius: 4px;
border: 1px solid #bbb; border: 1px solid #bbb;
cursor: pointer; cursor: pointer; }
box-sizing: border-box; }
.button:hover, .button:hover,
button:hover, button:hover,
input[type="submit"]:hover, input[type="submit"]:hover,
@ -239,8 +239,7 @@ select {
background-color: #fff; background-color: #fff;
border: 1px solid #D1D1D1; border: 1px solid #D1D1D1;
border-radius: 4px; border-radius: 4px;
box-shadow: none; box-shadow: none; }
box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */ /* Removes awkward default styles on some inputs for iOS */
input[type="email"], input[type="email"],
input[type="number"], input[type="number"],
@ -360,11 +359,9 @@ form {
/* Utilities /* Utilities
*/ */
.u-full-width { .u-full-width {
width: 100%; width: 100%; }
box-sizing: border-box; }
.u-max-full-width { .u-max-full-width {
max-width: 100%; max-width: 100%; }
box-sizing: border-box; }
.u-pull-right { .u-pull-right {
float: right; } float: right; }
.u-pull-left { .u-pull-left {