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:
+15
-13
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user