From 7e1da02089db0dce247bf0777cc18bd3d90c9db9 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 20 Sep 2022 23:36:12 +0300 Subject: [PATCH] reduce selectability of some elements --- frontend/public/global.css | 8 ++++++++ frontend/src/components/Message.svelte | 1 + 2 files changed, 9 insertions(+) diff --git a/frontend/public/global.css b/frontend/public/global.css index 48be6a0..84b19f9 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -198,6 +198,8 @@ body { .input-label { text-transform: uppercase; color: var(--foreground-color-2); + pointer-events: none; + user-select: none; } .input { @@ -224,6 +226,7 @@ body { padding: var(--space-xsplus); border-radius: var(--radius-xl); font: inherit; + user-select: none; /* TODO: inefficient */ display: flex; @@ -335,6 +338,7 @@ body { } .sidebar-button { + user-select: none; flex-shrink: 0; display: flex; align-items: center; @@ -388,6 +392,10 @@ body { color: var(--colored-element-text-color); } +.material-icons-outlined, .material-icons { + user-select: none; +} + /*! the tweaks below are heavily based on modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ *, diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte index ee019ce..a65c049 100644 --- a/frontend/src/components/Message.svelte +++ b/frontend/src/components/Message.svelte @@ -77,6 +77,7 @@ visibility: hidden; margin-left: auto; flex-shrink: 0; + user-select: none; } .message.clumped .author {