style.css 32 KB

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