From efa037d34be7b1570efdc767c79fad8d4005f10e Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 19 Feb 2017 12:57:33 +0200 Subject: Add new code new version Change-Id: Ic02a76313503b526f17c3df29eb387a29fe6a42a Signed-off-by: Michael Lando --- .../scss/bootstrap/mixins/_table-row.scss | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 openecomp-ui/resources/scss/bootstrap/mixins/_table-row.scss (limited to 'openecomp-ui/resources/scss/bootstrap/mixins/_table-row.scss') diff --git a/openecomp-ui/resources/scss/bootstrap/mixins/_table-row.scss b/openecomp-ui/resources/scss/bootstrap/mixins/_table-row.scss new file mode 100644 index 0000000000..2e4cd461a6 --- /dev/null +++ b/openecomp-ui/resources/scss/bootstrap/mixins/_table-row.scss @@ -0,0 +1,28 @@ +// Tables + +@mixin table-row-variant($state, $background) { + // Exact selectors below required to override `.table-striped` and prevent + // inheritance to nested tables. + .table > thead > tr, + .table > tbody > tr, + .table > tfoot > tr { + > td.#{$state}, + > th.#{$state}, + &.#{$state} > td, + &.#{$state} > th { + background-color: $background; + } + } + + // Hover states for `.table-hover` + // Note: this is not available for cells or rows within `thead` or `tfoot`. + .table-hover > tbody > tr { + > td.#{$state}:hover, + > th.#{$state}:hover, + &.#{$state}:hover > td, + &:hover > .#{$state}, + &.#{$state}:hover > th { + background-color: darken($background, 5%); + } + } +} -- cgit 1.2.3-korg