From eb796b71de8b825b724cca6617a04e88f029c5ee Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 13 Nov 2017 12:42:56 -0800 Subject: [PATCH] Prevent selection of toolbox categories. --- core/css.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/css.js b/core/css.js index f81fd4dd5..d5074b0e3 100644 --- a/core/css.js +++ b/core/css.js @@ -136,8 +136,8 @@ Blockly.Css.CONTENT = [ '.blocklyNonSelectable {', 'user-select: none;', '-moz-user-select: none;', - '-webkit-user-select: none;', '-ms-user-select: none;', + '-webkit-user-select: none;', '}', '.blocklyWsDragSurface {', @@ -172,7 +172,7 @@ Blockly.Css.CONTENT = [ 'display: none;', 'font-family: sans-serif;', 'font-size: 9pt;', - 'opacity: 0.9;', + 'opacity: .9;', 'padding: 2px;', 'position: absolute;', 'z-index: 100000;', /* big value for bootstrap3 compatibility */ @@ -219,7 +219,6 @@ Blockly.Css.CONTENT = [ 'cursor: url("<<>>/handopen.cur"), auto;', 'cursor: grab;', 'cursor: -webkit-grab;', - 'cursor: -moz-grab;', '}', '.blocklyDragging {', @@ -227,7 +226,6 @@ Blockly.Css.CONTENT = [ 'cursor: url("<<>>/handclosed.cur"), auto;', 'cursor: grabbing;', 'cursor: -webkit-grabbing;', - 'cursor: -moz-grabbing;', '}', /* Changes cursor on mouse down. Not effective in Firefox because of https://bugzilla.mozilla.org/show_bug.cgi?id=771241 */ @@ -236,7 +234,6 @@ Blockly.Css.CONTENT = [ 'cursor: url("<<>>/handclosed.cur"), auto;', 'cursor: grabbing;', 'cursor: -webkit-grabbing;', - 'cursor: -moz-grabbing;', '}', /* Change the cursor on the whole drag surface in case the mouse gets ahead of block during a drag. This way the cursor is still a closed hand. @@ -246,7 +243,6 @@ Blockly.Css.CONTENT = [ 'cursor: url("<<>>/handclosed.cur"), auto;', 'cursor: grabbing;', 'cursor: -webkit-grabbing;', - 'cursor: -moz-grabbing;', '}', '.blocklyDragging.blocklyDraggingDelete {', @@ -344,6 +340,7 @@ Blockly.Css.CONTENT = [ '.blocklySvg text, .blocklyBlockDragSurface text {', 'user-select: none;', '-moz-user-select: none;', + '-ms-user-select: none;', '-webkit-user-select: none;', 'cursor: inherit;', '}', @@ -516,6 +513,10 @@ Blockly.Css.CONTENT = [ 'overflow-x: visible;', 'overflow-y: auto;', 'position: absolute;', + 'user-select: none;', + '-moz-user-select: none;', + '-ms-user-select: none;', + '-webkit-user-select: none;', 'z-index: 70;', /* so blocks go under toolbox when dragging */ '-webkit-tap-highlight-color: transparent;', /* issue #1345 */ '}', @@ -580,7 +581,7 @@ Blockly.Css.CONTENT = [ '}', '.blocklyTreeIconClosedRtl {', - 'background-position: 0px -1px;', + 'background-position: 0 -1px;', '}', '.blocklyTreeIconOpen {', @@ -592,7 +593,7 @@ Blockly.Css.CONTENT = [ '}', '.blocklyTreeSelected>.blocklyTreeIconClosedRtl {', - 'background-position: 0px -17px;', + 'background-position: 0 -17px;', '}', '.blocklyTreeSelected>.blocklyTreeIconOpen {', @@ -776,7 +777,6 @@ Blockly.Css.CONTENT = [ '.blocklyWidgetDiv .goog-menuitem-disabled .goog-menuitem-icon {', 'opacity: 0.3;', - '-moz-opacity: 0.3;', 'filter: alpha(opacity=30);', '}',