1
0

style.css 32 KB

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