Skip to content

Commit

Permalink
some bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhty committed Sep 2, 2012
1 parent ee73984 commit 3bce374
Show file tree
Hide file tree
Showing 8 changed files with 403 additions and 331 deletions.
250 changes: 137 additions & 113 deletions demo.htm

Large diffs are not rendered by default.

81 changes: 48 additions & 33 deletions lib/grid.css
@@ -1,36 +1,51 @@
.container, .line, .last-unit {overflow:hidden;}
.container {width:18.75em; margin:0 auto;} /* 300px = 18.75em, 1024px = 64em */
.line-pad {margin: 0 2.2709%;}
.unit {float:left; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing:border-box; margin-right:2.2709%;} /* 1.618em / 71.25em ~= 2.2709% */

.size1of2 {width:48.8646%;}

.size1of3 {width:31.8194%;}
.size2of3 {width:65.9097%;}

.size1of4 {width:23.2968%;}
.size3of4 {width:74.4323%;}

.size1of5 {width:18.1833%;}
.size2of5 {width:38.6375%;}
.size3of5 {width:59.0916%;}
.size4of5 {width:79.5458%;}

.size1of6 {width:14.7743%;}
.size5of6 {width:82.9549%;}

.size1of7 {width:12.3392%;}
.size2of7 {width:26.9494%;}
.size3of7 {width:41.5595%;}
.size4of7 {width:56.1696%;}
.size5of7 {width:70.7797%;}
.size6of7 {width:85.3899%;}
.container, .line {
overflow:hidden;
}

.container {
width: 18.75em; /* 300px = 18.75em, 1024px = 64em */
margin: 0 auto;
box-sizing: border-box;
}

.container-padding {
padding: 1.618em;
}

.unit {
float: left;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

.gutter {
padding-right: 1.618em;
}

.size1of2 {width: 50%;}

.size1of3 {width: 33.3333%;}
.size2of3 {width: 66.6667%;}

.size1of4 {width: 25%;}
.size3of4 {width: 75%;}

.size1of5 {width: 20%;}
.size2of5 {width: 40%;}
.size3of5 {width: 60%;}
.size4of5 {width: 80%;}

.size1of6 {width: 16.6667%;}
.size5of6 {width: 83.3333%;}

.size1of7 {width: 14.2857%;}
.size2of7 {width: 28.5714%;}
.size3of7 {width: 42.8571%;}
.size4of7 {width: 57.1429%;}
.size5of7 {width: 71.4286%;}
.size6of7 {width: 85.7143%;}

.size1of1 {width:100%;}

.size1of1, .unit:last-child {margin-right:0;}

/*.lte-ie8 .size1of1, .lte-ie8 .last-unit {_position:relative; _left:-3px; _margin-right:-3px;}*/
/*.lt-ie8 .container, .lt-ie8 .line, .lt-ie8 .last-unit {*overflow:visible; *zoom:1;}*/

.h-gutter {margin-bottom:2.2709%;}
.h-gutter {margin-bottom: 1.618em;}
14 changes: 12 additions & 2 deletions lib/list.css
@@ -1,3 +1,13 @@
nav ul, nav ol {list-style: none; margin: 0; padding: 0;}
nav ul, nav ol {
list-style: none;
margin: 0;
padding: 0;
}

li ul, li ol {margin: 0;}
ul, ol, dl {
margin: 1.618em 0;
}

ul:nth-of-type(1), ol:nth-of-type(1), dl:nth-of-type(1) {
margin: 0 0 1.618em 0;
}
16 changes: 16 additions & 0 deletions lib/misc.css
@@ -0,0 +1,16 @@
a {
padding: 0;
}

a:link {
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

a:active, a:focus {
position: relative;
top:1px;
}

0 comments on commit 3bce374

Please sign in to comment.