style.css 23 KB

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