1
0

style.css 23 KB

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