2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

overhaul the grid CSS to make it more durable for tables and forms to use the same sizing methods; need to see about improving this in the future

This commit is contained in:
Mark Otto
2011-10-03 22:14:50 -07:00
parent 948c59ddb3
commit a968d300b4
6 changed files with 154 additions and 94 deletions
+15 -13
View File
@@ -82,7 +82,7 @@ a {
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
// Credit to @dhg for the idea
[class*="span"] {
.row > [class*="span"] {
.gridColumn();
}
@@ -115,18 +115,20 @@ a {
.span24 { .columns(24); }
// Offset column options
.offset1 { .offset(1); }
.offset2 { .offset(2); }
.offset3 { .offset(3); }
.offset4 { .offset(4); }
.offset5 { .offset(5); }
.offset6 { .offset(6); }
.offset7 { .offset(7); }
.offset8 { .offset(8); }
.offset9 { .offset(9); }
.offset10 { .offset(10); }
.offset11 { .offset(11); }
.offset12 { .offset(12); }
.row {
& > .offset1 { .offset(1); }
& > .offset2 { .offset(2); }
& > .offset3 { .offset(3); }
& > .offset4 { .offset(4); }
& > .offset5 { .offset(5); }
& > .offset6 { .offset(6); }
& > .offset7 { .offset(7); }
& > .offset8 { .offset(8); }
& > .offset9 { .offset(9); }
& > .offset10 { .offset(10); }
& > .offset11 { .offset(11); }
& > .offset12 { .offset(12); }
}
// Unique column sizes for 16-column grid
.span-one-third { width: 300px; }