style.css 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. :root {
  2. --background-primary: #f9f9f9;
  3. --background-secondary: #fff;
  4. --background-tertiary: #ddd;
  5. --background-accent: #4e453fbf;
  6. --background-info: var(--color-info);
  7. --background-success: var(--color-success);
  8. --background-warning: var(--color-warning);
  9. --background-error: var( --color-error);
  10. --theme-primary: #6A9AD9;
  11. --theme-primary-hover: #A0CCF2;
  12. --theme-secondary: #C4B4A0;
  13. --theme-secondary-hover: #4E453F;
  14. --color-info: #6A9AD9CC;
  15. --color-success: #4CAF50CC;
  16. --color-warning: #FF9800CC;
  17. --color-error: #E53935CC;
  18. --text-primary: #333;
  19. --text-secondary: #fff;
  20. --border-primary: var(--background-tertiary);
  21. --border-secondary: grey;
  22. --border-accent: var(--theme-primary);
  23. --border-hover: var(--theme-primary-hover);
  24. --shadow-primary: 0 0 20px var(--border-secondary);
  25. --transition-fast: 0.1s ease-in-out;
  26. --transition-medium: 0.250s ease;
  27. --transition-slow: 1s ease;
  28. }
  29. @font-face {
  30. font-family: 'Roboto';
  31. src: url('../webfonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  32. font-weight: 100 900; /* Variable range of weights */
  33. font-stretch: 75% 100%; /* Variable width range (optional) */
  34. font-style: normal;
  35. }
  36. /* General
  37. /* General Styling */
  38. body {
  39. margin: 0;
  40. font-family: 'Roboto', sans-serif;
  41. background: var(--background-primary);
  42. display: flex;
  43. flex-direction: column;
  44. position: relative;
  45. }
  46. body * {
  47. box-sizing: border-box;
  48. }
  49. h1, h2 {
  50. margin: 0;
  51. }
  52. header {
  53. position: sticky;
  54. height: 50px;
  55. top: 0;
  56. z-index: 10;
  57. background: var(--background-primary);
  58. display: flex;
  59. justify-content: center;
  60. align-items: center;
  61. }
  62. h1, h2 {
  63. color: var(--theme-secondary-hover);
  64. transition: var(--transition-slow) color;
  65. }
  66. h3 {
  67. margin: 10px 0;
  68. }
  69. /* Inputs */
  70. input, select {
  71. display: block;
  72. width: 100%;
  73. padding: 10px;
  74. margin-bottom: 10px;
  75. border: 1px solid var(--border-primary);
  76. border-radius: 5px;
  77. font-size: 1rem;
  78. }
  79. /* Custom Input Wrapper */
  80. .custom-input {
  81. display: flex;
  82. align-items: center;
  83. gap: 10px;
  84. font-size: 1rem;
  85. color: var(--text-primary);
  86. cursor: pointer;
  87. flex: 1 1 auto;
  88. }
  89. /* Hide the Native Input */
  90. .custom-input input {
  91. display: none;
  92. }
  93. /* Checkbox and Radio Styles */
  94. .custom-checkbox,
  95. .custom-radio {
  96. display: inline-block;
  97. width: 20px;
  98. height: 20px;
  99. border: 2px solid var(--theme-primary);
  100. background-color: var(--background-secondary);
  101. position: relative;
  102. transition: background-color 0.3s ease, border-color 0.3s ease;
  103. }
  104. /* Checkbox Specific */
  105. .custom-checkbox {
  106. border-radius: 4px;
  107. }
  108. .custom-checkbox::after {
  109. content: '';
  110. width: 10px;
  111. height: 10px;
  112. background-color: var(--theme-primary);
  113. position: absolute;
  114. top: 50%;
  115. left: 50%;
  116. transform: translate(-50%, -50%) scale(0);
  117. transition: transform 0.2s ease-in-out;
  118. }
  119. /* Radio Specific */
  120. .custom-radio {
  121. border-radius: 50%;
  122. }
  123. .custom-radio::after {
  124. content: '';
  125. width: 10px;
  126. height: 10px;
  127. background-color: var(--theme-primary);
  128. position: absolute;
  129. top: 50%;
  130. left: 50%;
  131. transform: translate(-50%, -50%) scale(0);
  132. border-radius: 50%;
  133. transition: transform 0.2s ease-in-out;
  134. }
  135. /* Checked State */
  136. .custom-input input:checked + .custom-checkbox::after,
  137. .custom-input input:checked + .custom-radio::after {
  138. transform: translate(-50%, -50%) scale(1);
  139. }
  140. .custom-input input:checked + .custom-checkbox,
  141. .custom-input input:checked + .custom-radio {
  142. background-color: var(--theme-primary);
  143. border-color: var(--theme-primary-hover);
  144. }
  145. /* Focus State */
  146. .custom-input input:focus-visible + .custom-checkbox,
  147. .custom-input input:focus-visible + .custom-radio {
  148. outline: 2px dashed var(--theme-primary);
  149. outline-offset: 2px;
  150. }
  151. /* Hover Effects */
  152. .custom-checkbox:hover,
  153. .custom-radio:hover {
  154. border-color: var(--theme-primary-hover);
  155. }
  156. /* Scrollable Selection Styles */
  157. .scrollable-selection {
  158. display: flex;
  159. flex-direction: row;
  160. align-items: center;
  161. min-width: 50%;
  162. position: relative;
  163. }
  164. .scroll-arrow {
  165. border: none;
  166. padding: 5px;
  167. width: 100%;
  168. cursor: pointer;
  169. font-size: 1rem;
  170. transition: background-color 0.3s;
  171. }
  172. .scroll-arrow:hover {
  173. background: var(--theme-primary-hover);
  174. }
  175. .selection-container {
  176. overflow: hidden;
  177. height: 50px; /* Adjust based on visible area */
  178. width: 100%;
  179. position: relative;
  180. border: 1px solid var(--border-primary);
  181. background: var(--theme-primary);
  182. color: var(--text-secondary);
  183. border-radius: 5px;
  184. font-weight: bold;
  185. }
  186. .nav-items {
  187. position: absolute;
  188. right: 0;
  189. top: 0;
  190. display: flex;
  191. height: 100%;
  192. flex-direction: column;
  193. justify-content: center;
  194. align-items: center;
  195. }
  196. .selection-container .nav-items > button {
  197. height: 50%;
  198. padding: 0;
  199. width: 100% !important;
  200. }
  201. .selection-container .nav-items > button:hover {
  202. background: var(--text-secondary);
  203. color: var(--theme-primary);
  204. }
  205. .selection-items {
  206. display: flex;
  207. flex-direction: column;
  208. transition: transform 0.3s ease;
  209. padding-right: 30px;
  210. }
  211. .selection-item {
  212. height: 50px;
  213. display: flex;
  214. align-items: center;
  215. justify-content: center;
  216. cursor: pointer;
  217. padding: 5px;
  218. transition: background-color 0.3s ease;
  219. }
  220. .selection-item:hover {
  221. background: var(--theme-primary-hover);
  222. color: var(--text-secondary);
  223. }
  224. /* Buttons */
  225. button {
  226. background: var(--theme-primary);
  227. color: var(--text-secondary);
  228. padding: 10px 15px;
  229. border: none;
  230. font-weight: bold;
  231. border-radius: 5px;
  232. cursor: pointer;
  233. font-size: 1rem;
  234. transition: var(--transition-medium) all;
  235. display: flex;
  236. justify-content: center;
  237. align-items: center;
  238. }
  239. button:not(.no-bg):hover{
  240. background: var(--background-info);
  241. }
  242. button.cancel {
  243. flex-grow: 0;
  244. }
  245. button.cancel:hover {
  246. background: var(--color-error);
  247. }
  248. button.cta:hover {
  249. background: var(--color-success);
  250. }
  251. button.warn:hover {
  252. background: var(--color-warning);
  253. }
  254. button.warning:hover{}
  255. /* App Layout */
  256. .app {
  257. min-height: calc(100vh - 110px);
  258. display: flex;
  259. flex-direction: column;
  260. }
  261. .hidden:not(.sticky) {
  262. display: none !important;
  263. }
  264. /* Tabs */
  265. .tab-content {
  266. display: none;
  267. flex: 1;
  268. overflow-y: auto;
  269. background: var(--background-secondary);
  270. }
  271. .tab-content.active {
  272. display: flex;
  273. position: relative;
  274. flex-direction: column;
  275. }
  276. section {
  277. padding: 15px;
  278. display: flex;
  279. flex-direction: column;
  280. }
  281. section.main {
  282. flex-grow: 1;
  283. }
  284. section.debug {
  285. flex-direction: row;
  286. align-items: flex-end;
  287. justify-content: space-between;
  288. }
  289. section.version {
  290. flex-direction: row;
  291. justify-content: space-between;
  292. flex-wrap: wrap;
  293. }
  294. section#settings-container > section{
  295. padding-left: 0;
  296. padding-right: 0;
  297. }
  298. .version .header {
  299. width: 100%;
  300. }
  301. .version #motor_selection h3 {
  302. width: 100%;
  303. flex-grow: 1;
  304. }
  305. .version #motor_selection {
  306. display: flex;
  307. flex-direction: row;
  308. flex-wrap: wrap;
  309. width: 100%;
  310. }
  311. .version select#manual_motor_type {
  312. margin: 0 20px 0 0;
  313. flex: 1;
  314. }
  315. section.sticky {
  316. position: fixed;
  317. background-color: rgba(255, 255, 255, 0.5);
  318. backdrop-filter: blur(10px);
  319. bottom: 60px;
  320. border-top: 1px solid var(--border-primary);
  321. box-shadow: var(--shadow-primary);
  322. transform: translateY(0);
  323. transition: var(--transition-medium) transform, var(--transition-medium) height;
  324. visibility: visible;
  325. max-height: 75vh;
  326. width: 100%;
  327. z-index: 10;
  328. }
  329. section.sticky.fullscreen {
  330. position: fixed;
  331. top: 0;
  332. left: 0;
  333. width: 100vw;
  334. max-height: none;
  335. }
  336. section.sticky.hidden {
  337. transform: translateY(100%);
  338. visibility: hidden;
  339. width: 100%;
  340. position: absolute;
  341. overflow:hidden;
  342. height: 0;
  343. padding: 0;
  344. }
  345. section .header {
  346. position: relative;
  347. display: flex;
  348. justify-content: flex-end;
  349. align-items: center;
  350. margin-bottom: 10px;
  351. width: 100%;
  352. }
  353. section .header h2 {
  354. flex-grow: 1;
  355. }
  356. section .header #open-settings-button:hover{
  357. color: var(--theme-primary);
  358. }
  359. /* Close Button Styling */
  360. button.no-bg {
  361. background: none;
  362. border: none;
  363. font-size: 1.5rem;
  364. font-weight: bold;
  365. color: var(--text-primary);
  366. cursor: pointer;
  367. line-height: 1;
  368. padding: 0;
  369. height: 100%;
  370. width: auto;
  371. aspect-ratio: 1 / 1;
  372. display: flex;
  373. justify-content: center;
  374. align-items: center;
  375. margin-left: 10px;
  376. }
  377. .close-button:hover {
  378. color: var(--color-error);
  379. }
  380. .fullscreen-button:hover {
  381. color: var(--color-warning);
  382. }
  383. section .header .add-button {
  384. height: 35px;
  385. width: 35px;
  386. padding: 0;
  387. }
  388. /* Playlist */
  389. .add-to-playlist {
  390. margin-top: 15px;
  391. }
  392. .add-to-playlist button {
  393. margin-bottom: 10px;
  394. }
  395. .add-to-container {
  396. display: flex;
  397. flex-wrap: wrap;
  398. margin-bottom: 20px;
  399. }
  400. #add-to-playlist-container {
  401. display: flex;
  402. flex-wrap: wrap;
  403. }
  404. #add-to-playlist-container h3{
  405. margin: 0 10px 0 0;
  406. align-self: center;
  407. }
  408. #add-to-playlist-container select{
  409. width: auto;
  410. flex-grow: 1;
  411. margin: 0;
  412. }
  413. #add-to-playlist-container .action-buttons {
  414. margin-top: 10px;
  415. }
  416. .playlist-parameters {
  417. display: flex;
  418. flex-direction: column;
  419. gap: 10px;
  420. }
  421. .playlist-parameters .control-group button.small.cancel {
  422. align-self: flex-end;
  423. margin-bottom: 4px;
  424. }
  425. #clear_pattern {
  426. margin: 0;
  427. }
  428. .playlist-parameters .input-group input,
  429. .playlist-parameters .input-group select {
  430. width: 100%; /* Ensure inputs/selects stretch to full width */
  431. padding: 10px;
  432. border: 1px solid var(--border-primary);
  433. border-radius: 5px;
  434. font-size: 1rem;
  435. }
  436. .empty-placeholder {
  437. color: gray;
  438. font-style: italic;
  439. text-align: center;
  440. padding: 10px;
  441. }
  442. /* Style for the filename span */
  443. .filename {
  444. flex-grow: 1; /* Use available space */
  445. font-size: 1rem;
  446. color: var(--text-primary);
  447. margin-right: 10px; /* Space between filename and buttons */
  448. word-wrap: break-word;
  449. width: 100%;
  450. display: flex;
  451. align-items: center;
  452. }
  453. /* File List */
  454. .file-list {
  455. list-style: none;
  456. padding: 0;
  457. margin: 0;
  458. border: 1px solid var(--border-primary);
  459. border-radius: 5px;
  460. overflow-y: auto;
  461. background: var(--background-primary);
  462. flex-grow: 1;
  463. }
  464. .file-list li {
  465. display: flex;
  466. padding: 10px;
  467. border-bottom: 1px solid var(--border-primary);
  468. cursor: pointer;
  469. transition: background-color var(--transition-medium);
  470. }
  471. .file-list li:hover {
  472. background-color: var(--background-tertiary);
  473. }
  474. .file-list li.selected {
  475. background: var(--theme-primary);
  476. color: var(--text-secondary);
  477. font-weight: bold;
  478. }
  479. .file-list li.selected .filename {
  480. font-weight: bold;
  481. color: var(--text-secondary);
  482. }
  483. .file-list button {
  484. margin-left: 5px;
  485. background: none;
  486. color: black;
  487. font-weight: bold;
  488. height: 40px;
  489. width: 40px;
  490. flex: 0 0 auto;
  491. display: flex;
  492. justify-content: center;
  493. align-items: center;
  494. }
  495. .file-list button:hover:not(:focus) {
  496. background: var(--background-primary);
  497. box-shadow: inset 0 0 4px var(--border-secondary);
  498. }
  499. .file-list button.remove-button {
  500. color: var(--color-error);
  501. }
  502. .title-container {
  503. display: flex;
  504. justify-content: space-between;
  505. align-items: center;
  506. }
  507. .rename-button {
  508. margin-left: 10px;
  509. background: var(--theme-primary-hover);
  510. color: var(--text-secondary);
  511. border: none;
  512. border-radius: 5px;
  513. padding: 5px 10px;
  514. cursor: pointer;
  515. transition: background 0.3s ease;
  516. }
  517. /* Bottom Navigation */
  518. .bottom-nav {
  519. display: flex;
  520. position: sticky;
  521. justify-content: space-around;
  522. bottom: 0;
  523. height: 60px;
  524. width: 100%;
  525. border-top: 1px solid var(--theme-primary);
  526. flex-wrap: wrap;
  527. z-index: 10;
  528. }
  529. .tab-button {
  530. flex: 1;
  531. height: 60px;
  532. padding: 20px 10px;
  533. text-align: center;
  534. font-size: 1rem;
  535. font-weight: bold;
  536. color: var(--text-secondary);
  537. background: none;
  538. border: none;
  539. cursor: pointer;
  540. transition: background 0.3s ease;
  541. background: var(--background-info);
  542. backdrop-filter: blur(2px);
  543. border-radius: 0;
  544. }
  545. .bottom-nav .tab-button.active {
  546. background: rgba(255, 255, 255, 0.75);
  547. color: var(--theme-primary);
  548. }
  549. /* Quick Action Buttons */
  550. .action-buttons {
  551. display: flex;
  552. gap: 10px;
  553. flex-wrap: wrap;
  554. width: 100%;
  555. justify-content: space-between;
  556. }
  557. .action-buttons .scrollable-selection {
  558. width: calc(50% - 10px);
  559. }
  560. .action-buttons.square button {
  561. padding: 5px;
  562. aspect-ratio: 1 / 1;
  563. width: calc(25% - 10px);
  564. flex-direction: column;
  565. justify-content: center;
  566. align-items: center;
  567. }
  568. .action-buttons.square button i{
  569. font-size: 2.5rem;
  570. }
  571. button i + span{
  572. font-size: 1.25rem;
  573. }
  574. button i + span{
  575. margin-left: 5px;
  576. }
  577. .action-buttons.square button i + span{
  578. margin: 3px;
  579. }
  580. button i + span.small {
  581. font-size: 0.75rem;
  582. }
  583. .action-buttons button i + span{
  584. display: block;
  585. }
  586. .action-buttons button.m {
  587. width: calc(50% - 10px);
  588. }
  589. .action-buttons button.l {
  590. width: 100%;
  591. }
  592. .action-buttons button.small {
  593. flex: 0;
  594. flex-basis: calc(25% - 10px);
  595. }
  596. .action-buttons button.cta {
  597. flex-grow: 1;
  598. }
  599. button#debug_button {
  600. width: 40px;
  601. padding: 0;
  602. height: 40px;
  603. background: transparent;
  604. color: var(--text-primary);
  605. font-size: 1.5rem;
  606. margin-left: 40px;
  607. flex: 0 0 auto;
  608. transition: var(--transition-medium) all;
  609. }
  610. button#debug_button:hover,
  611. button#debug_button.active {
  612. box-shadow: inset 0 0 4px var(--border-secondary);
  613. }
  614. #device-tab .dropdown {
  615. width: 50%;
  616. }
  617. #settings-container {
  618. position: absolute;
  619. top: 0;
  620. left: 0;
  621. width: 100%;
  622. height: 100%;
  623. background-color: #FFFFFF80;
  624. backdrop-filter: blur(10px);
  625. z-index: 1000;
  626. overflow-y: auto;
  627. display: none; /* Hidden by default */
  628. flex-direction: column;
  629. }
  630. #settings-container.open{
  631. display: flex;
  632. }
  633. #open-settings-button {
  634. aspect-ratio: auto;
  635. }
  636. #open-settings-button span {
  637. order: -1;
  638. margin-right: 5px;
  639. }
  640. /* Preview Canvas */
  641. #patternPreviewCanvas {
  642. width: 100%;
  643. max-width: 300px;
  644. aspect-ratio: 1/1;
  645. border: 1px solid var(--border-primary);
  646. background: var(--theme-secondary);
  647. border-radius: 100%;
  648. padding: 15px;
  649. }
  650. #pattern-preview {
  651. display: flex;
  652. flex-direction: column;
  653. align-items: center;
  654. margin-bottom: 20px;
  655. }
  656. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  657. width: initial;
  658. max-width: calc(100vw - 30px);
  659. }
  660. .pre-execution {
  661. width: 100%;
  662. display: flex;
  663. }
  664. .pre-execution h3 {
  665. flex-grow: 1;
  666. margin: 0;
  667. align-content: center;
  668. }
  669. .pre-execution .control-group {
  670. width: auto;
  671. flex-grow: 1;
  672. margin: 0;
  673. }
  674. .pre-execution select {
  675. margin: 0;
  676. }
  677. /* Currently Playing Section Styling */
  678. body.playing .bottom-nav {
  679. height: 200px;
  680. align-items: flex-end;
  681. }
  682. #currently-playing-container {
  683. align-items: center;
  684. background: var(--background-accent);
  685. color: var(--text-secondary);
  686. }
  687. #currently-playing-container h3,
  688. #currently-playing-container .open-button
  689. {
  690. color: var(--text-secondary);
  691. }
  692. #currently-playing-container h3 {
  693. margin: 0;
  694. }
  695. body:not(.playing) #currently-playing-container {
  696. display: none;
  697. }
  698. #currently-playing-container.open {
  699. max-height: none;
  700. bottom: 60px;
  701. }
  702. body.playing #currently-playing-container:not(.open) {
  703. height: 140px;
  704. overflow:hidden;
  705. flex-direction: row;
  706. flex-wrap: wrap;
  707. bottom: 60px;
  708. }
  709. body.playing #currently-playing-container .header{
  710. justify-content: center;
  711. margin-bottom: 0;
  712. }
  713. body.playing #currently-playing-container .header .open-button {
  714. width: 100%;
  715. height: 20px;
  716. padding-top: 10px;
  717. margin: 0;
  718. }
  719. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  720. max-width:100px;
  721. padding: 5px;
  722. }
  723. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  724. body.playing #currently-playing-container:not(.open) .header .close-button,
  725. body.playing #currently-playing-container:not(.open) .header h3 {
  726. display: none;
  727. }
  728. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  729. flex-grow: 1;
  730. flex-basis: 50%;
  731. align-items: flex-start;
  732. margin: 0 0 0 10px;
  733. overflow-y: auto;
  734. }
  735. body.playing #currently-playing-container:not(.open) .play-buttons button {
  736. width: 50px;
  737. height: 50px;
  738. font-size: 1.5rem;
  739. }
  740. body.playing #currently-playing-container:not(.open) #progress-container {
  741. width: 100%;
  742. }
  743. #currentlyPlayingCanvas {
  744. width: 100%;
  745. max-width: 300px;
  746. aspect-ratio: 1/1;
  747. border: 1px solid var(--border-primary);
  748. background: var(--theme-secondary);
  749. border-radius: 100%;
  750. padding: 10px;
  751. }
  752. #currently-playing-details {
  753. display: flex;
  754. flex-direction: column;
  755. align-items: center;
  756. margin-bottom: 15px;
  757. }
  758. #currently-playing-details p {
  759. margin: 5px 0;
  760. font-size: 1rem;
  761. }
  762. #progress-container {
  763. display: flex;
  764. align-items: center;
  765. justify-content: center;
  766. width: 100%;
  767. flex-wrap: wrap;
  768. }
  769. #play_progress {
  770. width: auto;
  771. flex-grow: 1;
  772. height: 8px;
  773. appearance: none;
  774. background-color: var(--border-primary);
  775. border-radius: 4px;
  776. overflow: hidden;
  777. }
  778. #play_progress::-webkit-progress-bar {
  779. background-color: var(--border-primary);
  780. }
  781. #play_progress::-webkit-progress-value {
  782. background-color: var(--theme-primary);
  783. transition: width 0.25s ease;
  784. }
  785. #play_progress_text {
  786. font-size: 0.9rem;
  787. margin-left: 10px;
  788. }
  789. .play-buttons {
  790. display: flex;
  791. gap: 20px;
  792. }
  793. .play-buttons button {
  794. width: 75px;
  795. height: 75px;
  796. aspect-ratio: 1/1;
  797. font-size: 3rem;
  798. border: none;
  799. cursor: pointer;
  800. display: flex;
  801. justify-content: center;
  802. }
  803. #pausePlayCurrent {
  804. border-radius: 50%;
  805. }
  806. /* Debug Log */
  807. #status_log {
  808. background: #000;
  809. color: var(--text-secondary);
  810. font-family: monospace;
  811. font-size: 0.9rem;
  812. border-top: 1px solid var(--border-primary);
  813. padding: 10px;
  814. max-height: 200px;
  815. overflow-y: scroll;
  816. display: none;
  817. width: 100%;
  818. }
  819. #status_log p {
  820. margin: 0;
  821. }
  822. .control-group {
  823. display: flex;
  824. margin-bottom: 10px;
  825. flex-wrap: wrap;
  826. width: 100%;
  827. align-items: center;
  828. justify-content: space-between;
  829. gap: 0 10px;
  830. }
  831. .control-group input {
  832. margin-bottom: 0;
  833. }
  834. .control-group h3 {
  835. width: 100%;
  836. }
  837. .control-group .item {
  838. display: flex;
  839. align-items: center;
  840. flex: 1;
  841. }
  842. .control-group .item.cta {
  843. justify-content: flex-end;
  844. }
  845. .control-group .item.column {
  846. flex-direction: column;
  847. text-align: center;
  848. }
  849. .control-group .item label {
  850. padding: 5px;
  851. }
  852. #serial_ports_container > * {
  853. display: inline-block;
  854. }
  855. #serial_ports_container select {
  856. margin: 10px;
  857. flex-basis: 100px;
  858. flex-grow: 0;
  859. }
  860. #serial_ports {
  861. width: auto;
  862. min-width: 200px;
  863. }
  864. #serial_status_container {
  865. margin-bottom: 10px;
  866. }
  867. #serial_status_header::before {
  868. content: '';
  869. width: 20px;
  870. height: 20px;
  871. border-radius: 50%;
  872. margin-right: 8px;
  873. background-color: var(--text-primary);
  874. display: inline-block;
  875. transition: var(--transition-slow) background-color;
  876. }
  877. #serial_status_header.connected::before {
  878. background-color: var(--color-success);
  879. }
  880. #serial_status_header.not-connected::before {
  881. background-color: var(--color-error);
  882. }
  883. #serial_ports_buttons {
  884. display: flex;
  885. gap: 10px;
  886. }
  887. .status.connected {
  888. color: var(--color-success);
  889. font-weight: bold;
  890. }
  891. .status.not-connected {
  892. color: var(--color-error);
  893. font-weight: bold;
  894. }
  895. /* Speed Control Section */
  896. .speed-control {
  897. display: flex;
  898. }
  899. .speed-control label {
  900. font-weight: bold;
  901. font-size: 1rem;
  902. color: var(--text-primary);
  903. flex-shrink: 0;
  904. }
  905. .speed-control input[type="number"] {
  906. width: 100px; /* Consistent input width */
  907. padding: 8px;
  908. font-size: 1rem;
  909. border: 1px solid var(--border-primary);
  910. border-radius: 5px;
  911. outline: none;
  912. transition: all 0.3s ease;
  913. }
  914. input[type="number"]:focus {
  915. border-color: var(--theme-primary);
  916. box-shadow: 0 0 4px var(--background-info);
  917. }
  918. #speed_status {
  919. margin-top: 10px;
  920. font-size: 0.9rem;
  921. }
  922. #serial_ports_container > * {
  923. display: inline-block;
  924. }
  925. #serial_ports_container select {
  926. margin: 10px;
  927. flex-basis: 100px;
  928. flex-grow: 0;
  929. }
  930. #serial_ports {
  931. width: auto;
  932. min-width: 200px;
  933. }
  934. /* Notification Styles */
  935. .notification {
  936. display: flex;
  937. position: absolute;
  938. top: 0;
  939. left: 0;
  940. font-weight: bold;
  941. z-index: 1000;
  942. color: var(--text-secondary);
  943. width: 100%;
  944. height: 100%;
  945. justify-content: center;
  946. align-items: center;
  947. backdrop-filter: blur(2px);
  948. opacity: 0;
  949. transition: opacity var(--transition-medium);
  950. cursor: pointer;
  951. }
  952. .notification.show {
  953. opacity: 1; /* Fully visible */
  954. }
  955. .notification .close-button {
  956. color: var(--text-secondary);
  957. font-size: 1.5rem;
  958. top: 0;
  959. right: 0;
  960. position: absolute;
  961. }
  962. /* Notification Types */
  963. .notification.success { background-color: var(--background-success); }
  964. .notification.warning { background-color: var(--background-warning); }
  965. .notification.error { background-color: var(--background-error); }
  966. .notification.info { background-color: var(--background-info); }
  967. .footer {
  968. align-items: center;
  969. display: flex;
  970. flex-wrap: wrap;
  971. justify-content: space-between;
  972. margin-bottom: 20px;
  973. width: 100%;
  974. }
  975. #github {
  976. align-content: center;
  977. display: flex;
  978. font-size: 0.8em;
  979. }
  980. #github img {
  981. margin: 0 5px
  982. }
  983. /* Responsive Design */
  984. @media (max-width: 1023px) {
  985. body {
  986. font-size: 0.9rem;
  987. }
  988. .tab-button {
  989. font-size: 0.9rem;
  990. }
  991. .footer {
  992. display: none;
  993. }
  994. button.cancel {
  995. background: var(--color-error);
  996. }
  997. button.cta {
  998. background: var(--color-success);
  999. }
  1000. button.warn {
  1001. background: var(--color-warning);
  1002. }
  1003. button.cancel:hover,
  1004. button.warn:hover,
  1005. button.cta:hover {
  1006. background: var(--theme-primary);
  1007. }
  1008. body.playing section.sticky{
  1009. bottom: 200px;
  1010. }
  1011. }
  1012. /* On larger screens, display all tabs in a 3-column grid */
  1013. @media screen and (min-width: 1024px) {
  1014. .app {
  1015. display: grid;
  1016. grid-template-columns: repeat(3, 1fr);
  1017. gap: 0 16px;
  1018. height: calc(100vh - 60px);
  1019. padding: 0 15px;
  1020. }
  1021. #status_log {
  1022. grid-column: span 3;
  1023. align-self: flex-end;
  1024. height: 100%;
  1025. }
  1026. section.sticky {
  1027. position: sticky;
  1028. bottom: 0;
  1029. }
  1030. .bottom-nav .tab-button {
  1031. display: none;
  1032. }
  1033. .bottom-nav {
  1034. border-top: 0;
  1035. }
  1036. /* Show all tabs in grid layout */
  1037. .tab-content {
  1038. display: flex !important; /* Always display tab-content */
  1039. flex-direction: column;
  1040. border: 1px solid var(--border-primary);
  1041. background-color: var(--background-primary);
  1042. border-radius: 8px;
  1043. overflow-y: auto;
  1044. overflow-x: hidden;
  1045. position: relative;
  1046. }
  1047. body.playing .app {
  1048. padding: 15px 0 150px 15px;
  1049. margin-bottom: -140px;
  1050. }
  1051. body.playing .bottom-nav {
  1052. height: 140px;
  1053. }
  1054. body:not(.playing) .bottom-nav {
  1055. display: none;
  1056. }
  1057. body.playing #currently-playing-container.open {
  1058. position: absolute;
  1059. bottom: 0;
  1060. }
  1061. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  1062. flex-direction: row;
  1063. align-items: center;
  1064. }
  1065. #currently-playing-container h3 {
  1066. flex-grow: 1;
  1067. }
  1068. body.playing #currently-playing-container.open .header {
  1069. display: none;
  1070. }
  1071. #open-settings-button span {
  1072. opacity: 0;
  1073. transition: var(--transition-medium) opacity;
  1074. }
  1075. #open-settings-button:hover span {
  1076. opacity: 1;
  1077. }
  1078. }