]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Prevent `.buttons` being part of a user selection. 30/head
authorBrendan Moore <brendannigelmoore@googlemail.com>
Sun, 31 Jan 2016 21:08:05 +0000 (21:08 +0000)
committerBrendan Moore <brendannigelmoore@googlemail.com>
Mon, 1 Feb 2016 14:23:12 +0000 (14:23 +0000)
It is possible to select the text of a button, especially with a double click, this is ugly IMO.

bulma/base/helpers.sass
bulma/elements/buttons.sass
bulma/utilities/mixins.sass

index 1cc0b7043e86d5bdbdabc1ae209ea1f8f3d790e9..3ccf976c7255dcb5a07be57a9d03d81100ebee77 100644 (file)
@@ -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
index 3dddbb15782622461c88ca6f569c9767bd5af858..a189add98220cf0a22979a1912363a93a2ab4587 100644 (file)
@@ -15,6 +15,7 @@
 
 .button
   +control
+  +unselectable
   padding: 3px 10px
   text-align: center
   white-space: nowrap
index 8782b07607017ec65d057590f9d2361fad79f47e..4af4899b72919e63115a10eb0a55d9bb1292cae2 100644 (file)
   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