style.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. /* General Styling */
  2. body {
  3. font-family: 'Roboto', sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. background-color: #f4f4f9;
  7. color: #333;
  8. }
  9. body * {
  10. box-sizing: border-box;
  11. }
  12. h1 {
  13. text-align: center;
  14. color: #4A90E2;
  15. margin: 20px 0;
  16. }
  17. h2 {
  18. color: #4A90E2;
  19. margin: 10px 0;
  20. }
  21. /* Container Layout */
  22. .container {
  23. display: flex;
  24. flex-wrap: wrap;
  25. justify-content: space-between;
  26. gap: 20px;
  27. width: 90%;
  28. max-width: 1200px;
  29. margin: 0 auto;
  30. }
  31. /* Columns */
  32. .left-column {
  33. flex: 1;
  34. min-width: 300px;
  35. }
  36. .right-column {
  37. flex: 1;
  38. min-width: 300px;
  39. }
  40. /* Sections */
  41. .section {
  42. background: #fff;
  43. border: 1px solid #ddd;
  44. border-radius: 8px;
  45. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  46. padding: 20px;
  47. margin-bottom: 20px;
  48. }
  49. /* Buttons Inline */
  50. .button-group {
  51. display: flex;
  52. flex-wrap: wrap;
  53. gap: 10px;
  54. padding: 10px 15px;
  55. }
  56. .button-group label {
  57. align-content: center;
  58. }
  59. button {
  60. background: #4A90E2;
  61. color: #fff;
  62. cursor: pointer;
  63. padding: 10px 15px;
  64. font-size: 1em;
  65. border: 1px solid #ddd;
  66. border-radius: 5px;
  67. outline: none;
  68. transition: all 0.3s ease;
  69. }
  70. button:hover {
  71. background: #357ABD;
  72. }
  73. .small-button {
  74. font-size: 0.8rem;
  75. }
  76. /* Delete Button */
  77. .delete-button {
  78. background: #e74c3c; /* Red color */
  79. color: #fff;
  80. cursor: pointer;
  81. border: none;
  82. padding: 10px 15px;
  83. border-radius: 5px;
  84. font-size: 1em;
  85. transition: all 0.3s ease;
  86. }
  87. .delete-button:hover {
  88. background: #c0392b; /* Darker red on hover */
  89. }
  90. select, input[type="file"] {
  91. display: block;
  92. width: 100%;
  93. max-width: 300px;
  94. padding: 10px;
  95. margin: 10px 0;
  96. font-size: 1em;
  97. border: 1px solid #ddd;
  98. border-radius: 5px;
  99. outline: none;
  100. }
  101. /* File List */
  102. ul {
  103. list-style: none;
  104. padding: 0;
  105. margin: 0;
  106. }
  107. li {
  108. padding: 10px;
  109. border-bottom: 1px solid #ddd;
  110. cursor: pointer;
  111. transition: all 0.3s ease;
  112. }
  113. li:hover {
  114. background: #f1f1f1;
  115. }
  116. li.selected {
  117. background: #4A90E2;
  118. color: white;
  119. font-weight: bold;
  120. padding: 5px;
  121. border-radius: 5px;
  122. }
  123. /* Status Log */
  124. #status_log {
  125. display: none;
  126. background: #000;
  127. font-family: monospace;
  128. border-top: 1px solid #ddd;
  129. padding: 10px;
  130. max-height: 150px;
  131. overflow-y: scroll; /* Use scroll explicitly */
  132. box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  133. -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on mobile */
  134. touch-action: auto; /* Ensures touch gestures are handled properly */
  135. width: 100%;
  136. }
  137. #status_log p {
  138. margin: 0;
  139. font-size: 0.9em;
  140. color: #ddd;
  141. }
  142. #theta_rho_files {
  143. max-height: 507px;
  144. overflow-y: auto;
  145. border: 1px solid #ddd;
  146. border-radius: 5px;
  147. background-color: #fff;
  148. padding: 10px;
  149. }
  150. /* Search Bar */
  151. #search_pattern {
  152. display: block;
  153. width: 100%;
  154. max-width: 300px;
  155. padding: 10px;
  156. margin: 10px 0;
  157. font-size: 1em;
  158. border: 1px solid #ddd;
  159. border-radius: 5px;
  160. outline: none;
  161. transition: all 0.3s ease;
  162. }
  163. #search_pattern:focus {
  164. border-color: #4A90E2;
  165. box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  166. }
  167. /* Radio Buttons and Labels */
  168. .pre-execution-toggles {
  169. margin: 10px 0;
  170. padding: 10px;
  171. background: #fff;
  172. border: 1px solid #ddd;
  173. border-radius: 8px;
  174. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  175. }
  176. .pre-execution-toggles h3 {
  177. margin: 0 0 10px 0;
  178. color: #4A90E2;
  179. font-size: 1.1em;
  180. }
  181. .pre-execution-toggles label {
  182. display: flex;
  183. align-items: center;
  184. gap: 10px;
  185. margin: 5px 0;
  186. font-size: 1em;
  187. color: #333;
  188. cursor: pointer;
  189. transition: all 0.3s ease;
  190. }
  191. .pre-execution-toggles label:hover {
  192. color: #4A90E2;
  193. }
  194. input[type="radio"] {
  195. appearance: none;
  196. width: 16px;
  197. height: 16px;
  198. border: 2px solid #4A90E2;
  199. border-radius: 50%;
  200. outline: none;
  201. cursor: pointer;
  202. transition: all 0.3s ease;
  203. }
  204. input[type="radio"]:checked {
  205. background-color: #4A90E2;
  206. border-color: #4A90E2;
  207. box-shadow: 0 0 3px rgba(74, 144, 226, 0.5);
  208. }
  209. #speed_input {
  210. min-width: 80px;
  211. }
  212. .coordinate-input {
  213. display: flex;
  214. align-items: center;
  215. gap: 10px;
  216. margin-top: 10px;
  217. }
  218. .coordinate-input input {
  219. font-size: 1rem;
  220. padding: 5px;
  221. width: 80px;
  222. }
  223. /* Speed Control Section */
  224. .speed-control {
  225. display: flex;
  226. align-items: center;
  227. gap: 15px;
  228. margin-top: 10px;
  229. background: #fff; /* Matches section background */
  230. border: 1px solid #ddd;
  231. border-radius: 8px;
  232. padding: 15px;
  233. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  234. }
  235. .speed-control label {
  236. font-weight: bold;
  237. font-size: 1rem;
  238. color: #333;
  239. flex-shrink: 0;
  240. }
  241. .speed-control input[type="number"] {
  242. width: 100px; /* Consistent input width */
  243. padding: 8px;
  244. font-size: 1rem;
  245. border: 1px solid #ddd;
  246. border-radius: 5px;
  247. outline: none;
  248. transition: all 0.3s ease;
  249. }
  250. .speed-control input[type="number"]:focus {
  251. border-color: #4A90E2; /* Highlighted border */
  252. box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  253. }
  254. .speed-control button {
  255. background: #4A90E2;
  256. color: #fff;
  257. padding: 10px 15px;
  258. font-size: 1rem;
  259. border: none;
  260. border-radius: 5px;
  261. cursor: pointer;
  262. transition: all 0.3s ease;
  263. }
  264. .speed-control button:hover {
  265. background: #357ABD;
  266. }
  267. #speed_status {
  268. margin-top: 10px;
  269. font-size: 0.9rem;
  270. color: #444;
  271. }
  272. #serial_ports_container > * {
  273. display: inline-block;
  274. }
  275. #serial_ports_container select {
  276. margin: 10px;
  277. flex-basis: 100px;
  278. flex-grow: 0;
  279. }
  280. #serial_ports {
  281. width: auto;
  282. min-width: 200px;
  283. }
  284. #serial_status_container,
  285. #serial_ports_buttons {
  286. display: inline-block;
  287. }
  288. .status.connected {
  289. color: #4CAF50;
  290. font-weight: bold;
  291. }
  292. .status.not-connected {
  293. color: #E53935;
  294. font-weight: bold;
  295. }
  296. .footer {
  297. align-items: center;
  298. display: flex;
  299. flex-wrap: wrap;
  300. justify-content: space-between;
  301. margin-bottom: 20px;
  302. width: 100%;
  303. }
  304. .footer #github {
  305. align-content: center;
  306. display: flex;
  307. font-size: 0.8em;
  308. }
  309. .footer #github img {
  310. margin: 0 5px
  311. }
  312. /* Responsive Layout for Small Screens */
  313. @media (max-width: 768px) {
  314. body {
  315. font-size: 0.9rem;
  316. }
  317. .container {
  318. flex-direction: column; /* Stack columns vertically */
  319. }
  320. .left-column, .right-column {
  321. width: 100%;
  322. }
  323. .footer {
  324. flex-direction: column;
  325. }
  326. }