From a54e314841e900d341b8c49e68c787f34b7455ea Mon Sep 17 00:00:00 2001 From: Brian Peiris <brianpeiris@gmail.com> Date: Wed, 25 Apr 2018 02:22:47 -0700 Subject: [PATCH] disable user selection on several ui elements --- src/assets/stylesheets/2d-hud.scss | 1 + src/assets/stylesheets/footer.scss | 1 + src/assets/stylesheets/hub.scss | 4 ++++ src/assets/stylesheets/ui-root.scss | 3 ++- src/components/stats-plus.css | 2 ++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/assets/stylesheets/2d-hud.scss b/src/assets/stylesheets/2d-hud.scss index 0d63efc58..263569b58 100644 --- a/src/assets/stylesheets/2d-hud.scss +++ b/src/assets/stylesheets/2d-hud.scss @@ -6,6 +6,7 @@ align-items: center; height: 80px; width: 100%; + user-select: none; } :local(.panel) { diff --git a/src/assets/stylesheets/footer.scss b/src/assets/stylesheets/footer.scss index 5f782fd03..ee9439da0 100644 --- a/src/assets/stylesheets/footer.scss +++ b/src/assets/stylesheets/footer.scss @@ -9,6 +9,7 @@ flex-direction: column; // Position above virtual gamepad controls on mobile z-index: 1; + user-select: none; @media (min-width: 769px) and (min-height: 421px) { pointer-events: auto; diff --git a/src/assets/stylesheets/hub.scss b/src/assets/stylesheets/hub.scss index b7d6a928c..dd69bc88a 100644 --- a/src/assets/stylesheets/hub.scss +++ b/src/assets/stylesheets/hub.scss @@ -19,3 +19,7 @@ .a-canvas.a-grab-cursor:active { cursor: none; } + +.webxr-realities, .webxr-sessions { + user-select: none; +} diff --git a/src/assets/stylesheets/ui-root.scss b/src/assets/stylesheets/ui-root.scss index 1cadcc233..78eead910 100644 --- a/src/assets/stylesheets/ui-root.scss +++ b/src/assets/stylesheets/ui-root.scss @@ -1,4 +1,4 @@ -.ui { +#ui-root .ui { @extend %default-font; width: 100%; @@ -20,6 +20,7 @@ grid-template-rows: 1fr 20px minmax(200px, 600px) 20px 1fr; width: 100%; height: 100%; + user-select: none; &--darkened { background-color: $dark-transparent; diff --git a/src/components/stats-plus.css b/src/components/stats-plus.css index 9fc5a1908..e7e2854fb 100644 --- a/src/components/stats-plus.css +++ b/src/components/stats-plus.css @@ -19,10 +19,12 @@ padding: 8px 12px; color: #aaa; font-size: 10px; + user-select: none; } :global(.rs-base) { right: 10px; left: auto; top: 10px; + user-select: none; } -- GitLab