From dfe7ecd4401985c663d24c1371dc3f2bc96becdd Mon Sep 17 00:00:00 2001 From: Brendan Moore Date: Sun, 31 Jan 2016 21:08:05 +0000 Subject: [PATCH] Prevent `.buttons` being part of a user selection. It is possible to select the text of a button, especially with a double click, this is ugly IMO. --- bulma/base/helpers.sass | 6 +----- bulma/elements/buttons.sass | 1 + bulma/utilities/mixins.sass | 7 +++++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bulma/base/helpers.sass b/bulma/base/helpers.sass index 1cc0b704..3ccf976c 100644 --- a/bulma/base/helpers.sass +++ b/bulma/base/helpers.sass @@ -20,8 +20,4 @@ margin: 0 !important .is-unselectable - -webkit-touch-callout: none - -webkit-user-select: none - -moz-user-select: none - -ms-user-select: none - user-select: none + +unselectable diff --git a/bulma/elements/buttons.sass b/bulma/elements/buttons.sass index 3dddbb15..a189add9 100644 --- a/bulma/elements/buttons.sass +++ b/bulma/elements/buttons.sass @@ -15,6 +15,7 @@ .button +control + +unselectable padding: 3px 10px text-align: center white-space: nowrap diff --git a/bulma/utilities/mixins.sass b/bulma/utilities/mixins.sass index 8782b076..4af4899b 100644 --- a/bulma/utilities/mixins.sass +++ b/bulma/utilities/mixins.sass @@ -55,6 +55,13 @@ text-indent: -290486px width: $width +=unselectable + -webkit-touch-callout: none + -webkit-user-select: none + -moz-user-select: none + -ms-user-select: none + user-select: none + $tablet: 769px $desktop: 980px