3 // Tables for, you guessed it, tabular data
4 // ----------------------------------------
12 border-collapse: collapse;
21 margin-bottom: @baseLineHeight;
27 line-height: @baseLineHeight;
30 border-top: 1px solid darken(@grayLighter, 5%);
35 // Bottom align for column headings
37 vertical-align: bottom;
40 // Remove top border from thead by default
41 thead:first-child tr th,
42 thead:first-child tr td {
45 // Account for multiple tbody instances
47 border-top: 2px solid #ddd;
53 // CONDENSED TABLE W/ HALF PADDING
54 // -------------------------------
68 border: 1px solid #ddd;
69 border-collapse: separate; // Done so we can round those corners!
70 *border-collapse: collapsed; // IE7 can't round corners anyway
76 border-left: 1px solid #ddd;
78 // Prevent a double border
79 thead:first-child tr:first-child th,
80 tbody:first-child tr:first-child th,
81 tbody:first-child tr:first-child td {
84 // For first th or td in the first row in the first thead or tbody
85 thead:first-child tr:first-child th:first-child,
86 tbody:first-child tr:first-child td:first-child {
87 .border-radius(4px 0 0 0);
89 thead:first-child tr:first-child th:last-child,
90 tbody:first-child tr:first-child td:last-child {
91 .border-radius(0 4px 0 0);
93 // For first th or td in the first row in the first thead or tbody
94 thead:last-child tr:last-child th:first-child,
95 tbody:last-child tr:last-child td:first-child {
96 .border-radius(0 0 0 4px);
98 thead:last-child tr:last-child th:last-child,
99 tbody:last-child tr:last-child td:last-child {
100 .border-radius(0 0 4px 0);
108 // Default zebra-stripe styles (alternating gray and transparent backgrounds)
111 tr:nth-child(odd) td,
112 tr:nth-child(odd) th {
113 background-color: lighten(@grayLighter, 1%);
121 // Placed here since it has to come after the potential zebra striping
125 background-color: lighten(@warningBackground, 4%);
133 // Change the columns
134 .tableColumns(@columnSpan: 1) {
136 width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16;
140 .span1 { .tableColumns(1); }
141 .span2 { .tableColumns(2); }
142 .span3 { .tableColumns(3); }
143 .span4 { .tableColumns(4); }
144 .span5 { .tableColumns(5); }
145 .span6 { .tableColumns(6); }
146 .span7 { .tableColumns(7); }
147 .span8 { .tableColumns(8); }
148 .span9 { .tableColumns(9); }
149 .span10 { .tableColumns(10); }
150 .span11 { .tableColumns(11); }
151 .span12 { .tableColumns(12); }
155 table [class^="icon-star"] {
156 margin: 3px 0 0 16px;
159 #stream table [class^="icon-star"] {
160 margin: 3px 0 0 10px;
169 table th .btn-group {
172 table th .btn input {
175 table td .btn-toolbar {
176 margin: -5px 0 -10px;
179 width: 100% !important;