From 5376bb9e0cf2aad9b12d6fde1f43f92854b55cf9 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 14 Feb 2017 22:22:04 -0500 Subject: Add table-hover css class --- assets/sass/_comment.sass | 10 +++++----- assets/sass/_table.sass | 5 +++++ assets/sass/_variables.sass | 2 ++ 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'assets/sass') diff --git a/assets/sass/_comment.sass b/assets/sass/_comment.sass index 5962d983..5cc1548c 100644 --- a/assets/sass/_comment.sass +++ b/assets/sass/_comment.sass @@ -16,12 +16,12 @@ background: #fafafa .comment-highlighted - background-color: #FFF8DC - border: 2px solid #FFF8DC - border-left: 2px solid #ffeb8e + background-color: map-get($highlight-colors, 'background') + border: 2px solid map-get($highlight-colors, 'background') + border-left: 2px solid map-get($highlight-colors, 'border') &:hover - background-color: #FFF8DC - border: 2px solid #ffeb8e + background-color: map-get($highlight-colors, 'background') + border: 2px solid map-get($highlight-colors, 'border') .comment-title border-bottom: 1px dotted #eee diff --git a/assets/sass/_table.sass b/assets/sass/_table.sass index c570ef16..9b7581e4 100644 --- a/assets/sass/_table.sass +++ b/assets/sass/_table.sass @@ -23,6 +23,11 @@ table &.table-striped tr:nth-child(odd) background: bg-color('lighter') + &.table-hover tr:hover + background: map-get($highlight-colors, 'background') + td + border: 2px solid map-get($highlight-colors, 'border') + &.table-scrolling @include sm-device overflow-x: auto diff --git a/assets/sass/_variables.sass b/assets/sass/_variables.sass index d710d8c9..3ad4bc7a 100644 --- a/assets/sass/_variables.sass +++ b/assets/sass/_variables.sass @@ -21,6 +21,8 @@ $font-sizes: ('normal': 1.0em, 'tiny': 0.7em, 'small': 0.8em, 'compact': 0.9em, $icon-colors: ('success': #468847, 'error': #b94a48) +$highlight-colors: ('background': #FFF8DC, 'border': #ffeb8e) + $text-font: 'Helvetica Neue', Helvetica, Arial, sans-serif $board-task-limit-color: #DF5353 -- cgit v1.2.3