diff --git a/scss/_print.scss b/scss/_print.scss index 5e2ce3a8aafc..4fd98cd395db 100644 --- a/scss/_print.scss +++ b/scss/_print.scss @@ -106,11 +106,6 @@ .table { border-collapse: collapse !important; - - td, - th { - background-color: #fff !important; - } } .table-bordered { th, diff --git a/scss/_tables.scss b/scss/_tables.scss index b32732f23afa..16977121eb0a 100644 --- a/scss/_tables.scss +++ b/scss/_tables.scss @@ -113,11 +113,13 @@ // stylelint-disable-next-line no-duplicate-selectors .table { - .thead-dark { - th { - color: $table-dark-color; - background-color: $table-dark-bg; - border-color: $table-dark-border-color; + @media not print { + .thead-dark { + th { + color: $table-dark-color; + background-color: $table-dark-bg; + border-color: $table-dark-border-color; + } } } @@ -130,30 +132,32 @@ } } -.table-dark { - color: $table-dark-color; - background-color: $table-dark-bg; +@media not print { + .table-dark { + color: $table-dark-color; + background-color: $table-dark-bg; - th, - td, - thead th { - border-color: $table-dark-border-color; - } + th, + td, + thead th { + border-color: $table-dark-border-color; + } - &.table-bordered { - border: 0; - } + &.table-bordered { + border: 0; + } - &.table-striped { - tbody tr:nth-of-type(odd) { - background-color: $table-dark-accent-bg; + &.table-striped { + tbody tr:nth-of-type(odd) { + background-color: $table-dark-accent-bg; + } } - } - &.table-hover { - tbody tr { - @include hover { - background-color: $table-dark-hover-bg; + &.table-hover { + tbody tr { + @include hover { + background-color: $table-dark-hover-bg; + } } } }