From 4791b7e59e4965854cb33d03f11736a6aabc4faa Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 2 Jan 2018 09:46:05 -0500 Subject: [PATCH] Add cmd buttons and styles. Add delay before registering devices when no serial devices are found. --- app/css/app.css | 31 +++++++++++++++++++++++++++++++ app/index.html | 31 ++++++++++++++++++------------- app/less/app.less | 1 - app/less/cmd.less | 34 ++++++++++++++++++++++++++++++++++ app/main.js | 4 +++- 5 files changed, 86 insertions(+), 15 deletions(-) diff --git a/app/css/app.css b/app/css/app.css index a5f4cfa..a9762b0 100644 --- a/app/css/app.css +++ b/app/css/app.css @@ -538,6 +538,37 @@ button:focus { background: black; color: #fff; } +#buttons > div { + width: 50%; + float: left; +} +.cmd { + width: 200px; + text-align: center; +} +.cmd i { + float: left; +} +.cmd.fwd i { + color: #00C4A0; +} +.cmd.bwd i { + color: #AB1A25; +} +.cmd:active.fwd, +.cmd .active.fwd { + background: #00C4A0; + border-color: #00C4A0; +} +.cmd:active.bwd, +.cmd .active.bwd { + background: #AB1A25; + border-color: #AB1A25; +} +.cmd:active i, +.cmd .active i { + color: #272b30; +} #log { position: fixed; width: 100%; diff --git a/app/index.html b/app/index.html index a9676a3..9ada48c 100644 --- a/app/index.html +++ b/app/index.html @@ -83,22 +83,27 @@
- +
+ +
+
+ +
+
+ +
+
+ +
- -
- +
+ +
+
+ +
-
- -
-
-
- -
-
-