The tables object provides basic styling for tables.
<table class="table">
<tr>
<td>Foo</td>
<td>Bar</td>
<td>Baz</td>
</tr>
</table>
You can change the basic theming of .tables
:
$inuit-table-border-width: 1px !default;
$inuit-table-border-style: solid !default;
$inuit-table-border-color: #ccc !default;
The tables object provides the following modifiers:
.table--fixed
.table--compact
.table--cosy
.table--comfy
.table--rows
.table--columns
.table--cells
.table--fixed
forces each column of the table to have equal widths.
.table--compact
, .table--cosy
and .table--comfy
all vary the spacing inside the table cells. Each one has its own dedicated variable to control that spacing:
$inuit-table-padding--compact: quarter($inuit-base-spacing-unit) !default;
$inuit-table-padding--cosy: halve($inuit-base-spacing-unit) !default;
$inuit-table-padding--comfy: $inuit-base-spacing-unit !default;
.table--rows
highlights the table rows by assigning a horizontal border to each <tr>
.
.table--columns
highlights the table columns by assigning a vertical border to each <td>
.
.table--cells
borders everything.