From b4d19e469b3de98778002ac97814c6b647cba113 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Nov 2014 14:47:43 -0500 Subject: better chara input --- css/sally.css | 10 +++++++--- index.html | 4 +++- js/app.js | 28 +++++++++++++++++++++++----- js/lex.js | 28 +++++++++++++++------------- js/matrix.js | 4 ++-- js/shader.js | 20 ++++++++++++++++++-- js/tool.js | 1 + 7 files changed, 69 insertions(+), 26 deletions(-) diff --git a/css/sally.css b/css/sally.css index e5b5ed7..238fdab 100644 --- a/css/sally.css +++ b/css/sally.css @@ -1,6 +1,5 @@ -body { +textarea,input[type=text],body { margin:0; - background-color: #000000 !important; font-family: 'FixedsysExcelsior301Regular'; font-size: 12pt; font-weight: 100; @@ -8,7 +7,9 @@ body { color:#6d6b6d; -webkit-font-smoothing: antialiased !important; } - +body { + background-color: #000000 !important; +} @font-face { font-family: 'FixedsysExcelsior301Regular'; src: url('../fonts/fsex300-webfont.eot'); @@ -31,6 +32,9 @@ a:link, a:visited {text-decoration: none; color: #3b3740} width:auto; padding:4px; background-color: #000000; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; } .rapper { white-space:pre-wrap; diff --git a/index.html b/index.html index 3a6d1a7..79740fe 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,8 @@ body.grid div { border-top: 1px solid #444; border-left: 1px solid #444; } body.loading { opacity: 0; } body { transition: 0.1s linear; } body.grid .focused { box-shadow: inset 0 0 2px white, inset 0 0 2px white, inset 0 0 2px white; } -#shader_textarea { display: none; width: 400px; height: 400px; background: #333; color: #0f0; border: 0; font-family: 'FixedsysExcelsior301Regular'; } +#shader_textarea { display: none; float: right; font-size:12pt; width: 45%; height: 400px; background: #333; color: #0f0; border: 0; font-family: 'FixedsysExcelsior301Regular'; outline: 0; border: 1px solid #333; background:#010;} +#cursor_input { position: absolute; top: 0; right: 0; width:30px; } @@ -35,6 +36,7 @@ body.grid .focused { box-shadow: inset 0 0 2px white, inset 0 0 2px white, inset +