style.css 23 KB

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