style.css 24 KB

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