style(webui): embolden 0 axes in Surface, text shadow

refactor/addresses-js
Tomáš Mládek 2023-11-21 07:51:02 +01:00
parent 8793691cbb
commit 4dc5f49245
1 changed files with 16 additions and 0 deletions

View File

@ -162,6 +162,21 @@
gX.call(xAxis.scale(transform.rescaleX(xScale)));
gY.call(yAxis.scale(transform.rescaleY(yScale)));
updateStyles();
}
function updateStyles() {
svg
.selectAll(".tick line")
.attr("stroke-width", (d: number) => {
return d === 0 ? 2 : 1;
})
.attr("stroke", function (d: number) {
return d === 0
? "var(--foreground-lightest)"
: "var(--foreground-lighter)";
});
}
// function reset() {
@ -355,6 +370,7 @@
:global(.tick text) {
color: var(--foreground-lightest);
font-size: 1rem;
text-shadow: 0 0 0.25em var(--background);
}
.content {