From 6ff2ba35b4677e85c16dc537d3a83dd7a5c2c36e Mon Sep 17 00:00:00 2001 From: Chun-MingChen Date: Sat, 3 Nov 2018 18:05:02 +0800 Subject: [PATCH] Disable double strips when table was displayed in bordered --- .../style/partials/_sticky.scss | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/packages/react-bootstrap-table2/style/partials/_sticky.scss b/packages/react-bootstrap-table2/style/partials/_sticky.scss index c8f19a8..66c69b6 100644 --- a/packages/react-bootstrap-table2/style/partials/_sticky.scss +++ b/packages/react-bootstrap-table2/style/partials/_sticky.scss @@ -26,4 +26,31 @@ overflow-y: auto; } } + + // Disable double strips when table was displayed in bordered. + table.table-sticky.table-bordered { + border-left: 0; + + thead, + tbody { + tr { + th { + border-top: 0; + border-right: 0; + } + + td { + border-top: 0; + border-right: 0; + + } + + &:last-child { + td { + border-bottom: 0; + } + } + } + } + } }