Skip to content

Commit

Permalink
On results table, change hover effect from background color to outlin…
Browse files Browse the repository at this point in the history
…e+gradient. Imrpoves image viewing
  • Loading branch information
KastanDay committed Jul 8, 2024
1 parent 532c7c3 commit c9c93ba
Showing 1 changed file with 45 additions and 29 deletions.
74 changes: 45 additions & 29 deletions src/app/components/chemscraper/results/results.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -393,36 +393,49 @@ p-panel {
}
}

.p-datatable-thead {
position: relative;
.p-datatable-tbody>tr:hover {
// On hover effect
background: linear-gradient(to bottom right, #D3D3D3 .5%, white 20%) !important;
outline: 2px solid #D3D3D3;
}

&:after,
&:before {
content: '';
position: absolute;
left: 0px;
right: 0px;
z-index: get_index(interface);
.p-datatable-tbody>tr.p-highlight {
// While row is active/exapnded in detail view
background: linear-gradient(to bottom right, #D3D3D3 .5%, white 20%) !important;
outline: 2px solid #D3D3D3;
color: get_color('text'); // #495057 -- text color when row is in expanded state
}

pointer-events: none;
}
// .p-datatable-thead {
// position: relative;

&:after {
top: 0px;
// &:after,
// &:before {
// content: '';
// position: absolute;
// left: 0px;
// right: 0px;
// z-index: get_index(interface);

border: {
top: 1px solid css_var('interface_border');
}
}
// pointer-events: none;
// }

&:after {
bottom: 0px;
// &:after {
// top: 0px;

border: {
bottom: 1px solid css_var('interface_border');
}
}
}
// border: {
// top: 1px solid css_var('interface_border');
// }
// }

// &:after {
// bottom: 0px;

// border: {
// bottom: 1px solid css_var('interface_border');
// }
// }
// }

.column_name {
width: 17rem;
Expand All @@ -437,11 +450,11 @@ p-panel {
tr.p-highlight {
outline: 0px !important;

>td {
border: {
bottom: 0px;
}
}
// >td {
// border: {
// bottom: 0px;
// }
// }
}

.row_expansion {
Expand All @@ -450,7 +463,10 @@ p-panel {
}

td {
background-color: #eff6ff !important;
border: none !important;
border: 1px solid css_var('interface_border');
outline: 1px solid css_var('interface_border');
}
}
}
Expand Down

0 comments on commit c9c93ba

Please sign in to comment.