Skip to content

Commit

Permalink
proper modified coloring in light/dark
Browse files Browse the repository at this point in the history
  • Loading branch information
mart2070 committed May 1, 2024
1 parent 39615c3 commit f73f73a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@

let cell = modDate.cell
cell.style.background = `rgba(255,0,0,${alpha}`
//cell.style.color = alpha > 0.7 ? "#000" : "#fff"
cell.classList.add(alpha > 0.5 ? "light" : "dark")
}

//find user replies & last modified by internal
Expand Down Expand Up @@ -314,6 +314,7 @@
/* Root Styles */
:root {
--light-txt-1: #000;
--light-col-1: #897043;
--light-col-2: #635130;
--light-bg-2: #ddd;
Expand Down Expand Up @@ -362,6 +363,10 @@
--col-modified: #ffe8d1;
}
.light {
color: var(--dark-txt-1) !important;
}
/* Colors */
a, a.noHover, .blue {
color: var(--light-col-1) !important;
Expand Down Expand Up @@ -419,6 +424,10 @@
background: var(--dark-bg-3);
}
.dark {
color: var(--dark-txt-1) !important;
}
/* Body */
html, body {
background-color: var(--dark-bg-0) !important;
Expand Down

0 comments on commit f73f73a

Please sign in to comment.