Skip to content

Commit

Permalink
change bg color of selected row in notification center and wp table
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad authored and oliverguenther committed Sep 3, 2024
1 parent 6001541 commit de29d2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ $ian-bg-color: var(--body-background)
$ian-bg-hover-color: var(--bgColor-neutral-muted)
$ian-bg-read-color: var(--bgColor-muted)
$ian-bg-read-hover-color: hsl(from var(--bgColor-neutral-muted) h s calc(l - 0.5))
$ian-bg-selected-color: var(--selection-bgColor)
$ian-bg-selected-hover-color: hsl(from var(--selection-bgColor) h calc(s - 30) l)
$ian-bg-selected-color: var(--codeMirror-selection-bgColor)
$ian-bg-selected-hover-color: hsl(from var(--codeMirror-selection-bgColor) h calc(s - 30) l)
// This needs to be set in the itemSize of
// the virtual scroller
$ian-height: 100px
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/global_styles/content/_tables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ th.hidden

tr.context-menu-selection,
tr.-checked
background-color: var(--selection-bgColor) !important
background-color: var(--codeMirror-selection-bgColor) !important
&[class*=__hl_background]
outline: var(--table-row-highlighting-outline-color) solid 2px

td
border-top: 1px solid var(--selection-bgColor) !important
border-bottom: 1px solid var(--selection-bgColor) !important
border-top: 1px solid var(--codeMirror-selection-bgColor) !important
border-bottom: 1px solid var(--codeMirror-selection-bgColor) !important
color: var(--body-font-color) !important
a
color: var(--body-font-color) !important
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ body[class*="router--"]
background: var(--bgColor-neutral-muted) !important

&.-checked
background-color: hsl(from var(--selection-bgColor) h calc(s - 30) l) !important
background-color: hsl(from var(--codeMirror-selection-bgColor) h calc(s - 30) l) !important

// Left part of the split view
// == flex container for (table|timeline)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $table-timeline--compact-row-height: 28px
.wp-table--row
border-bottom: none !important
&:hover
background-color: var(--selection-bgColor)
background-color: var(--codeMirror-selection-bgColor)

thead,
.generic-table--sort-header-outer
Expand Down

0 comments on commit de29d2c

Please sign in to comment.