Draw text fields entirely using CSS during edit

This commit is contained in:
Tim Mickel 2016-04-05 18:36:02 -04:00
parent e413d47f4d
commit 154d4e1851
2 changed files with 43 additions and 20 deletions
core

View file

@ -143,6 +143,13 @@ Blockly.Css.CONTENT = [
'display: none;',
'position: absolute;',
'z-index: 999;',
'overflow: hidden;',
'border: 1px solid;',
'box-sizing: border-box;',
'transform-origin: 0 0;',
'-ms-transform-origin: 0 0;',
'-moz-transform-origin: 0 0;',
'-webkit-transform-origin: 0 0;',
'}',
'.blocklyNonSelectable {',
@ -288,14 +295,13 @@ Blockly.Css.CONTENT = [
'.blocklyHtmlInput {',
'border: none;',
'border-radius: 4px;',
'font-family: sans-serif;',
'height: 100%;',
'margin: 0;',
'outline: none;',
'padding: 0 1px;',
'padding: 2px 0px;',
'width: 100%;',
'text-align: center',
'text-align: center;',
'}',
'.blocklyMainBackground {',