2016-02-09 12:15:41 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Base class
|
|
|
|
//
|
|
|
|
.table {
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-top: $spacer;
|
|
|
|
margin-bottom: $spacer;
|
|
|
|
|
2016-02-11 02:11:25 +01:00
|
|
|
// reset body word-break
|
|
|
|
// so responsive tables can work
|
|
|
|
word-break: normal;
|
|
|
|
|
2016-02-09 12:15:41 +01:00
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: $table-cell-padding;
|
|
|
|
vertical-align: top;
|
|
|
|
border-top: $table-border-width solid $table-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
thead th {
|
|
|
|
color: $brand-main-blue-light;
|
|
|
|
font-weight: $font-weight-base;
|
|
|
|
vertical-align: bottom;
|
|
|
|
border-bottom: (2 * $table-border-width) solid $table-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
tbody + tbody {
|
|
|
|
border-top: (2 * $table-border-width) solid $table-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.table {
|
|
|
|
background-color: $body-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Condensed table w/ half padding
|
|
|
|
//
|
|
|
|
.table-sm {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
padding: $table-sm-cell-padding;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Bordered version
|
|
|
|
//
|
|
|
|
.table-bordered {
|
|
|
|
border: $table-border-width solid $table-border-color;
|
|
|
|
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border: $table-border-width solid $table-border-color;
|
|
|
|
}
|
|
|
|
thead {
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border-bottom-width: (2 * $table-border-width);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Zebra-striping
|
|
|
|
//
|
|
|
|
.table-striped {
|
|
|
|
tbody tr:nth-of-type(odd) {
|
|
|
|
background-color: $table-bg-accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Responsive tables
|
|
|
|
//
|
|
|
|
// Wrap your tables in `.table-responsive`
|
|
|
|
.table-responsive {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2016-02-11 02:11:25 +01:00
|
|
|
min-height: .01%;
|
2016-02-09 12:15:41 +01:00
|
|
|
overflow-x: auto;
|
2016-02-11 02:11:25 +01:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2016-02-09 12:15:41 +01:00
|
|
|
}
|