-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major changes: no gutters by default + optimisations.
- Loading branch information
1 parent
99ea5ec
commit f2db372
Showing
2 changed files
with
28 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,36 @@ | ||
/*! | ||
* PocketGrid 0.1.0 | ||
/*! PocketGrid 1.0.0 | ||
* Copyright 2013 Arnaud Leray | ||
* MIT License | ||
*/ | ||
|
||
.block, .block:after, .block:before, | ||
.block-group, .block-group:after, .block-group:before { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
/* Border-box-sizing */ | ||
.block-group, .block, .block-group:after, .block:after, .block-group:before, .block:before { | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Clearfix */ | ||
.block-group { | ||
clear: both; | ||
*zoom: 1; | ||
*zoom: 1; | ||
} | ||
.block-group:before, .block-group:after { | ||
display: table; | ||
content: ""; | ||
line-height: 0; | ||
} | ||
.block-group:before, | ||
.block-group:after { | ||
display: table; | ||
content: ""; | ||
line-height: 0; | ||
clear: both; | ||
clear: both; | ||
} | ||
|
||
/* Nested grid */ | ||
.block-group > .block-group { | ||
float: left; | ||
margin: 0; | ||
clear: none; | ||
clear: none; | ||
float: left; | ||
margin: 0 !important; | ||
} | ||
|
||
/* Default block */ | ||
.block { | ||
float: left; | ||
width: 100%; | ||
} | ||
|
||
/* Gutters: can be removed if you don't want gutters */ | ||
.block-group { | ||
/*margin: -.5em;*/ | ||
margin: -1em 0 0 -1em; | ||
} | ||
.block { | ||
/*padding: .5em;*/ | ||
padding: 1em 0 0 1em; | ||
float: left; | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/*! | ||
* PocketGrid 0.1.0 | ||
/*! PocketGrid 1.0.0 | ||
* Copyright 2013 Arnaud Leray | ||
* MIT License | ||
*/.block,.block:after,.block:before,.block-group,.block-group:after,.block-group:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} | ||
.block-group{clear:both;*zoom:1} | ||
.block-group:before,.block-group:after{display:table;content:"";line-height:0;clear:both} | ||
.block-group>.block-group{float:left;margin:0;clear:none} | ||
.block{float:left;width:100%} | ||
.block-group{margin:-1em 0 0 -1em;} | ||
.block{padding:1em 0 0 1em} | ||
*/.block-group,.block,.block-group:after,.block:after,.block-group:before,.block:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} | ||
.block-group{*zoom:1} | ||
.block-group:before,.block-group:after{display:table;content:"";line-height:0} | ||
.block-group:after{clear:both} | ||
.block-group>.block-group{clear:none;float:left;margin:0 !important} | ||
.block{float:left;width:100%} |