style.css 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  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. max-height: 20vh;
  548. }
  549. .file-list li {
  550. display: flex;
  551. padding: 10px;
  552. border-bottom: 1px solid var(--border-primary);
  553. cursor: pointer;
  554. transition: background-color var(--transition-medium);
  555. }
  556. .file-list li:hover {
  557. background-color: var(--background-tertiary);
  558. }
  559. .file-list li.selected {
  560. background: var(--theme-primary);
  561. color: var(--text-secondary);
  562. font-weight: bold;
  563. }
  564. .file-list li.selected .filename {
  565. font-weight: bold;
  566. color: var(--text-secondary);
  567. }
  568. .file-list button {
  569. margin-left: 5px;
  570. background: none;
  571. color: black;
  572. font-weight: bold;
  573. height: 40px;
  574. width: 40px;
  575. flex: 0 0 auto;
  576. display: flex;
  577. justify-content: center;
  578. align-items: center;
  579. }
  580. .file-list button:hover:not(:focus) {
  581. background: var(--background-primary);
  582. box-shadow: inset 0 0 4px var(--border-secondary);
  583. }
  584. .file-list button.remove-button {
  585. color: var(--color-error);
  586. }
  587. .title-container {
  588. display: flex;
  589. justify-content: space-between;
  590. align-items: center;
  591. }
  592. .rename-button {
  593. margin-left: 10px;
  594. background: var(--theme-primary-hover);
  595. color: var(--text-secondary);
  596. border: none;
  597. border-radius: 5px;
  598. padding: 5px 10px;
  599. cursor: pointer;
  600. transition: background 0.3s ease;
  601. }
  602. /* Bottom Navigation */
  603. .bottom-nav {
  604. display: flex;
  605. position: sticky;
  606. justify-content: space-around;
  607. bottom: 0;
  608. height: 60px;
  609. width: 100%;
  610. border-top: 1px solid var(--theme-primary);
  611. flex-wrap: wrap;
  612. z-index: 10;
  613. }
  614. .tab-button {
  615. flex: 1;
  616. height: 60px;
  617. padding: 20px 10px;
  618. text-align: center;
  619. font-size: 1rem;
  620. font-weight: bold;
  621. color: var(--text-secondary);
  622. background: none;
  623. border: none;
  624. cursor: pointer;
  625. transition: background 0.3s ease;
  626. background: var(--background-info);
  627. backdrop-filter: blur(2px);
  628. border-radius: 0;
  629. }
  630. .bottom-nav .tab-button.active {
  631. background: rgba(255, 255, 255, 0.75);
  632. color: var(--theme-primary);
  633. }
  634. /* Quick Action Buttons */
  635. .action-buttons {
  636. display: flex;
  637. gap: 10px;
  638. flex-wrap: wrap;
  639. width: 100%;
  640. justify-content: space-between;
  641. }
  642. .action-buttons .scrollable-selection {
  643. width: calc(50% - 10px);
  644. }
  645. .action-buttons.square button {
  646. padding: 5px;
  647. aspect-ratio: 1 / 1;
  648. width: calc(25% - 10px);
  649. flex-direction: column;
  650. justify-content: center;
  651. align-items: center;
  652. }
  653. .action-buttons.square button i{
  654. font-size: 2.5rem;
  655. }
  656. button i + span{
  657. font-size: 1.25rem;
  658. }
  659. button i + span{
  660. margin-left: 5px;
  661. }
  662. .action-buttons.square button i + span{
  663. margin: 3px;
  664. }
  665. button i + span.small {
  666. font-size: 0.75rem;
  667. }
  668. .action-buttons button i + span{
  669. display: block;
  670. }
  671. .action-buttons button.m {
  672. width: calc(50% - 10px);
  673. }
  674. .action-buttons button.l {
  675. width: 100%;
  676. }
  677. .action-buttons button.small {
  678. flex: 0;
  679. flex-basis: calc(25% - 10px);
  680. }
  681. .action-buttons button.cta {
  682. flex-grow: 1;
  683. }
  684. button#debug_button {
  685. width: 40px;
  686. padding: 0;
  687. height: 40px;
  688. background: transparent;
  689. color: var(--text-primary);
  690. font-size: 1.5rem;
  691. margin-left: 40px;
  692. flex: 0 0 auto;
  693. transition: var(--transition-medium) all;
  694. }
  695. button#debug_button:hover,
  696. button#debug_button.active {
  697. box-shadow: inset 0 0 4px var(--border-secondary);
  698. }
  699. #device-tab .dropdown {
  700. width: 50%;
  701. }
  702. #settings-container {
  703. position: absolute;
  704. top: 0;
  705. left: 0;
  706. width: 100%;
  707. height: 100%;
  708. background-color: var(--background-translucent);
  709. backdrop-filter: blur(10px);
  710. z-index: 1000;
  711. overflow-y: auto;
  712. display: none; /* Hidden by default */
  713. flex-direction: column;
  714. }
  715. #settings-container.open{
  716. display: flex;
  717. }
  718. #open-settings-button {
  719. aspect-ratio: auto;
  720. }
  721. #open-settings-button span {
  722. order: -1;
  723. margin-right: 5px;
  724. }
  725. #theme-toggle .fa-sun:not(:hover) {
  726. color: #ffd700;
  727. }
  728. #theme-toggle .fa-moon:not(:hover) {
  729. color: var(--color-info);
  730. }
  731. /* Preview Canvas */
  732. #patternPreviewCanvas {
  733. height: 15vw;
  734. max-width: 300px;
  735. aspect-ratio: 1/1;
  736. border: 1px solid var(--border-primary);
  737. background: var(--theme-secondary);
  738. border-radius: 100%;
  739. padding: 15px;
  740. }
  741. #pattern-preview {
  742. display: flex;
  743. flex-direction: column;
  744. align-items: center;
  745. margin-bottom: 20px;
  746. }
  747. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  748. width: initial;
  749. max-width: calc(100vw - 30px);
  750. }
  751. .pre-execution {
  752. width: 100%;
  753. display: flex;
  754. }
  755. .pre-execution h3 {
  756. flex-grow: 1;
  757. margin: 0;
  758. align-content: center;
  759. }
  760. .pre-execution .control-group {
  761. width: auto;
  762. flex-grow: 1;
  763. margin: 0;
  764. }
  765. .pre-execution select {
  766. margin: 0;
  767. }
  768. /* Currently Playing Section Styling */
  769. body.playing .bottom-nav {
  770. height: 200px;
  771. align-items: flex-end;
  772. }
  773. #currently-playing-container {
  774. display: none; /* Hide by default */
  775. align-items: center;
  776. background: var(--background-accent);
  777. color: var(--text-secondary);
  778. transition: all var(--transition-medium);
  779. position: fixed;
  780. bottom: 0;
  781. left: 0;
  782. right: 0;
  783. z-index: 1000;
  784. }
  785. #currently-playing-container h3,
  786. #currently-playing-container .open-button
  787. {
  788. color: var(--text-secondary);
  789. }
  790. #currently-playing-container .file-info {
  791. display: flex;
  792. flex-direction: column;
  793. align-items: flex-start;
  794. margin-right: auto;
  795. }
  796. #currently-playing-container h3 {
  797. margin: 0;
  798. }
  799. #currently-playing-container h4 {
  800. margin: 0;
  801. color: var(--text-secondary);
  802. opacity: 0.7;
  803. text-align: left;
  804. font-size: 0.9em;
  805. font-weight: normal;
  806. }
  807. body:not(.playing) #currently-playing-container {
  808. display: none;
  809. opacity: 0;
  810. }
  811. #currently-playing-container.open {
  812. max-height: none;
  813. bottom: 0;
  814. }
  815. body.playing #currently-playing-container:not(.open) {
  816. display: flex;
  817. height: 140px;
  818. overflow: hidden;
  819. flex-direction: row;
  820. flex-wrap: wrap;
  821. bottom: 0;
  822. opacity: 1;
  823. }
  824. body.playing #currently-playing-container .header{
  825. justify-content: center;
  826. margin-bottom: 0;
  827. }
  828. body.playing #currently-playing-container .header .open-button {
  829. width: 100%;
  830. height: 20px;
  831. padding-top: 10px;
  832. margin: 0;
  833. }
  834. body.playing #currently-playing-preview #currentlyPlayingCanvas {
  835. max-width:100px;
  836. padding: 5px;
  837. }
  838. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  839. body.playing #currently-playing-container:not(.open) .header .close-button,
  840. body.playing #currently-playing-container:not(.open) .header h3 {
  841. display: none;
  842. }
  843. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  844. flex-grow: 1;
  845. flex-basis: 50%;
  846. display: flex;
  847. flex-direction: column;
  848. align-items: flex-start;
  849. margin: 0 0 0 10px;
  850. overflow-y: auto;
  851. }
  852. body.playing #currently-playing-container:not(.open) #currently-playing-details .play-buttons {
  853. margin-top: 10px;
  854. align-self: flex-start;
  855. }
  856. body.playing #currently-playing-container:not(.open) .play-buttons button {
  857. width: 50px;
  858. height: 50px;
  859. font-size: 1.5rem;
  860. }
  861. body.playing #currently-playing-container:not(.open) #progress-container {
  862. width: 100%;
  863. }
  864. #currentlyPlayingCanvas {
  865. width: 100%;
  866. max-width: 300px;
  867. aspect-ratio: 1/1;
  868. border: 1px solid var(--border-primary);
  869. background: var(--theme-secondary);
  870. border-radius: 100%;
  871. padding: 10px;
  872. }
  873. #currently-playing-details {
  874. display: flex;
  875. flex-direction: column;
  876. align-items: center;
  877. margin-bottom: 15px;
  878. }
  879. #currently-playing-details p {
  880. margin: 5px 0;
  881. font-size: 1rem;
  882. }
  883. #progress-container {
  884. display: flex;
  885. align-items: center;
  886. justify-content: center;
  887. width: 100%;
  888. flex-wrap: wrap;
  889. }
  890. #play_progress {
  891. width: auto;
  892. flex-grow: 1;
  893. height: 8px;
  894. appearance: none;
  895. background-color: var(--border-primary);
  896. border-radius: 4px;
  897. overflow: hidden;
  898. margin-right: 20px !important; /* Add forced margin to ensure spacing */
  899. }
  900. #play_progress_text {
  901. font-size: 0.9rem;
  902. min-width: 45px; /* Ensure consistent spacing for different percentages */
  903. flex-shrink: 0; /* Prevent text from shrinking */
  904. }
  905. /* Progress Bar Styles */
  906. #play_progress::-webkit-progress-bar {
  907. background-color: var(--border-primary);
  908. }
  909. #play_progress::-webkit-progress-value {
  910. background-color: var(--theme-primary);
  911. transition: width 0.25s ease;
  912. }
  913. /* Add dark mode specific styles */
  914. :root[data-theme="dark"] #play_progress {
  915. background-color: var(--background-tertiary-dark);
  916. }
  917. :root[data-theme="dark"] #play_progress::-webkit-progress-bar {
  918. background-color: var(--background-tertiary-dark);
  919. }
  920. :root[data-theme="dark"] #play_progress::-webkit-progress-value {
  921. background-color: var(--color-success); /* Using success color for better visibility */
  922. }
  923. /* Progress text color in dark mode */
  924. :root[data-theme="dark"] #play_progress_text {
  925. color: var(--text-secondary-dark);
  926. }
  927. .play-buttons {
  928. display: flex;
  929. gap: 20px;
  930. }
  931. .play-buttons button {
  932. width: 75px;
  933. height: 75px;
  934. aspect-ratio: 1/1;
  935. font-size: 3rem;
  936. border: none;
  937. cursor: pointer;
  938. display: flex;
  939. justify-content: center;
  940. }
  941. #pausePlayCurrent {
  942. border-radius: 50%;
  943. }
  944. /* Debug Log */
  945. #status_log {
  946. background: #000;
  947. color: var(--text-secondary);
  948. font-family: monospace;
  949. font-size: 0.9rem;
  950. border-top: 1px solid var(--border-primary);
  951. padding: 10px;
  952. max-height: 200px;
  953. overflow-y: scroll;
  954. display: none;
  955. width: 100%;
  956. }
  957. #status_log p {
  958. margin: 0;
  959. }
  960. .control-group {
  961. display: flex;
  962. margin-bottom: 10px;
  963. flex-wrap: wrap;
  964. width: 100%;
  965. align-items: center;
  966. justify-content: space-between;
  967. gap: 0 10px;
  968. }
  969. .control-group input {
  970. margin-bottom: 0;
  971. }
  972. .control-group h3 {
  973. width: 100%;
  974. }
  975. .control-group .item {
  976. display: flex;
  977. align-items: center;
  978. flex: 1;
  979. }
  980. .control-group .item.cta {
  981. justify-content: flex-end;
  982. }
  983. .control-group .item.column {
  984. flex-direction: column;
  985. text-align: center;
  986. }
  987. .control-group .item label {
  988. padding: 5px;
  989. }
  990. #serial_ports_container > * {
  991. display: inline-block;
  992. }
  993. #serial_ports_container select {
  994. margin: 10px;
  995. flex-basis: 100px;
  996. flex-grow: 0;
  997. }
  998. #serial_ports {
  999. width: auto;
  1000. min-width: 200px;
  1001. }
  1002. #serial_status_container {
  1003. margin-bottom: 10px;
  1004. }
  1005. #connection_status_header::before {
  1006. content: '';
  1007. width: 20px;
  1008. height: 20px;
  1009. border-radius: 50%;
  1010. margin-right: 8px;
  1011. background-color: var(--text-primary);
  1012. display: inline-block;
  1013. transition: var(--transition-slow) background-color;
  1014. }
  1015. #connection_status_header.connected::before {
  1016. background-color: var(--color-success);
  1017. }
  1018. #connection_status_header.not-connected::before {
  1019. background-color: var(--color-error);
  1020. }
  1021. #serial_ports_buttons {
  1022. display: flex;
  1023. gap: 10px;
  1024. }
  1025. .status.connected {
  1026. color: var(--color-success);
  1027. font-weight: bold;
  1028. }
  1029. .status.not-connected {
  1030. color: var(--color-error);
  1031. font-weight: bold;
  1032. }
  1033. /* Speed Control Section */
  1034. .speed-control {
  1035. display: flex;
  1036. }
  1037. .speed-control label {
  1038. font-weight: bold;
  1039. font-size: 1rem;
  1040. color: var(--text-primary);
  1041. flex-shrink: 0;
  1042. }
  1043. .speed-control input[type="number"] {
  1044. width: 100px; /* Consistent input width */
  1045. padding: 8px;
  1046. font-size: 1rem;
  1047. border: 1px solid var(--border-primary);
  1048. border-radius: 5px;
  1049. outline: none;
  1050. transition: all 0.3s ease;
  1051. }
  1052. input[type="number"]:focus {
  1053. border-color: var(--theme-primary);
  1054. box-shadow: 0 0 4px var(--background-info);
  1055. }
  1056. #speed_status {
  1057. margin-top: 10px;
  1058. font-size: 0.9rem;
  1059. }
  1060. #serial_ports_container > * {
  1061. display: inline-block;
  1062. }
  1063. #serial_ports_container select {
  1064. margin: 10px;
  1065. flex-basis: 100px;
  1066. flex-grow: 0;
  1067. }
  1068. #serial_ports {
  1069. width: auto;
  1070. min-width: 200px;
  1071. }
  1072. #wled-container {
  1073. flex: 1 1 auto;
  1074. display: flex;
  1075. flex-direction: column;
  1076. }
  1077. #wled_ip {
  1078. margin-right: 10px;
  1079. }
  1080. #wled-frame {
  1081. flex: 1 1 auto;
  1082. width: 100%;
  1083. border: none;
  1084. }
  1085. /* Notification Styles */
  1086. .notification {
  1087. display: flex;
  1088. position: absolute;
  1089. top: 0;
  1090. left: 0;
  1091. font-weight: bold;
  1092. z-index: 1000;
  1093. color: var(--text-secondary);
  1094. width: 100%;
  1095. height: 100%;
  1096. justify-content: center;
  1097. align-items: center;
  1098. backdrop-filter: blur(2px);
  1099. opacity: 0;
  1100. transition: opacity var(--transition-medium);
  1101. cursor: pointer;
  1102. }
  1103. .notification.show {
  1104. opacity: 1; /* Fully visible */
  1105. }
  1106. .notification .close-button {
  1107. color: var(--text-secondary);
  1108. font-size: 1.5rem;
  1109. top: 0;
  1110. right: 0;
  1111. position: absolute;
  1112. }
  1113. /* Notification Types */
  1114. .notification.success { background-color: var(--background-success); }
  1115. .notification.warning { background-color: var(--background-warning); }
  1116. .notification.error { background-color: var(--background-error); }
  1117. .notification.info { background-color: var(--background-info); }
  1118. .footer {
  1119. align-items: center;
  1120. display: flex;
  1121. flex-wrap: wrap;
  1122. justify-content: space-between;
  1123. margin-bottom: 20px;
  1124. width: 100%;
  1125. }
  1126. #github {
  1127. align-content: center;
  1128. display: flex;
  1129. font-size: 0.8em;
  1130. }
  1131. #github img {
  1132. margin: 0 5px
  1133. }
  1134. /* Responsive Design */
  1135. @media (max-width: 1023px) {
  1136. body {
  1137. font-size: 0.9rem;
  1138. }
  1139. .tab-button {
  1140. font-size: 0.9rem;
  1141. }
  1142. .footer {
  1143. display: none;
  1144. }
  1145. button.cancel {
  1146. background: var(--color-error);
  1147. }
  1148. button.cta {
  1149. background: var(--color-success);
  1150. }
  1151. button.warn {
  1152. background: var(--color-warning);
  1153. }
  1154. button.cancel:hover,
  1155. button.warn:hover,
  1156. button.cta:hover {
  1157. background: var(--theme-primary);
  1158. }
  1159. body.playing section.sticky{
  1160. bottom: 200px;
  1161. }
  1162. }
  1163. /* On larger screens, display all tabs in a 3-column grid */
  1164. @media screen and (min-width: 1024px) {
  1165. .app {
  1166. display: grid;
  1167. grid-template-columns: repeat(3, 1fr);
  1168. gap: 0 16px;
  1169. height: calc(100vh - 60px);
  1170. padding: 0 15px;
  1171. }
  1172. #status_log {
  1173. grid-column: span 3;
  1174. align-self: flex-end;
  1175. height: 100%;
  1176. }
  1177. section.sticky {
  1178. position: sticky;
  1179. bottom: 0;
  1180. }
  1181. .bottom-nav .tab-button {
  1182. display: none;
  1183. }
  1184. .bottom-nav {
  1185. border-top: 0;
  1186. }
  1187. /* Show all tabs in grid layout */
  1188. .tab-content {
  1189. display: flex !important; /* Always display tab-content */
  1190. flex-direction: column;
  1191. border: 1px solid var(--border-primary);
  1192. background-color: var(--background-primary);
  1193. border-radius: 8px;
  1194. overflow-y: auto;
  1195. overflow-x: hidden;
  1196. position: relative;
  1197. }
  1198. body.playing .app {
  1199. padding: 15px 0 150px 15px;
  1200. margin-bottom: -140px;
  1201. }
  1202. body.playing .bottom-nav {
  1203. height: 140px;
  1204. }
  1205. body:not(.playing) .bottom-nav {
  1206. display: none;
  1207. }
  1208. body.playing #currently-playing-container.open {
  1209. position: absolute;
  1210. bottom: 0;
  1211. }
  1212. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  1213. flex-direction: row;
  1214. align-items: center;
  1215. }
  1216. #currently-playing-container h3 {
  1217. flex-grow: 1;
  1218. }
  1219. body.playing #currently-playing-container.open .header {
  1220. display: none;
  1221. }
  1222. #open-settings-button span {
  1223. opacity: 0;
  1224. transition: var(--transition-medium) opacity;
  1225. }
  1226. #open-settings-button:hover span {
  1227. opacity: 1;
  1228. }
  1229. }
  1230. /* Add specific styles for dark mode inputs */
  1231. :root[data-theme="dark"] input::placeholder,
  1232. :root[data-theme="dark"] select::placeholder,
  1233. :root[data-theme="dark"] textarea::placeholder {
  1234. color: #999;
  1235. }
  1236. /* Style the file list items in dark mode */
  1237. :root[data-theme="dark"] .file-list {
  1238. background: var(--background-secondary-dark);
  1239. }
  1240. :root[data-theme="dark"] .file-list li {
  1241. color: var(--text-primary-dark);
  1242. }
  1243. :root[data-theme="dark"] .file-list .filename {
  1244. color: var(--text-primary-dark);
  1245. }
  1246. :root[data-theme="dark"] .file-list li:hover {
  1247. background-color: var(--background-tertiary-dark);
  1248. }
  1249. :root[data-theme="dark"] .file-list button {
  1250. color: var(--text-primary-dark);
  1251. }
  1252. /* Update status log colors for dark mode */
  1253. :root[data-theme="dark"] #status_log {
  1254. background: #000000;
  1255. border-color: var(--border-primary-dark);
  1256. }
  1257. /* Update notification backgrounds for dark mode */
  1258. :root[data-theme="dark"] .notification {
  1259. /* Remove this line to keep original colors */
  1260. /* background-color: var(--background-secondary-dark); */
  1261. }
  1262. /* Notification Types - Update opacity for better visibility in dark mode */
  1263. :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
  1264. :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
  1265. :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
  1266. :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
  1267. /* Make notification text white for better contrast */
  1268. :root[data-theme="dark"] .notification {
  1269. color: white;
  1270. }
  1271. /* Update button colors for better visibility in dark mode */
  1272. :root[data-theme="dark"] button.no-bg:not(:hover) {
  1273. color: var(--text-primary-dark);
  1274. }
  1275. :root[data-theme="dark"] .file-list button:hover:not(:focus) {
  1276. background: var(--background-tertiary-dark);
  1277. box-shadow: inset 0 0 4px var(--border-secondary-dark);
  1278. }
  1279. /* Update custom checkbox/radio colors in dark mode */
  1280. :root[data-theme="dark"] .custom-checkbox,
  1281. :root[data-theme="dark"] .custom-radio {
  1282. border-color: var(--theme-primary-dark);
  1283. }
  1284. :root[data-theme="dark"] .custom-checkbox::after,
  1285. :root[data-theme="dark"] .custom-radio::after {
  1286. background-color: var(--theme-primary-dark);
  1287. }
  1288. :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
  1289. :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
  1290. background-color: var(--theme-primary-dark);
  1291. border-color: var(--theme-primary-hover-dark);
  1292. }
  1293. /* Update scroll arrow hover in dark mode */
  1294. :root[data-theme="dark"] .scroll-arrow:hover {
  1295. background: var(--theme-primary-hover-dark);
  1296. }
  1297. /* Update tab button hover in dark mode */
  1298. :root[data-theme="dark"] .tab-button {
  1299. background: var(--color-success);
  1300. color: var(--text-secondary);
  1301. }
  1302. :root[data-theme="dark"] .tab-button:hover {
  1303. background: var(--color-success);
  1304. }
  1305. :root[data-theme="dark"] .tab-button.active {
  1306. background: var(--background-secondary);
  1307. color: var(--text-secondary);
  1308. }
  1309. /* Override specific button hover states in dark mode */
  1310. :root[data-theme="dark"] button.cancel:hover {
  1311. background: var(--color-error) !important;
  1312. }
  1313. :root[data-theme="dark"] button.cta:hover {
  1314. background: var(--color-success) !important;
  1315. }
  1316. :root[data-theme="dark"] button.warn:hover {
  1317. background: var(--color-warning) !important;
  1318. }
  1319. /* Update selection container button hover in dark mode */
  1320. :root[data-theme="dark"] .selection-container .nav-items > button:hover {
  1321. background: var(--text-secondary);
  1322. color: var(--theme-primary-dark);
  1323. }