style.css 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244
  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 h3,
  657. #currently-playing-container .open-button
  658. {
  659. color: var(--text-secondary);
  660. }
  661. #currently-playing-container h3 {
  662. margin: 0;
  663. }
  664. body:not(.playing) #currently-playing-container {
  665. display: none;
  666. }
  667. #currently-playing-container.open {
  668. max-height: none;
  669. bottom: 60px;
  670. }
  671. body.playing #currently-playing-container:not(.open) {
  672. height: 140px;
  673. overflow:hidden;
  674. flex-direction: row;
  675. flex-wrap: wrap;
  676. bottom: 60px;
  677. }
  678. body.playing #currently-playing-container .header{
  679. justify-content: center;
  680. margin-bottom: 0;
  681. }
  682. body.playing #currently-playing-container .header .open-button {
  683. width: 100%;
  684. height: 20px;
  685. padding-top: 10px;
  686. margin: 0;
  687. }
  688. body.playing #currently-playing-preview {
  689. padding: 10px;
  690. }
  691. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  692. max-width:80px;
  693. padding: 5px;
  694. }
  695. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  696. body.playing #currently-playing-container:not(.open) .header .close-button,
  697. body.playing #currently-playing-container:not(.open) .header h3 {
  698. display: none;
  699. }
  700. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  701. flex-grow: 1;
  702. flex-basis: 50%;
  703. align-items: flex-start;
  704. margin: 0 0 0 10px;
  705. overflow-y: scroll;
  706. }
  707. body.playing #currently-playing-container:not(.open) .play-buttons button {
  708. width: 50px;
  709. height: 50px;
  710. font-size: 1.5rem;
  711. }
  712. body.playing #currently-playing-container:not(.open) #progress-container {
  713. width: 100%;
  714. }
  715. body.playing #currently-playing-container:not(.open) #play_progress_text {
  716. display: none;
  717. }
  718. #currentlyPlayingCanvas {
  719. width: 100%;
  720. max-width: 300px;
  721. aspect-ratio: 1/1;
  722. border: 1px solid var(--border-primary);
  723. background: var(--theme-secondary);
  724. border-radius: 100%;
  725. padding: 10px;
  726. }
  727. #currently-playing-details {
  728. display: flex;
  729. flex-direction: column;
  730. align-items: center;
  731. margin-bottom: 15px;
  732. }
  733. #currently-playing-details p {
  734. margin: 5px 0;
  735. font-size: 1rem;
  736. }
  737. #progress-container {
  738. display: flex;
  739. align-items: center;
  740. justify-content: center;
  741. width: 100%;
  742. margin: 5px 0;
  743. flex-wrap: wrap;
  744. }
  745. #play_progress {
  746. width: 100%;
  747. height: 8px;
  748. appearance: none;
  749. background-color: var(--border-primary);
  750. border-radius: 4px;
  751. overflow: hidden;
  752. }
  753. #play_progress::-webkit-progress-bar {
  754. background-color: var(--border-primary);
  755. }
  756. #play_progress::-webkit-progress-value {
  757. background-color: var(--theme-primary);
  758. transition: width 0.25s ease;
  759. }
  760. #play_progress_text {
  761. font-size: 0.9rem;
  762. margin-left: 10px;
  763. }
  764. .play-buttons {
  765. display: flex;
  766. gap: 20px;
  767. }
  768. .play-buttons button {
  769. width: 75px;
  770. height: 75px;
  771. aspect-ratio: 1/1;
  772. font-size: 3rem;
  773. border: none;
  774. cursor: pointer;
  775. display: flex;
  776. justify-content: center;
  777. }
  778. #pausePlayCurrent {
  779. border-radius: 50%;
  780. }
  781. /* Debug Log */
  782. #status_log {
  783. background: #000;
  784. color: var(--text-secondary);
  785. font-family: monospace;
  786. font-size: 0.9rem;
  787. border-top: 1px solid var(--border-primary);
  788. padding: 10px;
  789. max-height: 200px;
  790. overflow-y: scroll;
  791. display: none;
  792. width: 100%;
  793. }
  794. #status_log p {
  795. margin: 0;
  796. }
  797. .control-group {
  798. display: flex;
  799. margin-bottom: 10px;
  800. flex-wrap: wrap;
  801. width: 100%;
  802. align-items: center;
  803. justify-content: space-between;
  804. gap: 0 10px;
  805. }
  806. .control-group input {
  807. margin-bottom: 0;
  808. }
  809. .control-group h3 {
  810. width: 100%;
  811. }
  812. .control-group .item {
  813. display: flex;
  814. align-items: center;
  815. flex: 1;
  816. }
  817. .control-group .item.cta {
  818. justify-content: flex-end;
  819. }
  820. .control-group .item.column {
  821. flex-direction: column;
  822. text-align: center;
  823. }
  824. .control-group .item label {
  825. padding: 5px;
  826. }
  827. #serial_ports_container > * {
  828. display: inline-block;
  829. }
  830. #serial_ports_container select {
  831. margin: 10px;
  832. flex-basis: 100px;
  833. flex-grow: 0;
  834. }
  835. #serial_ports {
  836. width: auto;
  837. min-width: 200px;
  838. }
  839. #serial_status_container {
  840. margin-bottom: 10px;
  841. }
  842. #serial_status_header::before {
  843. content: '';
  844. width: 20px;
  845. height: 20px;
  846. border-radius: 50%;
  847. margin-right: 8px;
  848. background-color: var(--text-primary);
  849. display: inline-block;
  850. transition: var(--transition-slow) background-color;
  851. }
  852. #serial_status_header.connected::before {
  853. background-color: var(--color-success);
  854. }
  855. #serial_status_header.not-connected::before {
  856. background-color: var(--color-error);
  857. }
  858. #serial_ports_buttons {
  859. display: flex;
  860. gap: 10px;
  861. }
  862. .status.connected {
  863. color: var(--color-success);
  864. font-weight: bold;
  865. }
  866. .status.not-connected {
  867. color: var(--color-error);
  868. font-weight: bold;
  869. }
  870. /* Speed Control Section */
  871. .speed-control {
  872. display: flex;
  873. }
  874. .speed-control label {
  875. font-weight: bold;
  876. font-size: 1rem;
  877. color: var(--text-primary);
  878. flex-shrink: 0;
  879. }
  880. .speed-control input[type="number"] {
  881. width: 100px; /* Consistent input width */
  882. padding: 8px;
  883. font-size: 1rem;
  884. border: 1px solid var(--border-primary);
  885. border-radius: 5px;
  886. outline: none;
  887. transition: all 0.3s ease;
  888. }
  889. input[type="number"]:focus {
  890. border-color: var(--theme-primary);
  891. box-shadow: 0 0 4px var(--background-info);
  892. }
  893. #speed_status {
  894. margin-top: 10px;
  895. font-size: 0.9rem;
  896. }
  897. #serial_ports_container > * {
  898. display: inline-block;
  899. }
  900. #serial_ports_container select {
  901. margin: 10px;
  902. flex-basis: 100px;
  903. flex-grow: 0;
  904. }
  905. #serial_ports {
  906. width: auto;
  907. min-width: 200px;
  908. }
  909. /* Notification Styles */
  910. .notification {
  911. display: flex;
  912. position: absolute;
  913. top: 0;
  914. left: 0;
  915. font-weight: bold;
  916. z-index: 1000;
  917. color: var(--text-secondary);
  918. width: 100%;
  919. height: 100%;
  920. justify-content: center;
  921. align-items: center;
  922. backdrop-filter: blur(2px);
  923. opacity: 0;
  924. transition: opacity var(--transition-medium);
  925. }
  926. .notification.show {
  927. opacity: 1; /* Fully visible */
  928. }
  929. .notification .close-button {
  930. color: var(--text-secondary);
  931. font-size: 1.5rem;
  932. top: 0;
  933. right: 0;
  934. position: absolute;
  935. }
  936. /* Notification Types */
  937. .notification.success { background-color: var(--background-success); }
  938. .notification.warning { background-color: var(--background-warning); }
  939. .notification.error { background-color: var(--background-error); }
  940. .notification.info { background-color: var(--background-info); }
  941. .footer {
  942. align-items: center;
  943. display: flex;
  944. flex-wrap: wrap;
  945. justify-content: space-between;
  946. margin-bottom: 20px;
  947. width: 100%;
  948. }
  949. #github {
  950. align-content: center;
  951. display: flex;
  952. font-size: 0.8em;
  953. }
  954. #github img {
  955. margin: 0 5px
  956. }
  957. /* Responsive Design */
  958. @media (max-width: 1023px) {
  959. body {
  960. font-size: 0.9rem;
  961. }
  962. .tab-button {
  963. font-size: 0.9rem;
  964. }
  965. .footer {
  966. display: none;
  967. }
  968. button.cancel {
  969. background: var(--color-error);
  970. }
  971. button.cta {
  972. background: var(--color-success);
  973. }
  974. button.warn {
  975. background: var(--color-warning);
  976. }
  977. button.cancel:hover,
  978. button.warn:hover,
  979. button.cta:hover {
  980. background: var(--theme-primary);
  981. }
  982. body.playing section.sticky{
  983. bottom: 200px;
  984. }
  985. }
  986. /* On larger screens, display all tabs in a 3-column grid */
  987. @media screen and (min-width: 1024px) {
  988. .app {
  989. display: grid;
  990. grid-template-columns: repeat(3, 1fr);
  991. gap: 0 16px;
  992. height: calc(100vh - 60px);
  993. padding: 0 15px;
  994. }
  995. #status_log {
  996. grid-column: span 3;
  997. align-self: flex-end;
  998. height: 100%;
  999. }
  1000. section.sticky {
  1001. position: sticky;
  1002. bottom: 0;
  1003. }
  1004. .bottom-nav .tab-button {
  1005. display: none;
  1006. }
  1007. .bottom-nav {
  1008. border-top: 0;
  1009. }
  1010. /* Show all tabs in grid layout */
  1011. .tab-content {
  1012. display: flex !important; /* Always display tab-content */
  1013. flex-direction: column;
  1014. border: 1px solid var(--border-primary);
  1015. background-color: var(--background-primary);
  1016. border-radius: 8px;
  1017. overflow-y: auto;
  1018. overflow-x: hidden;
  1019. position: relative;
  1020. }
  1021. body.playing .app {
  1022. padding: 15px 0 150px 15px;
  1023. margin-bottom: -140px;
  1024. }
  1025. body.playing .bottom-nav {
  1026. height: 140px;
  1027. }
  1028. body:not(.playing) .bottom-nav {
  1029. display: none;
  1030. }
  1031. body.playing #currently-playing-container.open {
  1032. position: absolute;
  1033. bottom: 0;
  1034. }
  1035. body.playing #currently-playing-container.open .header {
  1036. display: none;
  1037. }
  1038. #open-settings-button span {
  1039. opacity: 0;
  1040. transition: var(--transition-medium) opacity;
  1041. }
  1042. #open-settings-button:hover span {
  1043. opacity: 1;
  1044. }
  1045. }