Repository URL to install this package:
|
Version:
2.2 ▾
|
$table-border-color: $base-border-color;
$table-border: 1px solid $table-border-color;
$table-background: lighten($table-border-color, 12);
$table-header-background: lighten($table-background, 10);
$table-hover-background: darken($table-background, 5);
$table-stripe-background: darken($table-background, 2);
$table-stripe-background-hover: darken($table-stripe-background, 5);
$table-padding: 0.75em 1em;
th { text-align: left; }
table {
width: 100%;
border: $table-border;
border-collapse: seperate;
border-radius: $base-border-radius;
border-spacing: 0;
tbody {
background-color: $table-background;
tr:hover > td, tr:hover > th {
background-color: $table-hover-background;
}
tr:nth-child(even) {
background-color: $table-stripe-background;
&:hover > td {
background-color: $table-stripe-background-hover;
}
}
}
thead:first-of-type {
tr:first-child > th:first-child {
border-top-left-radius: $base-border-radius;
}
tr:first-child > th:last-child {
border-top-right-radius: $base-border-radius;
}
}
tbody:last-child {
tr:last-child > td:first-child {
border-bottom-left-radius: $base-border-radius;
}
tr:last-child > td:last-child {
border-bottom-right-radius: $base-border-radius;
}
}
thead {
th {
background-color: $table-header-background;
border-bottom: 0px;
border-left: 1px solid $table-border-color;
padding: $table-padding;
&:first-child {
border-left: none;
}
}
}
tbody {
background-color: $table-background;
td {
border-bottom: 0px;
border-left: 1px solid $table-border-color;
border-top: 1px solid $table-border-color;
padding: $table-padding;
&:first-child {
border-left: none;
}
}
}
}