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 @@
#blockly {
position: fixed;
}
#blocklyMask {
background-color: #000;
cursor: not-allowed;
display: none;
position: fixed;
opacity: 0.2;
z-index: 9;
}
#preview {
position: absolute;
}
pre {
pre,
#languageTA {
border: #ddd 1px solid;
margin-top: 0;
position: absolute;
border: #ddd 1px solid;
overflow: scroll;
}
#languageTA {
display: none;
font-family: monospace;
font-size: 10pt;
}
button {
border-radius: 4px;
......@@ -57,14 +71,17 @@
margin: 0 5px;
font-size: large;
}
button:hover {
button:hover:not(:disabled) {
box-shadow: 2px 2px 5px #888;
}
button:disabled {
opacity: 0.6;
}
button>* {
opacity: 0.6;
vertical-align: text-bottom;
}
button:hover>* {
button:hover:not(:disabled)>* {
opacity: 1;
}
#linkButton {
......@@ -110,6 +127,7 @@
<tr>
<td width="50%" height="95%" style="padding: 2px;">
<div id="blockly"></div>
<div id="blocklyMask"></div>
</td>
<td width="50%" height="95%">
<table>
......@@ -124,6 +142,7 @@
<select id="format">
<option value="JavaScript">JavaScript</option>
<option value="JSON">JSON</option>
<option value="Manual">Manual edit...</option>
</select>
</h3>
</td>
......@@ -131,6 +150,7 @@
<tr>
<td height="30%">
<pre id="languagePre"></pre>
<textarea id="languageTA"></textarea>
</td>
</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