mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
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.
This commit is contained in:
@@ -20,8 +20,4 @@
|
|||||||
margin: 0 !important
|
margin: 0 !important
|
||||||
|
|
||||||
.is-unselectable
|
.is-unselectable
|
||||||
-webkit-touch-callout: none
|
+unselectable
|
||||||
-webkit-user-select: none
|
|
||||||
-moz-user-select: none
|
|
||||||
-ms-user-select: none
|
|
||||||
user-select: none
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
.button
|
.button
|
||||||
+control
|
+control
|
||||||
|
+unselectable
|
||||||
padding: 3px 10px
|
padding: 3px 10px
|
||||||
text-align: center
|
text-align: center
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
|||||||
@@ -55,6 +55,13 @@
|
|||||||
text-indent: -290486px
|
text-indent: -290486px
|
||||||
width: $width
|
width: $width
|
||||||
|
|
||||||
|
=unselectable
|
||||||
|
-webkit-touch-callout: none
|
||||||
|
-webkit-user-select: none
|
||||||
|
-moz-user-select: none
|
||||||
|
-ms-user-select: none
|
||||||
|
user-select: none
|
||||||
|
|
||||||
$tablet: 769px
|
$tablet: 769px
|
||||||
$desktop: 980px
|
$desktop: 980px
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user