Skip to content

Commit

Permalink
ui(orderbook): improve readability with alternate colors for rows
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Nov 4, 2022
1 parent 669827c commit e4c1124
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/Orderbook.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
border: none;
}

.highlighted td {
.orderbookContainer tr:nth-child(2n) td {
background-color: var(--bs-gray-200);
}

:root[data-theme='dark'] .orderbookContainer tr:nth-child(2n) td {
background-color: var(--bs-gray-800);
}

.orderbookContainer tr.highlighted td {
background-color: rgba(var(--bs-success-rgb), 0.33) !important;
}

0 comments on commit e4c1124

Please sign in to comment.