style.css 33 KB

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