Box sizing on columns. thanks @hellotoby

This commit is contained in:
Nick Pack 2013-04-23 21:04:48 +01:00
parent 2fa65efd5f
commit 5de7739b70
4 changed files with 48 additions and 38 deletions

View File

@ -1,4 +1,5 @@
Copyright (c) 2013 Nick Pack
Based on the original skeleton project which is Copyright 2011 Dave Gamache
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

8
css/skeleton.css vendored
View File

@ -77,7 +77,13 @@ body {
float: left;
display: inline;
margin-left: 10px;
margin-right: 10px; }
margin-right: 10px;
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
-khtml-box-sizing: border-box; }
.row {
margin-bottom: 20px; }

View File

@ -3,7 +3,7 @@
.container { position: relative; width: 960px; margin: 0 auto; padding: 0; }
.container .column,
.container .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; }
.container .columns { float: left; display: inline; margin-left: 10px; margin-right: 10px; @include box-sizing(border-box); }
.row { margin-bottom: 20px; }
/* Nested Column Classes */

View File

@ -83,6 +83,9 @@
box-sizing: $boxsize;
-webkit-box-sizing: $boxsize;
-moz-box-sizing: $boxsize;
-ms-box-sizing: $boxsize;
-o-box-sizing: $boxsize;
-khtml-box-sizing: $boxsize;
}
@mixin horizontal-gradient($startColour, $endColour) {