diff options
| author | Mark Otto <[email protected]> | 2012-09-30 23:59:35 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-09-30 23:59:35 -0700 |
| commit | ecf6077f480f0ff255e38c6643a23b5d74ef53f3 (patch) | |
| tree | 3804f2302e612cbb5277a3b8a79970feddc088a0 /less | |
| parent | c82b9d1e7c63a2885d679e39913941a4c2188661 (diff) | |
| download | bootstrap-ecf6077f480f0ff255e38c6643a23b5d74ef53f3.tar.xz bootstrap-ecf6077f480f0ff255e38c6643a23b5d74ef53f3.zip | |
remove table grid sizing, it can use the new default grid columns instead
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 7 | ||||
| -rw-r--r-- | less/tables.less | 37 |
2 files changed, 5 insertions, 39 deletions
diff --git a/less/mixins.less b/less/mixins.less index ee360d734..8cd741d2d 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -472,13 +472,6 @@ .clearfix(); } -// Table columns -.tableColumns(@columnSpan: 1) { - float: none; // undo default grid column styles - width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells - margin-left: 0; // undo default grid column styles -} - // Make a Grid // Use .makeRow and .makeColumn to assign semantic layouts grid system behavior .makeRow() { diff --git a/less/tables.less b/less/tables.less index ecf9536f6..1d1b2b0ec 100644 --- a/less/tables.less +++ b/less/tables.less @@ -3,9 +3,6 @@ // -------------------------------------------------- -// BASE TABLES -// ----------------- - table { max-width: 100%; background-color: @tableBackground; @@ -13,6 +10,8 @@ table { border-spacing: 0; } + + // BASELINE STYLES // --------------- @@ -63,6 +62,7 @@ table { } + // BORDERED VERSION // ---------------- @@ -139,7 +139,6 @@ table { - // ZEBRA-STRIPING // -------------- @@ -154,6 +153,7 @@ table { } + // HOVER EFFECT // ------------ // Placed here since it has to come after the potential zebra striping @@ -167,6 +167,7 @@ table { } + // TABLE CELL SIZING // ----------------- @@ -177,34 +178,6 @@ table [class*=span] { margin-left: 0; // undo default grid column styles } -// Change the column widths to account for td/th padding -.table { - .span1 { .tableColumns(1); } - .span2 { .tableColumns(2); } - .span3 { .tableColumns(3); } - .span4 { .tableColumns(4); } - .span5 { .tableColumns(5); } - .span6 { .tableColumns(6); } - .span7 { .tableColumns(7); } - .span8 { .tableColumns(8); } - .span9 { .tableColumns(9); } - .span10 { .tableColumns(10); } - .span11 { .tableColumns(11); } - .span12 { .tableColumns(12); } - .span13 { .tableColumns(13); } - .span14 { .tableColumns(14); } - .span15 { .tableColumns(15); } - .span16 { .tableColumns(16); } - .span17 { .tableColumns(17); } - .span18 { .tableColumns(18); } - .span19 { .tableColumns(19); } - .span20 { .tableColumns(20); } - .span21 { .tableColumns(21); } - .span22 { .tableColumns(22); } - .span23 { .tableColumns(23); } - .span24 { .tableColumns(24); } -} - // TABLE BACKGROUNDS |
