style.css 31 KB

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