1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 00:29:52 +02:00

table: Add border color relative to theme for accessibility (#25755)

This commit is contained in:
Bastien
2018-10-20 08:21:31 +00:00
committed by XhmikosR
parent 282b77ee9c
commit a86aef0ae0
3 changed files with 14 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
// Tables
@mixin table-row-variant($state, $background) {
@mixin table-row-variant($state, $background, $border: null) {
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
.table-#{$state} {
@@ -9,6 +9,15 @@
> td {
background-color: $background;
}
@if $border != null {
th,
td,
thead th,
tbody + tbody {
border-color: $border;
}
}
}
// Hover states for `.table-hover`