Horizontal toolbox layout and option to enable it.

This commit is contained in:
Rachel Fenichel 2016-01-26 12:35:50 -08:00
parent dc1f03a168
commit 1672e28f12
3 changed files with 99 additions and 22 deletions
core

View file

@ -423,6 +423,16 @@ Blockly.Css.CONTENT = [
'white-space: nowrap;',
'}',
'.blocklyHorizontalTree {',
'float: left;',
'margin: 1px 5px 8px 0px;',
'}',
'.blocklyHorizontalTreeRtl {',
'float: right;',
'margin: 1px 5px 0px 8px;',
'}',
'.blocklyToolboxDiv[dir="RTL"] .blocklyTreeRow {',
'margin-left: 8px;',
'}',
@ -437,6 +447,13 @@ Blockly.Css.CONTENT = [
'margin: 5px 0;',
'}',
'.blocklyTreeSeparatorHorizontal {',
'border-right: solid #e5e5e5 1px;',
'width: 0px;',
'padding: 5px 0;',
'margin: 0 5px;',
'}',
'.blocklyTreeIcon {',
'background-image: url(<<<PATH>>>/sprites.png);',
'height: 16px;',