Commit d60d3423 authored by Mark Otto's avatar Mark Otto
Browse files

table headers

parent 3e896193
Showing with 684 additions and 1752 deletions
+684 -1752
This diff is collapsed.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
This diff is collapsed.
...@@ -40,6 +40,73 @@ Due to the widespread use of tables across plugins like calendars and date picke ...@@ -40,6 +40,73 @@ Due to the widespread use of tables across plugins like calendars and date picke
</table> </table>
{% endexample %} {% endexample %}
## Table head options
Use one of two modifier classes to make `<thead>`s appear light or dark gray.
{% example html %}
<table class="table">
<thead class="thead-inverse">
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
<thead class="thead-default">
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
{% endexample %}
## Striped rows ## Striped rows
Use `.table-striped` to add zebra-striping to any table row within the `<tbody>`. Use `.table-striped` to add zebra-striping to any table row within the `<tbody>`.
......
...@@ -1638,6 +1638,14 @@ table th[class*="col-"] { ...@@ -1638,6 +1638,14 @@ table th[class*="col-"] {
border-bottom: 0; border-bottom: 0;
} }
} }
.table > .thead-inverse > tr > th {
color: #fff;
background-color: #373a3c;
}
.table > .thead-default > tr > th {
color: #55595c;
background-color: #eceeef;
}
fieldset { fieldset {
min-width: 0; min-width: 0;
padding: 0; padding: 0;
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
...@@ -231,3 +231,18 @@ table { ...@@ -231,3 +231,18 @@ table {
} }
} }
} }
.table > .thead-inverse {
> tr > th {
color: #fff;
background-color: @gray-dark;
}
}
.table > .thead-default {
> tr > th {
color: @gray;
background-color: @gray-lighter;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment