mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-10 21:18:53 -04:00
Draw text fields entirely using CSS during edit
This commit is contained in:
parent
e413d47f4d
commit
154d4e1851
2 changed files with 43 additions and 20 deletions
core
12
core/css.js
12
core/css.js
|
@ -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 {',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue