diff options
author | Jakob Stendahl <jakobste@uio.no> | 2021-01-11 19:49:01 +0100 |
---|---|---|
committer | Jakob Stendahl <jakobste@uio.no> | 2021-01-11 19:49:01 +0100 |
commit | cee3d11da77a1754768fcbd58cca2b61874bcef8 (patch) | |
tree | b1f98d5293b0db106cd1005e455a3d64501fadd2 /styles.css | |
parent | c852786742f7d9e9fc0ca1109c0fddba4f3e80df (diff) | |
download | hoverbit-ble-cee3d11da77a1754768fcbd58cca2b61874bcef8.tar.gz hoverbit-ble-cee3d11da77a1754768fcbd58cca2b61874bcef8.zip |
:sparkles: Make first version of interface
Diffstat (limited to 'styles.css')
-rw-r--r-- | styles.css | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..bff4d94 --- /dev/null +++ b/styles.css @@ -0,0 +1,123 @@ +html, body { + margin: 0; + padding: 0; + /* width: 100%; + height: 100%; */ + font-family: monospace; + overflow: hidden; +} + +body { + margin: 10px; +} + +.info h1 { + margin: 0; +} + +.info-device { + margin: 0; + display: flex; + align-items: center; +} + +.info-device i { + font-size: 15px; +} + +.connection { + display: flex; + align-items: center; + color: #c32222; +} + +.connected .connection { + color: #008000; +} + +.connection-status { + text-transform: uppercase; +} + +.battery { + display: none; + margin-left: 5px; + /* display: flex; */ + align-items: center; + color: #4a4a4a; +} + +.connected .battery { + display: flex; +} + +.arm { + display: none; + margin-left: 5px; + /* display: flex; */ + align-items: center; + color: #c32222; +} + +.connected .arm { + display: flex; +} + +.arm.armed { + color: #008000; +} + +.options { + position: absolute; + display: flex; + bottom: 60px; + right: 60px; + flex-direction:column-reverse; +} + +.options button { + margin-top: 5px; + border: 1px solid black; + background-color: #b5b5b5; + padding: 5px; +} + +.throttle { + position: absolute; + top: 10px; + right: 10px; + width: 40px; + height: calc(100% - 70px); + + margin: 0; + + background-color: #b5b5b5; + border: 1px solid black; +} + +.throttle-thumb { + width: 40px; + height: 1%; + position: absolute; + bottom: 0; + background-color: green; +} + +.rudder { + position: absolute; + bottom: 10px; + left: 10px; + width: calc(100% - 70px); + height: 40px; + margin: 0; + background-color: #b5b5b5; + border: 1px solid black; +} + +.rudder-thumb { + position: absolute; + bottom: 0; + left: 50%; + height: 40px; + background-color: yellow; +} |