From fd718c1a421b9f0e447ae9c48eedb194a50f9c72 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Fri, 31 Mar 2023 09:28:22 +1100 Subject: [PATCH] FIX: use unselectable mixin in sidebar drag and drop (#20886) https://github.com/discourse/discourse/blob/7dcaaec90cca3bd8fd5cbe521813d918ea471aaf/app/assets/stylesheets/common/foundation/mixins.scss#L122 --- .../stylesheets/common/base/sidebar-custom-section.scss | 6 +----- app/assets/stylesheets/common/base/sidebar.scss | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/common/base/sidebar-custom-section.scss b/app/assets/stylesheets/common/base/sidebar-custom-section.scss index 3aebcc91251..da82818f80b 100644 --- a/app/assets/stylesheets/common/base/sidebar-custom-section.scss +++ b/app/assets/stylesheets/common/base/sidebar-custom-section.scss @@ -20,11 +20,7 @@ a { -webkit-touch-callout: none !important; - -webkit-user-select: none !important; - -moz-user-select: none !important; - -ms-user-select: none !important; - -o-user-select: none !important; - user-select: none; + @include unselectable; } .sidebar-section-wrapper.disabled { diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scss index 57d4942efd0..a7a40195f08 100644 --- a/app/assets/stylesheets/common/base/sidebar.scss +++ b/app/assets/stylesheets/common/base/sidebar.scss @@ -29,12 +29,7 @@ position: sticky; top: var(--header-offset); - -webkit-touch-callout: none !important; - -webkit-user-select: none !important; - -moz-user-select: none !important; - -ms-user-select: none !important; - -o-user-select: none !important; - user-select: none; + @include unselectable; .footer-nav-ipad & { top: calc(var(--header-offset) + var(--footer-nav-height));