Web Dev Solutions

Catalin Mititiuc

From c5bfc6cc17b87a519c3e9cdd3261f6c06babb524 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 28 Mar 2024 14:24:41 -0700 Subject: Disallow selecting text in SVG text elements --- style.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index b1a581a..c53f289 100644 --- a/style.css +++ b/style.css @@ -14,6 +14,10 @@ svg { /* max-height: 100vw; */ } +svg text { + user-select: none; +} + div#content { border-left: 1px solid gray; flex-basis: 0; @@ -182,7 +186,7 @@ img.logo { } div.soldier-record.selected { - background-color: lightgray; + background-color: khaki; } rect#debug-view-box { -- cgit v1.2.3