style.css 31 KB

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