Prevent selection of toolbox categories.

This commit is contained in:
Neil Fraser
2017-11-13 12:42:56 -08:00
committed by Neil Fraser
parent 383d133c1e
commit eb796b71de

View File

@@ -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("<<<PATH>>>/handopen.cur"), auto;',
'cursor: grab;',
'cursor: -webkit-grab;',
'cursor: -moz-grab;',
'}',
'.blocklyDragging {',
@@ -227,7 +226,6 @@ Blockly.Css.CONTENT = [
'cursor: url("<<<PATH>>>/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("<<<PATH>>>/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("<<<PATH>>>/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);',
'}',