style.css 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279
  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. .version .header {
  295. width: 100%;
  296. }
  297. .version #motor_selection h3 {
  298. width: 100%;
  299. flex-grow: 1;
  300. }
  301. .version #motor_selection {
  302. display: flex;
  303. flex-direction: row;
  304. flex-wrap: wrap;
  305. width: 100%;
  306. }
  307. .version select#manual_motor_type {
  308. margin: 0 20px 0 0;
  309. flex: 1;
  310. }
  311. section.sticky {
  312. position: fixed;
  313. background-color: rgba(255, 255, 255, 0.5);
  314. backdrop-filter: blur(10px);
  315. bottom: 60px;
  316. border-top: 1px solid var(--border-primary);
  317. box-shadow: var(--shadow-primary);
  318. transform: translateY(0);
  319. transition: var(--transition-medium) transform, var(--transition-medium) height;
  320. visibility: visible;
  321. max-height: 75vh;
  322. width: 100%;
  323. z-index: 10;
  324. }
  325. section.sticky.fullscreen {
  326. position: fixed;
  327. top: 0;
  328. left: 0;
  329. width: 100vw;
  330. max-height: none;
  331. }
  332. section.sticky.hidden {
  333. transform: translateY(100%);
  334. visibility: hidden;
  335. width: 100%;
  336. position: absolute;
  337. overflow:hidden;
  338. height: 0;
  339. padding: 0;
  340. }
  341. section .header {
  342. position: relative;
  343. display: flex;
  344. justify-content: flex-end;
  345. align-items: center;
  346. margin-bottom: 10px;
  347. width: 100%;
  348. }
  349. section .header h2 {
  350. flex-grow: 1;
  351. }
  352. section .header #open-settings-button:hover{
  353. color: var(--theme-primary);
  354. }
  355. /* Close Button Styling */
  356. button.no-bg {
  357. background: none;
  358. border: none;
  359. font-size: 1.5rem;
  360. font-weight: bold;
  361. color: var(--text-primary);
  362. cursor: pointer;
  363. line-height: 1;
  364. padding: 0;
  365. height: 100%;
  366. width: auto;
  367. aspect-ratio: 1 / 1;
  368. display: flex;
  369. justify-content: center;
  370. align-items: center;
  371. margin-left: 10px;
  372. }
  373. .close-button:hover {
  374. color: var(--color-error);
  375. }
  376. .fullscreen-button:hover {
  377. color: var(--color-warning);
  378. }
  379. section .header .add-button {
  380. height: 35px;
  381. width: 35px;
  382. padding: 0;
  383. }
  384. /* Playlist */
  385. .add-to-playlist {
  386. margin-top: 15px;
  387. }
  388. .add-to-playlist button {
  389. margin-bottom: 10px;
  390. }
  391. .add-to-container {
  392. display: flex;
  393. flex-wrap: wrap;
  394. margin-bottom: 20px;
  395. }
  396. #add-to-playlist-container {
  397. display: flex;
  398. flex-wrap: wrap;
  399. }
  400. #add-to-playlist-container h3{
  401. margin: 0 10px 0 0;
  402. align-self: center;
  403. }
  404. #add-to-playlist-container select{
  405. width: auto;
  406. flex-grow: 1;
  407. margin: 0;
  408. }
  409. #add-to-playlist-container .action-buttons {
  410. margin-top: 10px;
  411. }
  412. .playlist-parameters {
  413. display: flex;
  414. flex-direction: column;
  415. gap: 10px;
  416. }
  417. .playlist-parameters .control-group button.small.cancel {
  418. align-self: flex-end;
  419. margin-bottom: 4px;
  420. }
  421. #clear_pattern {
  422. margin: 0;
  423. }
  424. .playlist-parameters .input-group input,
  425. .playlist-parameters .input-group select {
  426. width: 100%; /* Ensure inputs/selects stretch to full width */
  427. padding: 10px;
  428. border: 1px solid var(--border-primary);
  429. border-radius: 5px;
  430. font-size: 1rem;
  431. }
  432. .empty-placeholder {
  433. color: gray;
  434. font-style: italic;
  435. text-align: center;
  436. padding: 10px;
  437. }
  438. /* Style for the filename span */
  439. .filename {
  440. flex-grow: 1; /* Use available space */
  441. font-size: 1rem;
  442. color: var(--text-primary);
  443. margin-right: 10px; /* Space between filename and buttons */
  444. word-wrap: break-word;
  445. width: 100%;
  446. display: flex;
  447. align-items: center;
  448. }
  449. /* File List */
  450. .file-list {
  451. list-style: none;
  452. padding: 0;
  453. margin: 0;
  454. border: 1px solid var(--border-primary);
  455. border-radius: 5px;
  456. overflow-y: auto;
  457. background: var(--background-primary);
  458. flex-grow: 1;
  459. }
  460. .file-list li {
  461. display: flex;
  462. padding: 10px;
  463. border-bottom: 1px solid var(--border-primary);
  464. cursor: pointer;
  465. transition: background-color var(--transition-medium);
  466. }
  467. .file-list li:hover {
  468. background-color: var(--background-tertiary);
  469. }
  470. .file-list li.selected {
  471. background: var(--theme-primary);
  472. color: var(--text-secondary);
  473. font-weight: bold;
  474. }
  475. .file-list li.selected .filename {
  476. font-weight: bold;
  477. color: var(--text-secondary);
  478. }
  479. .file-list button {
  480. margin-left: 5px;
  481. background: none;
  482. color: black;
  483. font-weight: bold;
  484. height: 40px;
  485. width: 40px;
  486. flex: 0 0 auto;
  487. display: flex;
  488. justify-content: center;
  489. align-items: center;
  490. }
  491. .file-list button:hover:not(:focus) {
  492. background: var(--background-primary);
  493. box-shadow: inset 0 0 4px var(--border-secondary);
  494. }
  495. .file-list button.remove-button {
  496. color: var(--color-error);
  497. }
  498. .title-container {
  499. display: flex;
  500. justify-content: space-between;
  501. align-items: center;
  502. }
  503. .rename-button {
  504. margin-left: 10px;
  505. background: var(--theme-primary-hover);
  506. color: var(--text-secondary);
  507. border: none;
  508. border-radius: 5px;
  509. padding: 5px 10px;
  510. cursor: pointer;
  511. transition: background 0.3s ease;
  512. }
  513. /* Bottom Navigation */
  514. .bottom-nav {
  515. display: flex;
  516. position: sticky;
  517. justify-content: space-around;
  518. bottom: 0;
  519. height: 60px;
  520. width: 100%;
  521. border-top: 1px solid var(--theme-primary);
  522. flex-wrap: wrap;
  523. z-index: 10;
  524. }
  525. .tab-button {
  526. flex: 1;
  527. height: 60px;
  528. padding: 20px 10px;
  529. text-align: center;
  530. font-size: 1rem;
  531. font-weight: bold;
  532. color: var(--text-secondary);
  533. background: none;
  534. border: none;
  535. cursor: pointer;
  536. transition: background 0.3s ease;
  537. background: var(--background-info);
  538. backdrop-filter: blur(2px);
  539. border-radius: 0;
  540. }
  541. .bottom-nav .tab-button.active {
  542. background: rgba(255, 255, 255, 0.75);
  543. color: var(--theme-primary);
  544. }
  545. /* Quick Action Buttons */
  546. .action-buttons {
  547. display: flex;
  548. gap: 10px;
  549. flex-wrap: wrap;
  550. width: 100%;
  551. justify-content: space-between;
  552. }
  553. .action-buttons .scrollable-selection {
  554. width: calc(50% - 10px);
  555. }
  556. .action-buttons.square button {
  557. padding: 5px;
  558. aspect-ratio: 1 / 1;
  559. width: calc(25% - 10px);
  560. flex-direction: column;
  561. justify-content: center;
  562. align-items: center;
  563. }
  564. .action-buttons.square button i{
  565. font-size: 2.5rem;
  566. }
  567. button i + span{
  568. font-size: 1.25rem;
  569. }
  570. button i + span{
  571. margin-left: 5px;
  572. }
  573. .action-buttons.square button i + span{
  574. margin: 3px;
  575. }
  576. button i + span.small {
  577. font-size: 0.75rem;
  578. }
  579. .action-buttons button i + span{
  580. display: block;
  581. }
  582. .action-buttons button.m {
  583. width: calc(50% - 10px);
  584. }
  585. .action-buttons button.l {
  586. width: 100%;
  587. }
  588. .action-buttons button.small {
  589. flex: 0;
  590. flex-basis: calc(25% - 10px);
  591. }
  592. .action-buttons button.cta {
  593. flex-grow: 1;
  594. }
  595. button#debug_button {
  596. width: 40px;
  597. padding: 0;
  598. height: 40px;
  599. background: transparent;
  600. color: var(--text-primary);
  601. font-size: 1.5rem;
  602. margin-left: 40px;
  603. flex: 0 0 auto;
  604. transition: var(--transition-medium) all;
  605. }
  606. button#debug_button:hover,
  607. button#debug_button.active {
  608. box-shadow: inset 0 0 4px var(--border-secondary);
  609. }
  610. #device-tab .dropdown {
  611. width: 50%;
  612. }
  613. #settings-container {
  614. position: absolute;
  615. top: 0;
  616. left: 0;
  617. width: 100%;
  618. height: 100%;
  619. background-color: #FFFFFF80;
  620. backdrop-filter: blur(10px);
  621. z-index: 1000;
  622. overflow-y: auto;
  623. display: none; /* Hidden by default */
  624. flex-direction: column;
  625. }
  626. #settings-container.open{
  627. display: flex;
  628. }
  629. #open-settings-button {
  630. aspect-ratio: auto;
  631. }
  632. #open-settings-button span {
  633. order: -1;
  634. margin-right: 5px;
  635. }
  636. /* Preview Canvas */
  637. #patternPreviewCanvas {
  638. width: 100%;
  639. max-width: 300px;
  640. aspect-ratio: 1/1;
  641. border: 1px solid var(--border-primary);
  642. background: var(--theme-secondary);
  643. border-radius: 100%;
  644. padding: 15px;
  645. }
  646. #pattern-preview {
  647. display: flex;
  648. flex-direction: column;
  649. align-items: center;
  650. margin-bottom: 20px;
  651. }
  652. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  653. width: initial;
  654. max-width: calc(100vw - 30px);
  655. }
  656. .pre-execution {
  657. width: 100%;
  658. display: flex;
  659. }
  660. .pre-execution h3 {
  661. flex-grow: 1;
  662. margin: 0;
  663. align-content: center;
  664. }
  665. .pre-execution .control-group {
  666. width: auto;
  667. flex-grow: 1;
  668. margin: 0;
  669. }
  670. .pre-execution select {
  671. margin: 0;
  672. }
  673. /* Currently Playing Section Styling */
  674. body.playing .bottom-nav {
  675. height: 200px;
  676. align-items: flex-end;
  677. }
  678. #currently-playing-container {
  679. align-items: center;
  680. background: var(--background-accent);
  681. color: var(--text-secondary);
  682. }
  683. #currently-playing-container h3,
  684. #currently-playing-container .open-button
  685. {
  686. color: var(--text-secondary);
  687. }
  688. #currently-playing-container h3 {
  689. margin: 0;
  690. }
  691. body:not(.playing) #currently-playing-container {
  692. display: none;
  693. }
  694. #currently-playing-container.open {
  695. max-height: none;
  696. bottom: 60px;
  697. }
  698. body.playing #currently-playing-container:not(.open) {
  699. height: 140px;
  700. overflow:hidden;
  701. flex-direction: row;
  702. flex-wrap: wrap;
  703. bottom: 60px;
  704. }
  705. body.playing #currently-playing-container .header{
  706. justify-content: center;
  707. margin-bottom: 0;
  708. }
  709. body.playing #currently-playing-container .header .open-button {
  710. width: 100%;
  711. height: 20px;
  712. padding-top: 10px;
  713. margin: 0;
  714. }
  715. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  716. max-width:100px;
  717. padding: 5px;
  718. }
  719. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  720. body.playing #currently-playing-container:not(.open) .header .close-button,
  721. body.playing #currently-playing-container:not(.open) .header h3 {
  722. display: none;
  723. }
  724. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  725. flex-grow: 1;
  726. flex-basis: 50%;
  727. align-items: flex-start;
  728. margin: 0 0 0 10px;
  729. overflow-y: auto;
  730. }
  731. body.playing #currently-playing-container:not(.open) .play-buttons button {
  732. width: 50px;
  733. height: 50px;
  734. font-size: 1.5rem;
  735. }
  736. body.playing #currently-playing-container:not(.open) #progress-container {
  737. width: 100%;
  738. }
  739. #currentlyPlayingCanvas {
  740. width: 100%;
  741. max-width: 300px;
  742. aspect-ratio: 1/1;
  743. border: 1px solid var(--border-primary);
  744. background: var(--theme-secondary);
  745. border-radius: 100%;
  746. padding: 10px;
  747. }
  748. #currently-playing-details {
  749. display: flex;
  750. flex-direction: column;
  751. align-items: center;
  752. margin-bottom: 15px;
  753. }
  754. #currently-playing-details p {
  755. margin: 5px 0;
  756. font-size: 1rem;
  757. }
  758. #progress-container {
  759. display: flex;
  760. align-items: center;
  761. justify-content: center;
  762. width: 100%;
  763. flex-wrap: wrap;
  764. }
  765. #play_progress {
  766. width: auto;
  767. flex-grow: 1;
  768. height: 8px;
  769. appearance: none;
  770. background-color: var(--border-primary);
  771. border-radius: 4px;
  772. overflow: hidden;
  773. }
  774. #play_progress::-webkit-progress-bar {
  775. background-color: var(--border-primary);
  776. }
  777. #play_progress::-webkit-progress-value {
  778. background-color: var(--theme-primary);
  779. transition: width 0.25s ease;
  780. }
  781. #play_progress_text {
  782. font-size: 0.9rem;
  783. margin-left: 10px;
  784. }
  785. .play-buttons {
  786. display: flex;
  787. gap: 20px;
  788. }
  789. .play-buttons button {
  790. width: 75px;
  791. height: 75px;
  792. aspect-ratio: 1/1;
  793. font-size: 3rem;
  794. border: none;
  795. cursor: pointer;
  796. display: flex;
  797. justify-content: center;
  798. }
  799. #pausePlayCurrent {
  800. border-radius: 50%;
  801. }
  802. /* Debug Log */
  803. #status_log {
  804. background: #000;
  805. color: var(--text-secondary);
  806. font-family: monospace;
  807. font-size: 0.9rem;
  808. border-top: 1px solid var(--border-primary);
  809. padding: 10px;
  810. max-height: 200px;
  811. overflow-y: scroll;
  812. display: none;
  813. width: 100%;
  814. }
  815. #status_log p {
  816. margin: 0;
  817. }
  818. .control-group {
  819. display: flex;
  820. margin-bottom: 10px;
  821. flex-wrap: wrap;
  822. width: 100%;
  823. align-items: center;
  824. justify-content: space-between;
  825. gap: 0 10px;
  826. }
  827. .control-group input {
  828. margin-bottom: 0;
  829. }
  830. .control-group h3 {
  831. width: 100%;
  832. }
  833. .control-group .item {
  834. display: flex;
  835. align-items: center;
  836. flex: 1;
  837. }
  838. .control-group .item.cta {
  839. justify-content: flex-end;
  840. }
  841. .control-group .item.column {
  842. flex-direction: column;
  843. text-align: center;
  844. }
  845. .control-group .item label {
  846. padding: 5px;
  847. }
  848. #serial_ports_container > * {
  849. display: inline-block;
  850. }
  851. #serial_ports_container select {
  852. margin: 10px;
  853. flex-basis: 100px;
  854. flex-grow: 0;
  855. }
  856. #serial_ports {
  857. width: auto;
  858. min-width: 200px;
  859. }
  860. #serial_status_container {
  861. margin-bottom: 10px;
  862. }
  863. #serial_status_header::before {
  864. content: '';
  865. width: 20px;
  866. height: 20px;
  867. border-radius: 50%;
  868. margin-right: 8px;
  869. background-color: var(--text-primary);
  870. display: inline-block;
  871. transition: var(--transition-slow) background-color;
  872. }
  873. #serial_status_header.connected::before {
  874. background-color: var(--color-success);
  875. }
  876. #serial_status_header.not-connected::before {
  877. background-color: var(--color-error);
  878. }
  879. #serial_ports_buttons {
  880. display: flex;
  881. gap: 10px;
  882. }
  883. .status.connected {
  884. color: var(--color-success);
  885. font-weight: bold;
  886. }
  887. .status.not-connected {
  888. color: var(--color-error);
  889. font-weight: bold;
  890. }
  891. /* Speed Control Section */
  892. .speed-control {
  893. display: flex;
  894. }
  895. .speed-control label {
  896. font-weight: bold;
  897. font-size: 1rem;
  898. color: var(--text-primary);
  899. flex-shrink: 0;
  900. }
  901. .speed-control input[type="number"] {
  902. width: 100px; /* Consistent input width */
  903. padding: 8px;
  904. font-size: 1rem;
  905. border: 1px solid var(--border-primary);
  906. border-radius: 5px;
  907. outline: none;
  908. transition: all 0.3s ease;
  909. }
  910. input[type="number"]:focus {
  911. border-color: var(--theme-primary);
  912. box-shadow: 0 0 4px var(--background-info);
  913. }
  914. #speed_status {
  915. margin-top: 10px;
  916. font-size: 0.9rem;
  917. }
  918. #serial_ports_container > * {
  919. display: inline-block;
  920. }
  921. #serial_ports_container select {
  922. margin: 10px;
  923. flex-basis: 100px;
  924. flex-grow: 0;
  925. }
  926. #serial_ports {
  927. width: auto;
  928. min-width: 200px;
  929. }
  930. /* Notification Styles */
  931. .notification {
  932. display: flex;
  933. position: absolute;
  934. top: 0;
  935. left: 0;
  936. font-weight: bold;
  937. z-index: 1000;
  938. color: var(--text-secondary);
  939. width: 100%;
  940. height: 100%;
  941. justify-content: center;
  942. align-items: center;
  943. backdrop-filter: blur(2px);
  944. opacity: 0;
  945. transition: opacity var(--transition-medium);
  946. cursor: pointer;
  947. }
  948. .notification.show {
  949. opacity: 1; /* Fully visible */
  950. }
  951. .notification .close-button {
  952. color: var(--text-secondary);
  953. font-size: 1.5rem;
  954. top: 0;
  955. right: 0;
  956. position: absolute;
  957. }
  958. /* Notification Types */
  959. .notification.success { background-color: var(--background-success); }
  960. .notification.warning { background-color: var(--background-warning); }
  961. .notification.error { background-color: var(--background-error); }
  962. .notification.info { background-color: var(--background-info); }
  963. .footer {
  964. align-items: center;
  965. display: flex;
  966. flex-wrap: wrap;
  967. justify-content: space-between;
  968. margin-bottom: 20px;
  969. width: 100%;
  970. }
  971. #github {
  972. align-content: center;
  973. display: flex;
  974. font-size: 0.8em;
  975. }
  976. #github img {
  977. margin: 0 5px
  978. }
  979. /* Responsive Design */
  980. @media (max-width: 1023px) {
  981. body {
  982. font-size: 0.9rem;
  983. }
  984. .tab-button {
  985. font-size: 0.9rem;
  986. }
  987. .footer {
  988. display: none;
  989. }
  990. button.cancel {
  991. background: var(--color-error);
  992. }
  993. button.cta {
  994. background: var(--color-success);
  995. }
  996. button.warn {
  997. background: var(--color-warning);
  998. }
  999. button.cancel:hover,
  1000. button.warn:hover,
  1001. button.cta:hover {
  1002. background: var(--theme-primary);
  1003. }
  1004. body.playing section.sticky{
  1005. bottom: 200px;
  1006. }
  1007. }
  1008. /* On larger screens, display all tabs in a 3-column grid */
  1009. @media screen and (min-width: 1024px) {
  1010. .app {
  1011. display: grid;
  1012. grid-template-columns: repeat(3, 1fr);
  1013. gap: 0 16px;
  1014. height: calc(100vh - 60px);
  1015. padding: 0 15px;
  1016. }
  1017. #status_log {
  1018. grid-column: span 3;
  1019. align-self: flex-end;
  1020. height: 100%;
  1021. }
  1022. section.sticky {
  1023. position: sticky;
  1024. bottom: 0;
  1025. }
  1026. .bottom-nav .tab-button {
  1027. display: none;
  1028. }
  1029. .bottom-nav {
  1030. border-top: 0;
  1031. }
  1032. /* Show all tabs in grid layout */
  1033. .tab-content {
  1034. display: flex !important; /* Always display tab-content */
  1035. flex-direction: column;
  1036. border: 1px solid var(--border-primary);
  1037. background-color: var(--background-primary);
  1038. border-radius: 8px;
  1039. overflow-y: auto;
  1040. overflow-x: hidden;
  1041. position: relative;
  1042. }
  1043. body.playing .app {
  1044. padding: 15px 0 150px 15px;
  1045. margin-bottom: -140px;
  1046. }
  1047. body.playing .bottom-nav {
  1048. height: 140px;
  1049. }
  1050. body:not(.playing) .bottom-nav {
  1051. display: none;
  1052. }
  1053. body.playing #currently-playing-container.open {
  1054. position: absolute;
  1055. bottom: 0;
  1056. }
  1057. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  1058. flex-direction: row;
  1059. align-items: center;
  1060. }
  1061. #currently-playing-container h3 {
  1062. flex-grow: 1;
  1063. }
  1064. body.playing #currently-playing-container.open .header {
  1065. display: none;
  1066. }
  1067. #open-settings-button span {
  1068. opacity: 0;
  1069. transition: var(--transition-medium) opacity;
  1070. }
  1071. #open-settings-button:hover span {
  1072. opacity: 1;
  1073. }
  1074. }