style.css 33 KB

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