From c2940fd77cba7b0cf912db9fda92e66dbce9110f Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 16 Mar 2025 10:58:06 +0900 Subject: enhance(frontend): improve usability on touch device --- packages/frontend/src/style.scss | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'packages/frontend/src/style.scss') diff --git a/packages/frontend/src/style.scss b/packages/frontend/src/style.scss index 5308c312bb..43aff3012e 100644 --- a/packages/frontend/src/style.scss +++ b/packages/frontend/src/style.scss @@ -81,6 +81,11 @@ html { &.useSystemFont { font-family: system-ui; } + + &:not(.forceSelectableAll) { + user-select: none; + -webkit-user-select: none; + } } html._themeChanging_ { @@ -120,6 +125,8 @@ a { textarea, input { tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent; + user-select: text; + -webkit-user-select: text; } optgroup, option { @@ -184,6 +191,16 @@ rt { padding: 0.3em 0.5em; } +._selectable { + user-select: text; + -webkit-user-select: text; +} + +._selectableAtomic { + user-select: all; + -webkit-user-select: all; +} + ._noSelect { user-select: none; -webkit-user-select: none; -- cgit v1.2.3-freya