From 80d9194c56e4cecc3a00acd71033ca7ff35064cf Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 11 Nov 2016 13:14:53 +0100 Subject: webdocs-agl: upgrade bootstrap to 3.3.7 Using the bootstrap-sass version available at: https://github.com/twbs/bootstrap-sass/archive/v3.3.7.tar.gz Change-Id: I04dbedda13f6ab6987d4b61afd10bbd60dfb70e6 Signed-off-by: Stephane Desneux --- .../styles/scss/bootstrap/mixins/_table-row.scss | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 site/static/styles/scss/bootstrap/mixins/_table-row.scss (limited to 'site/static/styles/scss/bootstrap/mixins/_table-row.scss') diff --git a/site/static/styles/scss/bootstrap/mixins/_table-row.scss b/site/static/styles/scss/bootstrap/mixins/_table-row.scss new file mode 100644 index 0000000..1367950 --- /dev/null +++ b/site/static/styles/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