style.css 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552
  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: 100%;
  736. max-width: 300px;
  737. aspect-ratio: 1/1;
  738. border: 1px solid var(--border-primary);
  739. background: var(--theme-secondary);
  740. border-radius: 100%;
  741. padding: 15px;
  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: 100px;
  834. aspect-ratio: 1/1;
  835. border: 1px solid var(--border-primary);
  836. background: var(--theme-secondary);
  837. border-radius: 100%;
  838. padding: 10px;
  839. }
  840. #currently-playing-details {
  841. display: flex;
  842. flex-direction: column;
  843. align-items: center;
  844. margin-bottom: 15px;
  845. }
  846. #currently-playing-details p {
  847. margin: 5px 0;
  848. font-size: 1rem;
  849. }
  850. #currently-playing-file,
  851. #next-file {
  852. white-space: nowrap;
  853. overflow: hidden;
  854. text-overflow: ellipsis;
  855. width: 100%;
  856. }
  857. #progress-container {
  858. display: flex;
  859. align-items: center;
  860. justify-content: center;
  861. width: 100%;
  862. flex-wrap: wrap;
  863. }
  864. #play_progress {
  865. width: auto;
  866. flex-grow: 1;
  867. height: 8px;
  868. appearance: none;
  869. background-color: var(--border-primary);
  870. border-radius: 4px;
  871. overflow: hidden;
  872. margin-right: 20px !important; /* Add forced margin to ensure spacing */
  873. }
  874. #play_progress_text {
  875. font-size: 0.9rem;
  876. min-width: 45px; /* Ensure consistent spacing for different percentages */
  877. flex-shrink: 0; /* Prevent text from shrinking */
  878. }
  879. /* Progress Bar Styles */
  880. #play_progress::-webkit-progress-bar {
  881. background-color: var(--border-primary);
  882. }
  883. #play_progress::-webkit-progress-value {
  884. background-color: var(--theme-primary);
  885. transition: width 0.25s ease;
  886. }
  887. /* Add dark mode specific styles */
  888. :root[data-theme="dark"] #play_progress {
  889. background-color: var(--background-tertiary-dark);
  890. }
  891. :root[data-theme="dark"] #play_progress::-webkit-progress-bar {
  892. background-color: var(--background-tertiary-dark);
  893. }
  894. :root[data-theme="dark"] #play_progress::-webkit-progress-value {
  895. background-color: var(--color-success); /* Using success color for better visibility */
  896. }
  897. /* Progress text color in dark mode */
  898. :root[data-theme="dark"] #play_progress_text {
  899. color: var(--text-secondary-dark);
  900. }
  901. .play-buttons {
  902. display: flex;
  903. gap: 20px;
  904. justify-content: flex-end;
  905. width: 100%;
  906. }
  907. .play-buttons button {
  908. width: 75px;
  909. height: 75px;
  910. aspect-ratio: 1/1;
  911. font-size: 3rem;
  912. border: none;
  913. cursor: pointer;
  914. display: flex;
  915. justify-content: center;
  916. }
  917. #pausePlayCurrent {
  918. border-radius: 50%;
  919. }
  920. body.playing #currently-playing-container.open {
  921. position: absolute;
  922. bottom: 0;
  923. }
  924. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  925. flex-direction: row;
  926. align-items: center;
  927. }
  928. #currently-playing-container h3 {
  929. flex-grow: 1;
  930. }
  931. body.playing #currently-playing-container.open .header {
  932. display: none;
  933. }
  934. #open-settings-button span {
  935. opacity: 0;
  936. transition: var(--transition-medium) opacity;
  937. }
  938. #open-settings-button:hover span {
  939. opacity: 1;
  940. }
  941. /* Debug Log */
  942. #status_log {
  943. background: #000;
  944. color: var(--text-secondary);
  945. font-family: monospace;
  946. font-size: 0.9rem;
  947. border-top: 1px solid var(--border-primary);
  948. padding: 10px;
  949. max-height: 200px;
  950. overflow-y: scroll;
  951. display: none;
  952. width: 100%;
  953. }
  954. #status_log p {
  955. margin: 0;
  956. }
  957. .control-group {
  958. display: flex;
  959. margin-bottom: 10px;
  960. flex-wrap: wrap;
  961. width: 100%;
  962. align-items: center;
  963. justify-content: space-between;
  964. gap: 0 10px;
  965. }
  966. .control-group input {
  967. margin-bottom: 0;
  968. }
  969. .control-group h3 {
  970. width: 100%;
  971. }
  972. .control-group .item {
  973. display: flex;
  974. align-items: center;
  975. flex: 1;
  976. }
  977. .control-group .item.cta {
  978. justify-content: flex-end;
  979. }
  980. .control-group .item.column {
  981. flex-direction: column;
  982. text-align: center;
  983. }
  984. .control-group .item label {
  985. padding: 5px;
  986. }
  987. #serial_ports_container > * {
  988. display: inline-block;
  989. }
  990. #serial_ports_container select {
  991. margin: 10px;
  992. flex-basis: 100px;
  993. flex-grow: 0;
  994. }
  995. #serial_ports {
  996. width: auto;
  997. min-width: 200px;
  998. }
  999. #serial_status_container {
  1000. margin-bottom: 10px;
  1001. }
  1002. #connection_status_header::before {
  1003. content: '';
  1004. width: 20px;
  1005. height: 20px;
  1006. border-radius: 50%;
  1007. margin-right: 8px;
  1008. background-color: var(--text-primary);
  1009. display: inline-block;
  1010. transition: var(--transition-slow) background-color;
  1011. }
  1012. #connection_status_header.connected::before {
  1013. background-color: var(--color-success);
  1014. }
  1015. #connection_status_header.not-connected::before {
  1016. background-color: var(--color-error);
  1017. }
  1018. #serial_ports_buttons {
  1019. display: flex;
  1020. gap: 10px;
  1021. }
  1022. .status.connected {
  1023. color: var(--color-success);
  1024. font-weight: bold;
  1025. }
  1026. .status.not-connected {
  1027. color: var(--color-error);
  1028. font-weight: bold;
  1029. }
  1030. /* Speed Control Section */
  1031. .speed-control {
  1032. display: flex;
  1033. }
  1034. .speed-control label {
  1035. font-weight: bold;
  1036. font-size: 1rem;
  1037. color: var(--text-primary);
  1038. flex-shrink: 0;
  1039. }
  1040. .speed-control input[type="number"] {
  1041. width: 100px; /* Consistent input width */
  1042. padding: 8px;
  1043. font-size: 1rem;
  1044. border: 1px solid var(--border-primary);
  1045. border-radius: 5px;
  1046. outline: none;
  1047. transition: all 0.3s ease;
  1048. }
  1049. input[type="number"]:focus {
  1050. border-color: var(--theme-primary);
  1051. box-shadow: 0 0 4px var(--background-info);
  1052. }
  1053. #speed_status {
  1054. margin-top: 10px;
  1055. font-size: 0.9rem;
  1056. }
  1057. #serial_ports_container > * {
  1058. display: inline-block;
  1059. }
  1060. #serial_ports_container select {
  1061. margin: 10px;
  1062. flex-basis: 100px;
  1063. flex-grow: 0;
  1064. }
  1065. #serial_ports {
  1066. width: auto;
  1067. min-width: 200px;
  1068. }
  1069. #wled-container {
  1070. flex: 1 1 auto;
  1071. display: flex;
  1072. flex-direction: column;
  1073. }
  1074. #wled_ip {
  1075. margin-right: 10px;
  1076. }
  1077. #wled-frame {
  1078. flex: 1 1 auto;
  1079. width: 100%;
  1080. border: none;
  1081. }
  1082. /* Notification Styles */
  1083. .notification {
  1084. display: flex;
  1085. position: absolute;
  1086. top: 0;
  1087. left: 0;
  1088. font-weight: bold;
  1089. z-index: 1000;
  1090. color: var(--text-secondary);
  1091. width: 100%;
  1092. height: 100%;
  1093. justify-content: center;
  1094. align-items: center;
  1095. backdrop-filter: blur(2px);
  1096. opacity: 0;
  1097. transition: opacity var(--transition-medium);
  1098. cursor: pointer;
  1099. }
  1100. .notification.show {
  1101. opacity: 1; /* Fully visible */
  1102. }
  1103. .notification .close-button {
  1104. color: var(--text-secondary);
  1105. font-size: 1.5rem;
  1106. top: 0;
  1107. right: 0;
  1108. position: absolute;
  1109. }
  1110. /* Notification Types */
  1111. .notification.success { background-color: var(--background-success); }
  1112. .notification.warning { background-color: var(--background-warning); }
  1113. .notification.error { background-color: var(--background-error); }
  1114. .notification.info { background-color: var(--background-info); }
  1115. .footer {
  1116. align-items: center;
  1117. display: flex;
  1118. flex-wrap: wrap;
  1119. justify-content: space-between;
  1120. margin-bottom: 20px;
  1121. width: 100%;
  1122. }
  1123. #github {
  1124. align-content: center;
  1125. display: flex;
  1126. font-size: 0.8em;
  1127. }
  1128. #github img {
  1129. margin: 0 5px
  1130. }
  1131. /* Responsive Design */
  1132. @media (max-width: 1023px) {
  1133. body {
  1134. font-size: 0.9rem;
  1135. }
  1136. .tab-button {
  1137. font-size: 0.9rem;
  1138. }
  1139. .footer {
  1140. display: none;
  1141. }
  1142. }
  1143. /* On larger screens, display all tabs in a 3-column grid */
  1144. @media screen and (min-width: 1024px) {
  1145. .app {
  1146. display: grid;
  1147. grid-template-columns: repeat(3, 1fr);
  1148. gap: 0 16px;
  1149. height: calc(100vh - 60px);
  1150. padding: 0 15px;
  1151. }
  1152. #status_log {
  1153. grid-column: span 3;
  1154. align-self: flex-end;
  1155. height: 100%;
  1156. }
  1157. section.sticky {
  1158. position: sticky;
  1159. bottom: 0;
  1160. }
  1161. .bottom-nav .tab-button {
  1162. display: none;
  1163. }
  1164. .bottom-nav {
  1165. border-top: 0;
  1166. }
  1167. /* Show all tabs in grid layout */
  1168. .tab-content {
  1169. flex-direction: column;
  1170. overflow-y: auto;
  1171. overflow-x: hidden;
  1172. position: relative;
  1173. }
  1174. .app > .tab-content {
  1175. display: flex !important; /* Always display main tab-content */
  1176. border-radius: 8px;
  1177. background-color: var(--background-primary);
  1178. border: 1px solid var(--border-primary);
  1179. }
  1180. body.playing .app {
  1181. padding: 15px 0 150px 15px;
  1182. margin-bottom: -140px;
  1183. }
  1184. body.playing .bottom-nav {
  1185. height: 140px;
  1186. }
  1187. body:not(.playing) .bottom-nav {
  1188. display: none;
  1189. }
  1190. }
  1191. /* Add specific styles for dark mode inputs */
  1192. :root[data-theme="dark"] input::placeholder,
  1193. :root[data-theme="dark"] select::placeholder,
  1194. :root[data-theme="dark"] textarea::placeholder {
  1195. color: #999;
  1196. }
  1197. /* Style the file list items in dark mode */
  1198. :root[data-theme="dark"] .file-list {
  1199. background: var(--background-secondary-dark);
  1200. }
  1201. :root[data-theme="dark"] .file-list li {
  1202. color: var(--text-primary-dark);
  1203. }
  1204. :root[data-theme="dark"] .file-list .filename {
  1205. color: var(--text-primary-dark);
  1206. }
  1207. :root[data-theme="dark"] .file-list li:hover {
  1208. background-color: var(--background-tertiary-dark);
  1209. }
  1210. :root[data-theme="dark"] .file-list button {
  1211. color: var(--text-primary-dark);
  1212. }
  1213. /* Update status log colors for dark mode */
  1214. :root[data-theme="dark"] #status_log {
  1215. background: #000000;
  1216. border-color: var(--border-primary-dark);
  1217. }
  1218. /* Update notification backgrounds for dark mode */
  1219. :root[data-theme="dark"] .notification {
  1220. /* Remove this line to keep original colors */
  1221. /* background-color: var(--background-secondary-dark); */
  1222. }
  1223. /* Notification Types - Update opacity for better visibility in dark mode */
  1224. :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
  1225. :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
  1226. :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
  1227. :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
  1228. /* Make notification text white for better contrast */
  1229. :root[data-theme="dark"] .notification {
  1230. color: white;
  1231. }
  1232. /* Update button colors for better visibility in dark mode */
  1233. :root[data-theme="dark"] button.no-bg:not(:hover) {
  1234. color: var(--text-primary-dark);
  1235. }
  1236. :root[data-theme="dark"] .file-list button:hover:not(:focus) {
  1237. background: var(--background-tertiary-dark);
  1238. box-shadow: inset 0 0 4px var(--border-secondary-dark);
  1239. }
  1240. /* Update custom checkbox/radio colors in dark mode */
  1241. :root[data-theme="dark"] .custom-checkbox,
  1242. :root[data-theme="dark"] .custom-radio {
  1243. border-color: var(--theme-primary-dark);
  1244. }
  1245. :root[data-theme="dark"] .custom-checkbox::after,
  1246. :root[data-theme="dark"] .custom-radio::after {
  1247. background-color: var(--theme-primary-dark);
  1248. }
  1249. :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
  1250. :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
  1251. background-color: var(--theme-primary-dark);
  1252. border-color: var(--theme-primary-hover-dark);
  1253. }
  1254. /* Update scroll arrow hover in dark mode */
  1255. :root[data-theme="dark"] .scroll-arrow:hover {
  1256. background: var(--theme-primary-hover-dark);
  1257. }
  1258. /* Update tab button hover in dark mode */
  1259. :root[data-theme="dark"] .tab-button {
  1260. background: var(--color-success);
  1261. color: var(--text-secondary);
  1262. }
  1263. :root[data-theme="dark"] .tab-button:hover {
  1264. background: var(--color-success);
  1265. }
  1266. :root[data-theme="dark"] .tab-button.active {
  1267. background: var(--background-secondary);
  1268. color: var(--text-secondary);
  1269. }
  1270. /* Override specific button hover states in dark mode */
  1271. :root[data-theme="dark"] button.cancel:hover {
  1272. background: var(--color-error) !important;
  1273. }
  1274. :root[data-theme="dark"] button.cta:hover {
  1275. background: var(--color-success-dark) !important;
  1276. }
  1277. :root[data-theme="dark"] button.warn:hover {
  1278. background: var(--color-warning) !important;
  1279. }
  1280. /* Update selection container button hover in dark mode */
  1281. :root[data-theme="dark"] .selection-container .nav-items > button:hover {
  1282. background: var(--text-secondary);
  1283. color: var(--theme-primary-dark);
  1284. }
  1285. :root[data-theme="dark"] .header #open-settings-button:hover {
  1286. background: var(--color-success-dark);
  1287. color: var(--text-primary-dark);
  1288. }
  1289. /* Make sure on mobile screens that only active tab content is shown */
  1290. @media screen and (max-width: 1023px) {
  1291. .app > .tab-content {
  1292. display: none;
  1293. }
  1294. .app > .tab-content.active {
  1295. display: flex;
  1296. }
  1297. }