style.css 31 KB

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