summaryrefslogtreecommitdiff
path: root/packages/frontend/src/style.scss
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 10:58:06 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 10:58:06 +0900
commitc2940fd77cba7b0cf912db9fda92e66dbce9110f (patch)
tree1ac1df00c5ea467af720e2c96bf3517d4d1d59b3 /packages/frontend/src/style.scss
parentrefactor (diff)
downloadsharkey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.tar.gz
sharkey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.tar.bz2
sharkey-c2940fd77cba7b0cf912db9fda92e66dbce9110f.zip
enhance(frontend): improve usability on touch device
Diffstat (limited to 'packages/frontend/src/style.scss')
-rw-r--r--packages/frontend/src/style.scss17
1 files changed, 17 insertions, 0 deletions
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;