style(webui): embolden 0 axes in Surface, text shadow
parent
8793691cbb
commit
4dc5f49245
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue