From 73df9c23285030d1d1c2d7dc22fbb637f505f90d Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Mon, 10 Jun 2024 13:24:59 -0700 Subject: [PATCH] updated css for mobile device --- src/frontend/index.css | 19 ++++++++++++++----- src/frontend/index.html | 14 +++++++------- src/index.h | 33 +++++++++++++++++++++------------ 3 files changed, 42 insertions(+), 24 deletions(-) diff --git a/src/frontend/index.css b/src/frontend/index.css index 5d666e6..f502912 100644 --- a/src/frontend/index.css +++ b/src/frontend/index.css @@ -9,7 +9,7 @@ body { width: 100vw; height: 100vh; margin: 0; - background-color: rgb(50, 50, 50); + background-color: rgb(60, 60, 60); overflow: hidden; } h2 { @@ -616,7 +616,7 @@ input:checked + .toggle-cbx::before { width: 91%; } .form-btn { - padding-top: 1.8%; + padding: 1.2% 0 0 0; font-size: 1em; color: rgb(67, 142, 255); background-color: rgba(255, 255, 255, 0); @@ -651,12 +651,13 @@ input:checked + .toggle-cbx::before { } input[type="number"], input[type="text"] { position: absolute; - top: 17%; - left: 38.5%; - width: 55%; + top: 12%; + left: 41%; + width: 52%; height: 70%; padding-left: 1px; border: none; + font-family: verdana, serif; font-size: 1.1em; color: white; background-color: rgba(0, 0, 0, 0); @@ -684,4 +685,12 @@ textarea:focus, input[type="number"]:focus, input[type="text"]:focus { } .border { border: 1px solid rgba(255, 255, 255, 0.3); +} + + + +@media (max-width: 500px) { + input[type="number"], input[type="text"] { + top: 6%; + } } \ No newline at end of file diff --git a/src/frontend/index.html b/src/frontend/index.html index 7df0dd5..d5b3739 100644 --- a/src/frontend/index.html +++ b/src/frontend/index.html @@ -94,21 +94,21 @@

Sync Settings

-
+

Current (mA)

75

200

-
+

Velocity (Hz)

3.0

3.0

-
+

Acceleration (Hz/s)

0.5

0.5

@@ -126,13 +126,13 @@

Direction

-