style.css 22 KB

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