Commit 774a76f2 authored by Neil Fraser's avatar Neil Fraser

Allowing manual code editing in Block Factory.

parent 345b0cb6
This diff is collapsed.
...@@ -38,15 +38,29 @@ ...@@ -38,15 +38,29 @@
#blockly { #blockly {
position: fixed; position: fixed;
} }
#blocklyMask {
background-color: #000;
cursor: not-allowed;
display: none;
position: fixed;
opacity: 0.2;
z-index: 9;
}
#preview { #preview {
position: absolute; position: absolute;
} }
pre { pre,
#languageTA {
border: #ddd 1px solid;
margin-top: 0; margin-top: 0;
position: absolute; position: absolute;
border: #ddd 1px solid;
overflow: scroll; overflow: scroll;
} }
#languageTA {
display: none;
font-family: monospace;
font-size: 10pt;
}
button { button {
border-radius: 4px; border-radius: 4px;
...@@ -57,14 +71,17 @@ ...@@ -57,14 +71,17 @@
margin: 0 5px; margin: 0 5px;
font-size: large; font-size: large;
} }
button:hover { button:hover:not(:disabled) {
box-shadow: 2px 2px 5px #888; box-shadow: 2px 2px 5px #888;
} }
button:disabled {
opacity: 0.6;
}
button>* { button>* {
opacity: 0.6; opacity: 0.6;
vertical-align: text-bottom; vertical-align: text-bottom;
} }
button:hover>* { button:hover:not(:disabled)>* {
opacity: 1; opacity: 1;
} }
#linkButton { #linkButton {
...@@ -110,6 +127,7 @@ ...@@ -110,6 +127,7 @@
<tr> <tr>
<td width="50%" height="95%" style="padding: 2px;"> <td width="50%" height="95%" style="padding: 2px;">
<div id="blockly"></div> <div id="blockly"></div>
<div id="blocklyMask"></div>
</td> </td>
<td width="50%" height="95%"> <td width="50%" height="95%">
<table> <table>
...@@ -124,6 +142,7 @@ ...@@ -124,6 +142,7 @@
<select id="format"> <select id="format">
<option value="JavaScript">JavaScript</option> <option value="JavaScript">JavaScript</option>
<option value="JSON">JSON</option> <option value="JSON">JSON</option>
<option value="Manual">Manual edit...</option>
</select> </select>
</h3> </h3>
</td> </td>
...@@ -131,6 +150,7 @@ ...@@ -131,6 +150,7 @@
<tr> <tr>
<td height="30%"> <td height="30%">
<pre id="languagePre"></pre> <pre id="languagePre"></pre>
<textarea id="languageTA"></textarea>
</td> </td>
</tr> </tr>
<tr> <tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment