Skip to content

Commit

Permalink
feat(table): color marked cells
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Nov 12, 2019
1 parent 49fddb1 commit 8d08ea2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/definitions/collections/table.less
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ each(@colors, {
color: @white;
}
.ui.ui.ui.ui.table tr.@{color}:not(.marked),
.ui.ui.table td.@{color} {
.ui.ui.table td.@{color}:not(.marked) {
& when (@stateMarkerWidth > 0) {
box-shadow: @stateMarkerWidth 0 0 @r inset;
}
Expand All @@ -757,8 +757,8 @@ each(@colors, {
}
}
.ui.ui.selectable.table tr.@{color}:not(.marked):hover,
.ui.table tr td.selectable.@{color}:hover,
.ui.selectable.table tr:hover td.@{color} {
.ui.table tr td.selectable.@{color}:not(.marked):hover,
.ui.selectable.table tr:hover td.@{color}:not(.marked) {
& when (@isDark) {
background: @lh;
}
Expand All @@ -772,6 +772,7 @@ each(@colors, {
color: @ht;
}
}
.ui.table td.marked.@{color},
.ui.table tr.marked.@{color} {
&.left {
box-shadow: @coloredBorderSize 0 0 0 @c inset;
Expand All @@ -780,6 +781,7 @@ each(@colors, {
box-shadow: -@coloredBorderSize 0 0 0 @c inset;
}
}
.ui.inverted.table td.marked.@{color},
.ui.inverted.table tr.marked.@{color} {
&.left {
box-shadow: @coloredBorderSize 0 0 0 @l inset;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default/collections/table.variables
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
@responsiveRowBoxShadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1) inset;
@responsiveCellVerticalPadding: 0.25em;
@responsiveCellHorizontalPadding: 0.75em;
@responsiveCellBoxShadow: none !important;
@responsiveCellBoxShadow: none;
@responsiveCellHeaderFontWeight: @bold;

/*-------------------
Expand Down

0 comments on commit 8d08ea2

Please sign in to comment.