style.css 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541
  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: #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: #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. --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: 10;
  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(--color-success);
  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. background: var(--background-secondary);
  352. }
  353. .tab-content.active {
  354. display: flex;
  355. position: relative;
  356. flex-direction: column;
  357. }
  358. section {
  359. padding: 15px;
  360. display: flex;
  361. flex-direction: column;
  362. }
  363. section.main {
  364. flex-grow: 1;
  365. }
  366. section.debug {
  367. flex-direction: row;
  368. align-items: flex-end;
  369. justify-content: space-between;
  370. }
  371. section.version {
  372. flex-direction: row;
  373. justify-content: space-between;
  374. flex-wrap: wrap;
  375. }
  376. section#settings-container > section{
  377. padding-left: 0;
  378. padding-right: 0;
  379. }
  380. .version .header {
  381. width: 100%;
  382. }
  383. .version #motor_selection h3 {
  384. width: 100%;
  385. flex-grow: 1;
  386. }
  387. .version #motor_selection {
  388. display: flex;
  389. flex-direction: row;
  390. flex-wrap: wrap;
  391. width: 100%;
  392. }
  393. .version select#manual_motor_type {
  394. margin: 0 20px 0 0;
  395. flex: 1;
  396. }
  397. section.sticky {
  398. position: fixed;
  399. background-color: var(--background-translucent);
  400. backdrop-filter: blur(10px);
  401. bottom: 60px;
  402. border-top: 1px solid var(--border-primary);
  403. box-shadow: var(--shadow-primary);
  404. transform: translateY(0);
  405. transition: var(--transition-medium) transform, var(--transition-medium) height;
  406. visibility: visible;
  407. max-height: 75vh;
  408. width: 100%;
  409. z-index: 10;
  410. }
  411. section.sticky.fullscreen {
  412. position: fixed;
  413. top: 0;
  414. left: 0;
  415. width: 100vw;
  416. max-height: none;
  417. }
  418. section.sticky.hidden {
  419. transform: translateY(100%);
  420. visibility: hidden;
  421. width: 100%;
  422. position: absolute;
  423. overflow:hidden;
  424. height: 0;
  425. padding: 0;
  426. }
  427. section .header {
  428. position: relative;
  429. display: flex;
  430. justify-content: flex-end;
  431. align-items: center;
  432. margin-bottom: 10px;
  433. width: 100%;
  434. }
  435. section .header h2 {
  436. flex-grow: 1;
  437. }
  438. section .header #open-settings-button:hover{
  439. color: var(--theme-primary);
  440. }
  441. /* Close Button Styling */
  442. button.no-bg {
  443. background: none;
  444. border: none;
  445. font-size: 1.5rem;
  446. font-weight: bold;
  447. color: var(--text-primary);
  448. cursor: pointer;
  449. line-height: 1;
  450. padding: 0;
  451. height: 100%;
  452. width: auto;
  453. aspect-ratio: 1 / 1;
  454. display: flex;
  455. justify-content: center;
  456. align-items: center;
  457. margin-left: 10px;
  458. }
  459. .close-button:hover {
  460. color: var(--color-error);
  461. }
  462. .fullscreen-button:hover {
  463. color: var(--color-warning);
  464. }
  465. section .header .add-button {
  466. height: 35px;
  467. width: 35px;
  468. padding: 0;
  469. }
  470. /* Playlist */
  471. .add-to-playlist {
  472. margin-top: 15px;
  473. }
  474. .add-to-playlist button {
  475. margin-bottom: 10px;
  476. }
  477. .add-to-container {
  478. display: flex;
  479. flex-wrap: wrap;
  480. margin-bottom: 20px;
  481. }
  482. #add-to-playlist-container {
  483. display: flex;
  484. flex-wrap: wrap;
  485. }
  486. #add-to-playlist-container h3{
  487. margin: 0 10px 0 0;
  488. align-self: center;
  489. }
  490. #add-to-playlist-container select{
  491. width: auto;
  492. flex-grow: 1;
  493. margin: 0;
  494. }
  495. #add-to-playlist-container .action-buttons {
  496. margin-top: 10px;
  497. }
  498. .playlist-parameters {
  499. display: flex;
  500. flex-direction: column;
  501. gap: 10px;
  502. }
  503. .playlist-parameters .control-group button.small.cancel {
  504. align-self: flex-end;
  505. margin-bottom: 4px;
  506. }
  507. #clear_pattern {
  508. margin: 0;
  509. }
  510. .playlist-parameters .input-group input,
  511. .playlist-parameters .input-group select {
  512. width: 100%; /* Ensure inputs/selects stretch to full width */
  513. padding: 10px;
  514. border: 1px solid var(--border-primary);
  515. border-radius: 5px;
  516. font-size: 1rem;
  517. }
  518. .empty-placeholder {
  519. color: gray;
  520. font-style: italic;
  521. text-align: center;
  522. padding: 10px;
  523. }
  524. /* Style for the filename span */
  525. .filename {
  526. flex-grow: 1; /* Use available space */
  527. font-size: 1rem;
  528. color: var(--text-primary);
  529. margin-right: 10px; /* Space between filename and buttons */
  530. word-wrap: break-word;
  531. width: 100%;
  532. display: flex;
  533. align-items: center;
  534. }
  535. /* File List */
  536. .file-list {
  537. list-style: none;
  538. padding: 0;
  539. margin: 0;
  540. border: 1px solid var(--border-primary);
  541. border-radius: 5px;
  542. overflow-y: auto;
  543. background: var(--background-primary);
  544. flex-grow: 1;
  545. }
  546. .file-list#playlist_items{
  547. margin-bottom: 10px;
  548. max-height: 20vh;
  549. }
  550. .file-list li {
  551. display: flex;
  552. padding: 10px;
  553. border-bottom: 1px solid var(--border-primary);
  554. cursor: pointer;
  555. transition: background-color var(--transition-medium);
  556. }
  557. .file-list li:hover {
  558. background-color: var(--background-tertiary);
  559. }
  560. .file-list li.selected {
  561. background: var(--theme-primary);
  562. color: var(--text-secondary);
  563. font-weight: bold;
  564. }
  565. .file-list li.selected .filename {
  566. font-weight: bold;
  567. color: var(--text-secondary);
  568. }
  569. .file-list button {
  570. margin-left: 5px;
  571. background: none;
  572. color: black;
  573. font-weight: bold;
  574. height: 40px;
  575. width: 40px;
  576. flex: 0 0 auto;
  577. display: flex;
  578. justify-content: center;
  579. align-items: center;
  580. }
  581. .file-list button:hover:not(:focus) {
  582. background: var(--background-primary);
  583. box-shadow: inset 0 0 4px var(--border-secondary);
  584. }
  585. .file-list button.remove-button {
  586. color: var(--color-error);
  587. }
  588. .title-container {
  589. display: flex;
  590. justify-content: space-between;
  591. align-items: center;
  592. }
  593. .rename-button {
  594. margin-left: 10px;
  595. background: var(--theme-primary-hover);
  596. color: var(--text-secondary);
  597. border: none;
  598. border-radius: 5px;
  599. padding: 5px 10px;
  600. cursor: pointer;
  601. transition: background 0.3s ease;
  602. }
  603. /* Bottom Navigation */
  604. .bottom-nav {
  605. display: flex;
  606. position: sticky;
  607. justify-content: space-around;
  608. bottom: 0;
  609. height: 60px;
  610. width: 100%;
  611. border-top: 1px solid var(--theme-primary);
  612. flex-wrap: wrap;
  613. z-index: 10;
  614. }
  615. .tab-button {
  616. flex: 1;
  617. height: 60px;
  618. padding: 20px 10px;
  619. text-align: center;
  620. font-size: 1rem;
  621. font-weight: bold;
  622. color: var(--text-secondary);
  623. background: none;
  624. border: none;
  625. cursor: pointer;
  626. transition: background 0.3s ease;
  627. background: var(--background-info);
  628. backdrop-filter: blur(2px);
  629. border-radius: 0;
  630. }
  631. .bottom-nav .tab-button.active {
  632. background: rgba(255, 255, 255, 0.75);
  633. color: var(--theme-primary);
  634. }
  635. /* Quick Action Buttons */
  636. .action-buttons {
  637. display: flex;
  638. gap: 10px;
  639. flex-wrap: wrap;
  640. width: 100%;
  641. justify-content: space-between;
  642. }
  643. .action-buttons .scrollable-selection {
  644. width: calc(50% - 10px);
  645. }
  646. .action-buttons.square button {
  647. padding: 5px;
  648. aspect-ratio: 1 / 1;
  649. width: calc(25% - 10px);
  650. flex-direction: column;
  651. justify-content: center;
  652. align-items: center;
  653. }
  654. .action-buttons.square button i{
  655. font-size: 2.5rem;
  656. }
  657. button i + span{
  658. font-size: 1.25rem;
  659. }
  660. button i + span{
  661. margin-left: 5px;
  662. }
  663. .action-buttons.square button i + span{
  664. margin: 3px;
  665. }
  666. button i + span.small {
  667. font-size: 0.75rem;
  668. }
  669. .action-buttons button i + span{
  670. display: block;
  671. }
  672. .action-buttons button.m {
  673. width: calc(50% - 10px);
  674. }
  675. .action-buttons button.l {
  676. width: 100%;
  677. }
  678. .action-buttons button.small {
  679. flex: 0;
  680. flex-basis: calc(25% - 10px);
  681. }
  682. .action-buttons button.cta {
  683. flex-grow: 1;
  684. }
  685. button#debug_button {
  686. width: 40px;
  687. padding: 0;
  688. height: 40px;
  689. background: transparent;
  690. color: var(--text-primary);
  691. font-size: 1.5rem;
  692. margin-left: 40px;
  693. flex: 0 0 auto;
  694. transition: var(--transition-medium) all;
  695. }
  696. button#debug_button:hover,
  697. button#debug_button.active {
  698. box-shadow: inset 0 0 4px var(--border-secondary);
  699. }
  700. #device-tab .dropdown {
  701. width: 50%;
  702. }
  703. #settings-container {
  704. position: absolute;
  705. top: 0;
  706. left: 0;
  707. width: 100%;
  708. height: 100%;
  709. background-color: var(--background-translucent);
  710. backdrop-filter: blur(10px);
  711. z-index: 1000;
  712. overflow-y: auto;
  713. display: none; /* Hidden by default */
  714. flex-direction: column;
  715. }
  716. #settings-container.open{
  717. display: flex;
  718. }
  719. #open-settings-button {
  720. aspect-ratio: auto;
  721. }
  722. #open-settings-button span {
  723. order: -1;
  724. margin-right: 5px;
  725. }
  726. #theme-toggle .fa-sun:not(:hover) {
  727. color: #ffd700;
  728. }
  729. #theme-toggle .fa-moon:not(:hover) {
  730. color: var(--color-info);
  731. }
  732. /* Preview Canvas */
  733. #patternPreviewCanvas {
  734. width: 100%;
  735. max-width: 300px;
  736. aspect-ratio: 1/1;
  737. border: 1px solid var(--border-primary);
  738. background: var(--theme-secondary);
  739. border-radius: 100%;
  740. padding: 15px;
  741. }
  742. #pattern-preview {
  743. display: flex;
  744. flex-direction: column;
  745. align-items: center;
  746. margin-bottom: 20px;
  747. }
  748. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  749. width: initial;
  750. max-width: calc(100vw - 30px);
  751. }
  752. .pre-execution {
  753. width: 100%;
  754. display: flex;
  755. }
  756. .pre-execution h3 {
  757. flex-grow: 1;
  758. margin: 0;
  759. align-content: center;
  760. }
  761. .pre-execution .control-group {
  762. width: auto;
  763. flex-grow: 1;
  764. margin: 0;
  765. }
  766. .pre-execution select {
  767. margin: 0;
  768. }
  769. /* Currently Playing Section Styling */
  770. body.playing .bottom-nav {
  771. height: 200px;
  772. align-items: flex-end;
  773. }
  774. #currently-playing-container {
  775. align-items: center;
  776. background: var(--background-accent);
  777. color: var(--text-secondary);
  778. }
  779. #currently-playing-container h3,
  780. #currently-playing-container .open-button
  781. {
  782. color: var(--text-secondary);
  783. }
  784. #currently-playing-container h3 {
  785. margin: 0;
  786. }
  787. body:not(.playing) #currently-playing-container {
  788. display: none;
  789. }
  790. #currently-playing-container.open {
  791. max-height: none;
  792. bottom: 60px;
  793. }
  794. body.playing #currently-playing-container:not(.open) {
  795. height: 140px;
  796. overflow:hidden;
  797. flex-direction: row;
  798. flex-wrap: wrap;
  799. bottom: 60px;
  800. }
  801. body.playing #currently-playing-container .header{
  802. justify-content: center;
  803. margin-bottom: 0;
  804. }
  805. body.playing #currently-playing-container .header .open-button {
  806. width: 100%;
  807. height: 20px;
  808. padding-top: 10px;
  809. margin: 0;
  810. }
  811. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  812. max-width:100px;
  813. padding: 5px;
  814. }
  815. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  816. body.playing #currently-playing-container:not(.open) .header .close-button,
  817. body.playing #currently-playing-container:not(.open) .header h3 {
  818. display: none;
  819. }
  820. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  821. flex-grow: 1;
  822. flex-basis: 50%;
  823. align-items: flex-start;
  824. margin: 0 0 0 10px;
  825. overflow-y: auto;
  826. }
  827. body.playing #currently-playing-container:not(.open) .play-buttons button {
  828. width: 50px;
  829. height: 50px;
  830. font-size: 1.5rem;/* Center within flex container */
  831. }
  832. body.playing #currently-playing-container:not(.open) #progress-container {
  833. width: 100%;
  834. }
  835. #currentlyPlayingCanvas {
  836. width: 100%;
  837. max-width: 300px;
  838. aspect-ratio: 1/1;
  839. border: 1px solid var(--border-primary);
  840. background: var(--theme-secondary);
  841. border-radius: 100%;
  842. padding: 10px;
  843. }
  844. #currently-playing-details {
  845. display: flex;
  846. flex-direction: column;
  847. align-items: center;
  848. margin-bottom: 15px;
  849. }
  850. #currently-playing-details p {
  851. margin: 5px 0;
  852. font-size: 1rem;
  853. }
  854. #currently-playing-file,
  855. #next-file {
  856. white-space: nowrap;
  857. overflow: hidden;
  858. text-overflow: ellipsis;
  859. width: 100%;
  860. }
  861. #progress-container {
  862. display: flex;
  863. align-items: center;
  864. justify-content: center;
  865. width: 100%;
  866. flex-wrap: wrap;
  867. }
  868. #play_progress {
  869. width: auto;
  870. flex-grow: 1;
  871. height: 8px;
  872. appearance: none;
  873. background-color: var(--border-primary);
  874. border-radius: 4px;
  875. overflow: hidden;
  876. margin-right: 20px !important; /* Add forced margin to ensure spacing */
  877. }
  878. #play_progress_text {
  879. font-size: 0.9rem;
  880. min-width: 45px; /* Ensure consistent spacing for different percentages */
  881. flex-shrink: 0; /* Prevent text from shrinking */
  882. }
  883. /* Progress Bar Styles */
  884. #play_progress::-webkit-progress-bar {
  885. background-color: var(--border-primary);
  886. }
  887. #play_progress::-webkit-progress-value {
  888. background-color: var(--theme-primary);
  889. transition: width 0.25s ease;
  890. }
  891. /* Add dark mode specific styles */
  892. :root[data-theme="dark"] #play_progress {
  893. background-color: var(--background-tertiary-dark);
  894. }
  895. :root[data-theme="dark"] #play_progress::-webkit-progress-bar {
  896. background-color: var(--background-tertiary-dark);
  897. }
  898. :root[data-theme="dark"] #play_progress::-webkit-progress-value {
  899. background-color: var(--color-success); /* Using success color for better visibility */
  900. }
  901. /* Progress text color in dark mode */
  902. :root[data-theme="dark"] #play_progress_text {
  903. color: var(--text-secondary-dark);
  904. }
  905. .play-buttons {
  906. display: flex;
  907. gap: 20px;
  908. justify-content: flex-end;
  909. width: 100%;
  910. }
  911. .play-buttons button {
  912. width: 75px;
  913. height: 75px;
  914. aspect-ratio: 1/1;
  915. font-size: 3rem;
  916. border: none;
  917. cursor: pointer;
  918. display: flex;
  919. justify-content: center;
  920. }
  921. #pausePlayCurrent {
  922. border-radius: 50%;
  923. }
  924. body.playing #currently-playing-container.open {
  925. position: absolute;
  926. bottom: 0;
  927. }
  928. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  929. flex-direction: row;
  930. align-items: center;
  931. }
  932. #currently-playing-container h3 {
  933. flex-grow: 1;
  934. }
  935. body.playing #currently-playing-container.open .header {
  936. display: none;
  937. }
  938. #open-settings-button span {
  939. opacity: 0;
  940. transition: var(--transition-medium) opacity;
  941. }
  942. #open-settings-button:hover span {
  943. opacity: 1;
  944. }
  945. /* Debug Log */
  946. #status_log {
  947. background: #000;
  948. color: var(--text-secondary);
  949. font-family: monospace;
  950. font-size: 0.9rem;
  951. border-top: 1px solid var(--border-primary);
  952. padding: 10px;
  953. max-height: 200px;
  954. overflow-y: scroll;
  955. display: none;
  956. width: 100%;
  957. }
  958. #status_log p {
  959. margin: 0;
  960. }
  961. .control-group {
  962. display: flex;
  963. margin-bottom: 10px;
  964. flex-wrap: wrap;
  965. width: 100%;
  966. align-items: center;
  967. justify-content: space-between;
  968. gap: 0 10px;
  969. }
  970. .control-group input {
  971. margin-bottom: 0;
  972. }
  973. .control-group h3 {
  974. width: 100%;
  975. }
  976. .control-group .item {
  977. display: flex;
  978. align-items: center;
  979. flex: 1;
  980. }
  981. .control-group .item.cta {
  982. justify-content: flex-end;
  983. }
  984. .control-group .item.column {
  985. flex-direction: column;
  986. text-align: center;
  987. }
  988. .control-group .item label {
  989. padding: 5px;
  990. }
  991. #serial_ports_container > * {
  992. display: inline-block;
  993. }
  994. #serial_ports_container select {
  995. margin: 10px;
  996. flex-basis: 100px;
  997. flex-grow: 0;
  998. }
  999. #serial_ports {
  1000. width: auto;
  1001. min-width: 200px;
  1002. }
  1003. #serial_status_container {
  1004. margin-bottom: 10px;
  1005. }
  1006. #connection_status_header::before {
  1007. content: '';
  1008. width: 20px;
  1009. height: 20px;
  1010. border-radius: 50%;
  1011. margin-right: 8px;
  1012. background-color: var(--text-primary);
  1013. display: inline-block;
  1014. transition: var(--transition-slow) background-color;
  1015. }
  1016. #connection_status_header.connected::before {
  1017. background-color: var(--color-success);
  1018. }
  1019. #connection_status_header.not-connected::before {
  1020. background-color: var(--color-error);
  1021. }
  1022. #serial_ports_buttons {
  1023. display: flex;
  1024. gap: 10px;
  1025. }
  1026. .status.connected {
  1027. color: var(--color-success);
  1028. font-weight: bold;
  1029. }
  1030. .status.not-connected {
  1031. color: var(--color-error);
  1032. font-weight: bold;
  1033. }
  1034. /* Speed Control Section */
  1035. .speed-control {
  1036. display: flex;
  1037. }
  1038. .speed-control label {
  1039. font-weight: bold;
  1040. font-size: 1rem;
  1041. color: var(--text-primary);
  1042. flex-shrink: 0;
  1043. }
  1044. .speed-control input[type="number"] {
  1045. width: 100px; /* Consistent input width */
  1046. padding: 8px;
  1047. font-size: 1rem;
  1048. border: 1px solid var(--border-primary);
  1049. border-radius: 5px;
  1050. outline: none;
  1051. transition: all 0.3s ease;
  1052. }
  1053. input[type="number"]:focus {
  1054. border-color: var(--theme-primary);
  1055. box-shadow: 0 0 4px var(--background-info);
  1056. }
  1057. #speed_status {
  1058. margin-top: 10px;
  1059. font-size: 0.9rem;
  1060. }
  1061. #serial_ports_container > * {
  1062. display: inline-block;
  1063. }
  1064. #serial_ports_container select {
  1065. margin: 10px;
  1066. flex-basis: 100px;
  1067. flex-grow: 0;
  1068. }
  1069. #serial_ports {
  1070. width: auto;
  1071. min-width: 200px;
  1072. }
  1073. #wled-container {
  1074. flex: 1 1 auto;
  1075. display: flex;
  1076. flex-direction: column;
  1077. }
  1078. #wled_ip {
  1079. margin-right: 10px;
  1080. }
  1081. #wled-frame {
  1082. flex: 1 1 auto;
  1083. width: 100%;
  1084. border: none;
  1085. }
  1086. /* Notification Styles */
  1087. .notification {
  1088. display: flex;
  1089. position: absolute;
  1090. top: 0;
  1091. left: 0;
  1092. font-weight: bold;
  1093. z-index: 1000;
  1094. color: var(--text-secondary);
  1095. width: 100%;
  1096. height: 100%;
  1097. justify-content: center;
  1098. align-items: center;
  1099. backdrop-filter: blur(2px);
  1100. opacity: 0;
  1101. transition: opacity var(--transition-medium);
  1102. cursor: pointer;
  1103. }
  1104. .notification.show {
  1105. opacity: 1; /* Fully visible */
  1106. }
  1107. .notification .close-button {
  1108. color: var(--text-secondary);
  1109. font-size: 1.5rem;
  1110. top: 0;
  1111. right: 0;
  1112. position: absolute;
  1113. }
  1114. /* Notification Types */
  1115. .notification.success { background-color: var(--background-success); }
  1116. .notification.warning { background-color: var(--background-warning); }
  1117. .notification.error { background-color: var(--background-error); }
  1118. .notification.info { background-color: var(--background-info); }
  1119. .footer {
  1120. align-items: center;
  1121. display: flex;
  1122. flex-wrap: wrap;
  1123. justify-content: space-between;
  1124. margin-bottom: 20px;
  1125. width: 100%;
  1126. }
  1127. #github {
  1128. align-content: center;
  1129. display: flex;
  1130. font-size: 0.8em;
  1131. }
  1132. #github img {
  1133. margin: 0 5px
  1134. }
  1135. /* Responsive Design */
  1136. @media (max-width: 1023px) {
  1137. body {
  1138. font-size: 0.9rem;
  1139. }
  1140. .tab-button {
  1141. font-size: 0.9rem;
  1142. }
  1143. .footer {
  1144. display: none;
  1145. }
  1146. }
  1147. /* On larger screens, display all tabs in a 3-column grid */
  1148. @media screen and (min-width: 1024px) {
  1149. .app {
  1150. display: grid;
  1151. grid-template-columns: repeat(3, 1fr);
  1152. gap: 0 16px;
  1153. height: calc(100vh - 60px);
  1154. padding: 0 15px;
  1155. }
  1156. #status_log {
  1157. grid-column: span 3;
  1158. align-self: flex-end;
  1159. height: 100%;
  1160. }
  1161. section.sticky {
  1162. position: sticky;
  1163. bottom: 0;
  1164. }
  1165. .bottom-nav .tab-button {
  1166. display: none;
  1167. }
  1168. .bottom-nav {
  1169. border-top: 0;
  1170. }
  1171. /* Show all tabs in grid layout */
  1172. .tab-content {
  1173. display: flex !important; /* Always display tab-content */
  1174. flex-direction: column;
  1175. border: 1px solid var(--border-primary);
  1176. background-color: var(--background-primary);
  1177. border-radius: 8px;
  1178. overflow-y: auto;
  1179. overflow-x: hidden;
  1180. position: relative;
  1181. }
  1182. body.playing .app {
  1183. padding: 15px 0 150px 15px;
  1184. margin-bottom: -140px;
  1185. }
  1186. body.playing .bottom-nav {
  1187. height: 140px;
  1188. }
  1189. body:not(.playing) .bottom-nav {
  1190. display: none;
  1191. }
  1192. }
  1193. /* Add specific styles for dark mode inputs */
  1194. :root[data-theme="dark"] input::placeholder,
  1195. :root[data-theme="dark"] select::placeholder,
  1196. :root[data-theme="dark"] textarea::placeholder {
  1197. color: #999;
  1198. }
  1199. /* Style the file list items in dark mode */
  1200. :root[data-theme="dark"] .file-list {
  1201. background: var(--background-secondary-dark);
  1202. }
  1203. :root[data-theme="dark"] .file-list li {
  1204. color: var(--text-primary-dark);
  1205. }
  1206. :root[data-theme="dark"] .file-list .filename {
  1207. color: var(--text-primary-dark);
  1208. }
  1209. :root[data-theme="dark"] .file-list li:hover {
  1210. background-color: var(--background-tertiary-dark);
  1211. }
  1212. :root[data-theme="dark"] .file-list button {
  1213. color: var(--text-primary-dark);
  1214. }
  1215. /* Update status log colors for dark mode */
  1216. :root[data-theme="dark"] #status_log {
  1217. background: #000000;
  1218. border-color: var(--border-primary-dark);
  1219. }
  1220. /* Update notification backgrounds for dark mode */
  1221. :root[data-theme="dark"] .notification {
  1222. /* Remove this line to keep original colors */
  1223. /* background-color: var(--background-secondary-dark); */
  1224. }
  1225. /* Notification Types - Update opacity for better visibility in dark mode */
  1226. :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
  1227. :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
  1228. :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
  1229. :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
  1230. /* Make notification text white for better contrast */
  1231. :root[data-theme="dark"] .notification {
  1232. color: white;
  1233. }
  1234. /* Update button colors for better visibility in dark mode */
  1235. :root[data-theme="dark"] button.no-bg:not(:hover) {
  1236. color: var(--text-primary-dark);
  1237. }
  1238. :root[data-theme="dark"] .file-list button:hover:not(:focus) {
  1239. background: var(--background-tertiary-dark);
  1240. box-shadow: inset 0 0 4px var(--border-secondary-dark);
  1241. }
  1242. /* Update custom checkbox/radio colors in dark mode */
  1243. :root[data-theme="dark"] .custom-checkbox,
  1244. :root[data-theme="dark"] .custom-radio {
  1245. border-color: var(--theme-primary-dark);
  1246. }
  1247. :root[data-theme="dark"] .custom-checkbox::after,
  1248. :root[data-theme="dark"] .custom-radio::after {
  1249. background-color: var(--theme-primary-dark);
  1250. }
  1251. :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
  1252. :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
  1253. background-color: var(--theme-primary-dark);
  1254. border-color: var(--theme-primary-hover-dark);
  1255. }
  1256. /* Update scroll arrow hover in dark mode */
  1257. :root[data-theme="dark"] .scroll-arrow:hover {
  1258. background: var(--theme-primary-hover-dark);
  1259. }
  1260. /* Update tab button hover in dark mode */
  1261. :root[data-theme="dark"] .tab-button {
  1262. background: var(--color-success);
  1263. color: var(--text-secondary);
  1264. }
  1265. :root[data-theme="dark"] .tab-button:hover {
  1266. background: var(--color-success);
  1267. }
  1268. :root[data-theme="dark"] .tab-button.active {
  1269. background: var(--background-secondary);
  1270. color: var(--text-secondary);
  1271. }
  1272. /* Override specific button hover states in dark mode */
  1273. :root[data-theme="dark"] button.cancel:hover {
  1274. background: var(--color-error) !important;
  1275. }
  1276. :root[data-theme="dark"] button.cta:hover {
  1277. background: var(--color-success-dark) !important;
  1278. }
  1279. :root[data-theme="dark"] button.warn:hover {
  1280. background: var(--color-warning) !important;
  1281. }
  1282. /* Update selection container button hover in dark mode */
  1283. :root[data-theme="dark"] .selection-container .nav-items > button:hover {
  1284. background: var(--text-secondary);
  1285. color: var(--theme-primary-dark);
  1286. }
  1287. :root[data-theme="dark"] .header #open-settings-button:hover {
  1288. background: var(--color-success-dark);
  1289. color: var(--text-primary-dark);
  1290. }