aboutsummaryrefslogtreecommitdiffstats
path: root/site/static/styles/scss/bootstrap/mixins/_table-row.scss
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 13:14:53 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-11 13:15:01 +0100
commit80d9194c56e4cecc3a00acd71033ca7ff35064cf (patch)
treee412cd48bd6a1017ea0ac6abd1b62b984b6ebb06 /site/static/styles/scss/bootstrap/mixins/_table-row.scss
parent777f9afc5f5a3d8ff90a8046314635404dcdcd99 (diff)
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 <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/static/styles/scss/bootstrap/mixins/_table-row.scss')
-rw-r--r--site/static/styles/scss/bootstrap/mixins/_table-row.scss28
1 files changed, 28 insertions, 0 deletions
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%);
+ }
+ }
+}