diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-02-02 11:38:58 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-02-02 11:38:58 +0100 |
commit | 33df6fc26e63d4e6f0129553ebd30ef9686be39f (patch) | |
tree | 207fc92b449916cb6ed7fdd7f650cd57dd0f2a93 /styles.css | |
parent | 8ade112da0a06c1c114e11746551c76a2c146dc0 (diff) | |
download | hoverbit-ble-33df6fc26e63d4e6f0129553ebd30ef9686be39f.tar.gz hoverbit-ble-33df6fc26e63d4e6f0129553ebd30ef9686be39f.zip |
Modularize a bit
Diffstat (limited to 'styles.css')
-rw-r--r-- | styles.css | 94 |
1 files changed, 89 insertions, 5 deletions
@@ -5,6 +5,7 @@ html, body { height: 100%; */ font-family: monospace; overflow: hidden; + font-family: 'Kufam', cursive; } body { @@ -22,15 +23,25 @@ body { } .info-device i { - font-size: 15px; + font-size: 18px; } .connection { display: flex; - align-items: center; + align-items: flex-start; color: #c32222; } +.connection:after { + display: block; + content: "DISCONNECTED"; +} + +.connected .connection:after { + display: block; + content: "CONNECTED"; +} + .connected .connection { color: #008000; } @@ -43,7 +54,7 @@ body { display: none; margin-left: 5px; /* display: flex; */ - align-items: center; + align-items: start; color: #4a4a4a; } @@ -55,15 +66,25 @@ body { display: none; margin-left: 5px; /* display: flex; */ - align-items: center; + align-items: start; color: #c32222; } +.arm:after { + content: 'DISARMED'; + display: block; +} + +.armed .arm:after { + content: 'ARMED'; + display: block; +} + .connected .arm { display: flex; } -.arm.armed { +.armed .arm { color: #008000; } @@ -98,6 +119,7 @@ body { } .options button { + display: none; margin-top: 5px; border: 1px solid black; background-color: #b5b5b5; @@ -105,6 +127,16 @@ body { width: 120px; } +.armed .options button { + display: block; +} + +#btn_connect { display: block; } +.connected #btn_connect { display: none; } +.connected #btn_disconnect { display: block; } +.connected #btn_arm { display: block; } +.armed #btn_arm { display: none; } + .throttle { position: absolute; top: 10px; @@ -126,6 +158,32 @@ body { background-color: green; } +.throttle-indicator { + position: absolute; + width: 40px; + height: 0px; + bottom: 0; + /* border: 4px solid black; */ +} + +.throttle-indicator:before { + content: " "; + background-color: black; + width: 20px; + height: 1px; + position: absolute; + left: 0; +} + +.throttle-indicator:after { + content: " "; + background-color: black; + width: 20px; + height: 1px; + position: absolute; + right: 0; +} + .rudder { position: absolute; bottom: 10px; @@ -148,3 +206,29 @@ body { height: 40px; background-color: yellow; } + +.rudder-indicator { + position: absolute; + width: 0px; + height: 40px; + left: 50%; + bottom: 0; +} + +.rudder-indicator:before { + content: " "; + background-color: black; + width: 1px; + height: 20px; + position: absolute; + top: 0; +} + +.rudder-indicator:after { + content: " "; + background-color: black; + width: 1px; + height: 20px; + position: absolute; + bottom: 0; +} |