diff --git a/css/editable-js.css b/css/editable-js.css index a295eeeb5..5640da996 100644 --- a/css/editable-js.css +++ b/css/editable-js.css @@ -8,20 +8,6 @@ body { margin: 0; } -#buttons { - margin: .5em; -} - -.output-container { - background-color: #fff; - padding: .8em 1em 1em; - width: 100%; - height: 40px; - font-family: courier; - box-shadow: 0 2px 5px -2px rgba(0, 0, 0, .1); - line-height: 1; -} - #editor, #output { font-size: 14px; @@ -50,8 +36,30 @@ body { display: none; } -#output { +.output { + display: inline-block; + background: #fff url('../media/output-arrow.png') -5px -6px no-repeat; margin: 0; + padding: .8em 1em 1em 50px; + border: 1px solid #e0e0e0; + border-left: 0; + width: 92%; + height: 40px; + font-family: courier; + line-height: 1; + vertical-align: bottom; +} + +.run { + display: inline-block; + background-color: #fff; + margin: 0; + padding: .8em 1em 1em; + border: 1px solid #e0e0e0; + font-size: .9em; + width: 7%; + height: 40px; + cursor: pointer; } .fade-in { diff --git a/media/output-arrow.png b/media/output-arrow.png new file mode 100644 index 000000000..da945f1f6 Binary files /dev/null and b/media/output-arrow.png differ diff --git a/package.json b/package.json index 59df5e2f8..6cfa69621 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "node index.js", - "start": "http-server ./docs" + "start-server": "http-server ./docs", + "start-watch": "chokidar '?(**/*.js|**/*.css|**/*.html)' '!(docs|node_modules)' -c 'npm run build' --initial", + "start": "npm-run-all --parallel start-watch start-server" }, "keywords": [ "javascript", @@ -27,10 +29,12 @@ "mozilla" ], "devDependencies": { + "chokidar-cli": "^1.2.0", "concat": "^1.0.3", "fs-extra": "^3.0.1", "http-server": "^0.10.0", "node-dir": "^0.1.16", + "npm-run-all": "^4.0.2", "uglify-es": "^3.0.3" } } diff --git a/tmpl/live-js-tmpl.html b/tmpl/live-js-tmpl.html index fba5750b5..bd993c7f1 100644 --- a/tmpl/live-js-tmpl.html +++ b/tmpl/live-js-tmpl.html @@ -11,11 +11,8 @@ -
- -
-
+