From b450d79d8eb355945a9ea2fd2045089b4fa1e0bd Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 12 Dec 2022 11:49:27 -0600 Subject: [PATCH] disable select on non-inputs closes #26 --- src/index.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index d363a87..7d9717d 100644 --- a/src/index.css +++ b/src/index.css @@ -53,7 +53,6 @@ a { text-align: right; padding-left: 100px; padding-right: 7px; - user-select: text; -webkit-app-region: drag; z-index: 1000; } @@ -340,3 +339,8 @@ select.button:focus { /* Support for IE. */ font-feature-settings: 'liga'; } + +/* only allow select on input fields */ +body :not(input):not(select):not(textarea) { + user-select: none; +}