From 79bb6780df2513f0245bf81683645e27637ffc19 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Thu, 19 Jun 2014 14:32:52 -0700 Subject: [PATCH] get rid of focus box, make input focus any time terminal is clicked --- planetstack/core/static/shell/opencloud_shell.css | 7 +++++-- planetstack/core/static/shell/opencloud_shell.js | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/planetstack/core/static/shell/opencloud_shell.css b/planetstack/core/static/shell/opencloud_shell.css index f535cd0..97df0a2 100644 --- a/planetstack/core/static/shell/opencloud_shell.css +++ b/planetstack/core/static/shell/opencloud_shell.css @@ -15,8 +15,7 @@ #terminal input { width: 875px; margin: 1px 0 1px 10px; - border: 1px dotted; - border-color:#808080; + border: none; display: inline; padding: 2px; background: black; @@ -26,6 +25,10 @@ border-radius:0; } +#terminal input:focus { + box-shadow:none; +} + #terminal p { margin: 2px; color: #45FF17; diff --git a/planetstack/core/static/shell/opencloud_shell.js b/planetstack/core/static/shell/opencloud_shell.js index d57d475..ab5a355 100644 --- a/planetstack/core/static/shell/opencloud_shell.js +++ b/planetstack/core/static/shell/opencloud_shell.js @@ -338,6 +338,8 @@ function startTerminal() { $("#terminal_help1").show(); $("#terminal_help2").show(); $("#terminal_wait").hide(); + + $("#terminal").bind('click', function() { $(".readLine.active").focus(); }); }; $(document).ready(function() { -- 2.43.0