style.css 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536
  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.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: #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: 10;
  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. background: var(--background-secondary);
  352. }
  353. .tab-content.active {
  354. display: flex;
  355. position: relative;
  356. flex-direction: column;
  357. }
  358. section {
  359. padding: 15px;
  360. display: flex;
  361. flex-direction: column;
  362. }
  363. section.main {
  364. flex-grow: 1;
  365. }
  366. section.debug {
  367. flex-direction: row;
  368. align-items: flex-end;
  369. justify-content: space-between;
  370. }
  371. section.version {
  372. flex-direction: row;
  373. justify-content: space-between;
  374. flex-wrap: wrap;
  375. }
  376. section#settings-container > section{
  377. padding-left: 0;
  378. padding-right: 0;
  379. }
  380. .version .header {
  381. width: 100%;
  382. }
  383. .version #motor_selection h3 {
  384. width: 100%;
  385. flex-grow: 1;
  386. }
  387. .version #motor_selection {
  388. display: flex;
  389. flex-direction: row;
  390. flex-wrap: wrap;
  391. width: 100%;
  392. }
  393. .version select#manual_motor_type {
  394. margin: 0 20px 0 0;
  395. flex: 1;
  396. }
  397. section.sticky {
  398. position: fixed;
  399. background-color: var(--background-translucent);
  400. backdrop-filter: blur(10px);
  401. bottom: 60px;
  402. border-top: 1px solid var(--border-primary);
  403. box-shadow: var(--shadow-primary);
  404. transform: translateY(0);
  405. transition: var(--transition-medium) transform, var(--transition-medium) height;
  406. visibility: visible;
  407. max-height: 75vh;
  408. width: 100%;
  409. z-index: 10;
  410. }
  411. section.sticky.fullscreen {
  412. position: fixed;
  413. top: 0;
  414. left: 0;
  415. width: 100vw;
  416. max-height: none;
  417. }
  418. section.sticky.hidden {
  419. transform: translateY(100%);
  420. visibility: hidden;
  421. width: 100%;
  422. position: absolute;
  423. overflow:hidden;
  424. height: 0;
  425. padding: 0;
  426. }
  427. section .header {
  428. position: relative;
  429. display: flex;
  430. justify-content: flex-end;
  431. align-items: center;
  432. margin-bottom: 10px;
  433. width: 100%;
  434. }
  435. section .header h2 {
  436. flex-grow: 1;
  437. }
  438. section .header #open-settings-button:hover{
  439. color: var(--theme-primary);
  440. }
  441. /* Close Button Styling */
  442. button.no-bg {
  443. background: none;
  444. border: none;
  445. font-size: 1.5rem;
  446. font-weight: bold;
  447. color: var(--text-primary);
  448. cursor: pointer;
  449. line-height: 1;
  450. padding: 0;
  451. height: 100%;
  452. width: auto;
  453. aspect-ratio: 1 / 1;
  454. display: flex;
  455. justify-content: center;
  456. align-items: center;
  457. margin-left: 10px;
  458. }
  459. .close-button:hover {
  460. color: var(--color-error);
  461. }
  462. .fullscreen-button:hover {
  463. color: var(--color-warning);
  464. }
  465. section .header .add-button {
  466. height: 35px;
  467. width: 35px;
  468. padding: 0;
  469. }
  470. /* Playlist */
  471. .add-to-playlist {
  472. margin-top: 15px;
  473. }
  474. .add-to-playlist button {
  475. margin-bottom: 10px;
  476. }
  477. .add-to-container {
  478. display: flex;
  479. flex-wrap: wrap;
  480. margin-bottom: 20px;
  481. }
  482. #add-to-playlist-container {
  483. display: flex;
  484. flex-wrap: wrap;
  485. }
  486. #add-to-playlist-container h3{
  487. margin: 0 10px 0 0;
  488. align-self: center;
  489. }
  490. #add-to-playlist-container select{
  491. width: auto;
  492. flex-grow: 1;
  493. margin: 0;
  494. }
  495. #add-to-playlist-container .action-buttons {
  496. margin-top: 10px;
  497. }
  498. .playlist-parameters {
  499. display: flex;
  500. flex-direction: column;
  501. gap: 10px;
  502. }
  503. .playlist-parameters .control-group button.small.cancel {
  504. align-self: flex-end;
  505. margin-bottom: 4px;
  506. }
  507. #clear_pattern {
  508. margin: 0;
  509. }
  510. .playlist-parameters .input-group input,
  511. .playlist-parameters .input-group select {
  512. width: 100%; /* Ensure inputs/selects stretch to full width */
  513. padding: 10px;
  514. border: 1px solid var(--border-primary);
  515. border-radius: 5px;
  516. font-size: 1rem;
  517. }
  518. .empty-placeholder {
  519. color: gray;
  520. font-style: italic;
  521. text-align: center;
  522. padding: 10px;
  523. }
  524. /* Style for the filename span */
  525. .filename {
  526. flex-grow: 1; /* Use available space */
  527. font-size: 1rem;
  528. color: var(--text-primary);
  529. margin-right: 10px; /* Space between filename and buttons */
  530. word-wrap: break-word;
  531. width: 100%;
  532. display: flex;
  533. align-items: center;
  534. }
  535. /* File List */
  536. .file-list {
  537. list-style: none;
  538. padding: 0;
  539. margin: 0;
  540. border: 1px solid var(--border-primary);
  541. border-radius: 5px;
  542. overflow-y: auto;
  543. background: var(--background-primary);
  544. flex-grow: 1;
  545. }
  546. .file-list#playlist_items{
  547. margin-bottom: 10px;
  548. max-height: 20vh;
  549. }
  550. .file-list li {
  551. display: flex;
  552. padding: 10px;
  553. border-bottom: 1px solid var(--border-primary);
  554. cursor: pointer;
  555. transition: background-color var(--transition-medium);
  556. }
  557. .file-list li:hover {
  558. background-color: var(--background-tertiary);
  559. }
  560. .file-list li.selected {
  561. background: var(--theme-primary);
  562. color: var(--text-secondary);
  563. font-weight: bold;
  564. }
  565. .file-list li.selected .filename {
  566. font-weight: bold;
  567. color: var(--text-secondary);
  568. }
  569. .file-list button {
  570. margin-left: 5px;
  571. background: none;
  572. color: black;
  573. font-weight: bold;
  574. height: 40px;
  575. width: 40px;
  576. flex: 0 0 auto;
  577. display: flex;
  578. justify-content: center;
  579. align-items: center;
  580. }
  581. .file-list button:hover:not(:focus) {
  582. background: var(--background-primary);
  583. box-shadow: inset 0 0 4px var(--border-secondary);
  584. }
  585. .file-list button.remove-button {
  586. color: var(--color-error);
  587. }
  588. .title-container {
  589. display: flex;
  590. justify-content: space-between;
  591. align-items: center;
  592. }
  593. .rename-button {
  594. margin-left: 10px;
  595. background: var(--theme-primary-hover);
  596. color: var(--text-secondary);
  597. border: none;
  598. border-radius: 5px;
  599. padding: 5px 10px;
  600. cursor: pointer;
  601. transition: background 0.3s ease;
  602. }
  603. /* Bottom Navigation */
  604. .bottom-nav {
  605. display: flex;
  606. position: sticky;
  607. justify-content: space-around;
  608. bottom: 0;
  609. height: 60px;
  610. width: 100%;
  611. border-top: 1px solid var(--theme-primary);
  612. flex-wrap: wrap;
  613. z-index: 10;
  614. }
  615. .tab-button {
  616. flex: 1;
  617. height: 60px;
  618. padding: 20px 10px;
  619. text-align: center;
  620. font-size: 1rem;
  621. font-weight: bold;
  622. color: var(--text-secondary);
  623. background: none;
  624. border: none;
  625. cursor: pointer;
  626. transition: background 0.3s ease;
  627. background: var(--background-info);
  628. backdrop-filter: blur(2px);
  629. border-radius: 0;
  630. }
  631. .bottom-nav .tab-button.active {
  632. background: rgba(255, 255, 255, 0.75);
  633. color: var(--theme-primary);
  634. }
  635. /* Quick Action Buttons */
  636. .action-buttons {
  637. display: flex;
  638. gap: 10px;
  639. flex-wrap: wrap;
  640. width: 100%;
  641. justify-content: space-between;
  642. }
  643. .action-buttons .scrollable-selection {
  644. width: calc(50% - 10px);
  645. }
  646. .action-buttons.square button {
  647. padding: 5px;
  648. aspect-ratio: 1 / 1;
  649. width: calc(25% - 10px);
  650. flex-direction: column;
  651. justify-content: center;
  652. align-items: center;
  653. }
  654. .action-buttons.square button i{
  655. font-size: 2.5rem;
  656. }
  657. button i + span{
  658. font-size: 1.25rem;
  659. }
  660. button i + span{
  661. margin-left: 5px;
  662. }
  663. .action-buttons.square button i + span{
  664. margin: 3px;
  665. }
  666. button i + span.small {
  667. font-size: 0.75rem;
  668. }
  669. .action-buttons button i + span{
  670. display: block;
  671. }
  672. .action-buttons button.m {
  673. width: calc(50% - 10px);
  674. }
  675. .action-buttons button.l {
  676. width: 100%;
  677. }
  678. .action-buttons button.small {
  679. flex: 0;
  680. flex-basis: calc(25% - 10px);
  681. }
  682. .action-buttons button.cta {
  683. flex-grow: 1;
  684. }
  685. button#debug_button {
  686. width: 40px;
  687. padding: 0;
  688. height: 40px;
  689. background: transparent;
  690. color: var(--text-primary);
  691. font-size: 1.5rem;
  692. margin-left: 40px;
  693. flex: 0 0 auto;
  694. transition: var(--transition-medium) all;
  695. }
  696. button#debug_button:hover,
  697. button#debug_button.active {
  698. box-shadow: inset 0 0 4px var(--border-secondary);
  699. }
  700. #device-tab .dropdown {
  701. width: 50%;
  702. }
  703. #settings-container {
  704. position: absolute;
  705. top: 0;
  706. left: 0;
  707. width: 100%;
  708. height: 100%;
  709. background-color: var(--background-translucent);
  710. backdrop-filter: blur(10px);
  711. z-index: 1000;
  712. overflow-y: auto;
  713. display: none; /* Hidden by default */
  714. flex-direction: column;
  715. }
  716. #settings-container.open{
  717. display: flex;
  718. }
  719. #open-settings-button {
  720. aspect-ratio: auto;
  721. }
  722. #open-settings-button span {
  723. order: -1;
  724. margin-right: 5px;
  725. }
  726. #theme-toggle .fa-sun:not(:hover) {
  727. color: #ffd700;
  728. }
  729. #theme-toggle .fa-moon:not(:hover) {
  730. color: var(--color-info);
  731. }
  732. /* Preview Canvas */
  733. #patternPreviewCanvas {
  734. width: 100%;
  735. max-width: 300px;
  736. aspect-ratio: 1/1;
  737. border: 1px solid var(--border-primary);
  738. background: var(--theme-secondary);
  739. border-radius: 100%;
  740. padding: 15px;
  741. }
  742. #pattern-preview {
  743. display: flex;
  744. flex-direction: column;
  745. align-items: center;
  746. margin-bottom: 20px;
  747. }
  748. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  749. width: initial;
  750. max-width: calc(100vw - 30px);
  751. }
  752. .pre-execution {
  753. width: 100%;
  754. display: flex;
  755. }
  756. .pre-execution h3 {
  757. flex-grow: 1;
  758. margin: 0;
  759. align-content: center;
  760. }
  761. .pre-execution .control-group {
  762. width: auto;
  763. flex-grow: 1;
  764. margin: 0;
  765. }
  766. .pre-execution select {
  767. margin: 0;
  768. }
  769. /* Currently Playing Section Styling */
  770. body.playing .bottom-nav {
  771. height: 200px;
  772. align-items: flex-end;
  773. }
  774. #currently-playing-container {
  775. align-items: center;
  776. background: var(--background-accent);
  777. color: var(--text-secondary);
  778. }
  779. #currently-playing-container h3,
  780. #currently-playing-container .open-button
  781. {
  782. color: var(--text-secondary);
  783. }
  784. #currently-playing-container h3 {
  785. margin: 0;
  786. }
  787. body:not(.playing) #currently-playing-container {
  788. display: none;
  789. }
  790. #currently-playing-container.open {
  791. max-height: none;
  792. bottom: 60px;
  793. }
  794. body.playing #currently-playing-container:not(.open) {
  795. height: 140px;
  796. overflow:hidden;
  797. flex-direction: row;
  798. flex-wrap: wrap;
  799. bottom: 60px;
  800. }
  801. body.playing #currently-playing-container .header{
  802. justify-content: center;
  803. margin-bottom: 0;
  804. }
  805. body.playing #currently-playing-container .header .open-button {
  806. width: 100%;
  807. height: 20px;
  808. padding-top: 10px;
  809. margin: 0;
  810. }
  811. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  812. body.playing #currently-playing-container:not(.open) .header .close-button,
  813. body.playing #currently-playing-container:not(.open) .header h3 {
  814. display: none;
  815. }
  816. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  817. flex-grow: 1;
  818. flex-basis: 50%;
  819. align-items: flex-start;
  820. margin: 0 0 0 10px;
  821. overflow-y: auto;
  822. }
  823. body.playing #currently-playing-container:not(.open) .play-buttons button {
  824. width: 50px;
  825. height: 50px;
  826. font-size: 1.5rem;/* Center within flex container */
  827. }
  828. body.playing #currently-playing-container:not(.open) #progress-container {
  829. width: 100%;
  830. }
  831. #currentlyPlayingCanvas {
  832. width: 100px;
  833. aspect-ratio: 1/1;
  834. border: 1px solid var(--border-primary);
  835. background: var(--theme-secondary);
  836. border-radius: 100%;
  837. padding: 10px;
  838. }
  839. #currently-playing-details {
  840. display: flex;
  841. flex-direction: column;
  842. align-items: center;
  843. margin-bottom: 15px;
  844. }
  845. #currently-playing-details p {
  846. margin: 5px 0;
  847. font-size: 1rem;
  848. }
  849. #currently-playing-file,
  850. #next-file {
  851. white-space: nowrap;
  852. overflow: hidden;
  853. text-overflow: ellipsis;
  854. width: 100%;
  855. }
  856. #progress-container {
  857. display: flex;
  858. align-items: center;
  859. justify-content: center;
  860. width: 100%;
  861. flex-wrap: wrap;
  862. }
  863. #play_progress {
  864. width: auto;
  865. flex-grow: 1;
  866. height: 8px;
  867. appearance: none;
  868. background-color: var(--border-primary);
  869. border-radius: 4px;
  870. overflow: hidden;
  871. margin-right: 20px !important; /* Add forced margin to ensure spacing */
  872. }
  873. #play_progress_text {
  874. font-size: 0.9rem;
  875. min-width: 45px; /* Ensure consistent spacing for different percentages */
  876. flex-shrink: 0; /* Prevent text from shrinking */
  877. }
  878. /* Progress Bar Styles */
  879. #play_progress::-webkit-progress-bar {
  880. background-color: var(--border-primary);
  881. }
  882. #play_progress::-webkit-progress-value {
  883. background-color: var(--theme-primary);
  884. transition: width 0.25s ease;
  885. }
  886. /* Add dark mode specific styles */
  887. :root[data-theme="dark"] #play_progress {
  888. background-color: var(--background-tertiary-dark);
  889. }
  890. :root[data-theme="dark"] #play_progress::-webkit-progress-bar {
  891. background-color: var(--background-tertiary-dark);
  892. }
  893. :root[data-theme="dark"] #play_progress::-webkit-progress-value {
  894. background-color: var(--color-success); /* Using success color for better visibility */
  895. }
  896. /* Progress text color in dark mode */
  897. :root[data-theme="dark"] #play_progress_text {
  898. color: var(--text-secondary-dark);
  899. }
  900. .play-buttons {
  901. display: flex;
  902. gap: 20px;
  903. justify-content: flex-end;
  904. width: 100%;
  905. }
  906. .play-buttons button {
  907. width: 75px;
  908. height: 75px;
  909. aspect-ratio: 1/1;
  910. font-size: 3rem;
  911. border: none;
  912. cursor: pointer;
  913. display: flex;
  914. justify-content: center;
  915. }
  916. #pausePlayCurrent {
  917. border-radius: 50%;
  918. }
  919. body.playing #currently-playing-container.open {
  920. position: absolute;
  921. bottom: 0;
  922. }
  923. body.playing #currently-playing-container:not(.open) #currently-playing-details {
  924. flex-direction: row;
  925. align-items: center;
  926. }
  927. #currently-playing-container h3 {
  928. flex-grow: 1;
  929. }
  930. body.playing #currently-playing-container.open .header {
  931. display: none;
  932. }
  933. #open-settings-button span {
  934. opacity: 0;
  935. transition: var(--transition-medium) opacity;
  936. }
  937. #open-settings-button:hover span {
  938. opacity: 1;
  939. }
  940. /* Debug Log */
  941. #status_log {
  942. background: #000;
  943. color: var(--text-secondary);
  944. font-family: monospace;
  945. font-size: 0.9rem;
  946. border-top: 1px solid var(--border-primary);
  947. padding: 10px;
  948. max-height: 200px;
  949. overflow-y: scroll;
  950. display: none;
  951. width: 100%;
  952. }
  953. #status_log p {
  954. margin: 0;
  955. }
  956. .control-group {
  957. display: flex;
  958. margin-bottom: 10px;
  959. flex-wrap: wrap;
  960. width: 100%;
  961. align-items: center;
  962. justify-content: space-between;
  963. gap: 0 10px;
  964. }
  965. .control-group input {
  966. margin-bottom: 0;
  967. }
  968. .control-group h3 {
  969. width: 100%;
  970. }
  971. .control-group .item {
  972. display: flex;
  973. align-items: center;
  974. flex: 1;
  975. }
  976. .control-group .item.cta {
  977. justify-content: flex-end;
  978. }
  979. .control-group .item.column {
  980. flex-direction: column;
  981. text-align: center;
  982. }
  983. .control-group .item label {
  984. padding: 5px;
  985. }
  986. #serial_ports_container > * {
  987. display: inline-block;
  988. }
  989. #serial_ports_container select {
  990. margin: 10px;
  991. flex-basis: 100px;
  992. flex-grow: 0;
  993. }
  994. #serial_ports {
  995. width: auto;
  996. min-width: 200px;
  997. }
  998. #serial_status_container {
  999. margin-bottom: 10px;
  1000. }
  1001. #connection_status_header::before {
  1002. content: '';
  1003. width: 20px;
  1004. height: 20px;
  1005. border-radius: 50%;
  1006. margin-right: 8px;
  1007. background-color: var(--text-primary);
  1008. display: inline-block;
  1009. transition: var(--transition-slow) background-color;
  1010. }
  1011. #connection_status_header.connected::before {
  1012. background-color: var(--color-success);
  1013. }
  1014. #connection_status_header.not-connected::before {
  1015. background-color: var(--color-error);
  1016. }
  1017. #serial_ports_buttons {
  1018. display: flex;
  1019. gap: 10px;
  1020. }
  1021. .status.connected {
  1022. color: var(--color-success);
  1023. font-weight: bold;
  1024. }
  1025. .status.not-connected {
  1026. color: var(--color-error);
  1027. font-weight: bold;
  1028. }
  1029. /* Speed Control Section */
  1030. .speed-control {
  1031. display: flex;
  1032. }
  1033. .speed-control label {
  1034. font-weight: bold;
  1035. font-size: 1rem;
  1036. color: var(--text-primary);
  1037. flex-shrink: 0;
  1038. }
  1039. .speed-control input[type="number"] {
  1040. width: 100px; /* Consistent input width */
  1041. padding: 8px;
  1042. font-size: 1rem;
  1043. border: 1px solid var(--border-primary);
  1044. border-radius: 5px;
  1045. outline: none;
  1046. transition: all 0.3s ease;
  1047. }
  1048. input[type="number"]:focus {
  1049. border-color: var(--theme-primary);
  1050. box-shadow: 0 0 4px var(--background-info);
  1051. }
  1052. #speed_status {
  1053. margin-top: 10px;
  1054. font-size: 0.9rem;
  1055. }
  1056. #serial_ports_container > * {
  1057. display: inline-block;
  1058. }
  1059. #serial_ports_container select {
  1060. margin: 10px;
  1061. flex-basis: 100px;
  1062. flex-grow: 0;
  1063. }
  1064. #serial_ports {
  1065. width: auto;
  1066. min-width: 200px;
  1067. }
  1068. #wled-container {
  1069. flex: 1 1 auto;
  1070. display: flex;
  1071. flex-direction: column;
  1072. }
  1073. #wled_ip {
  1074. margin-right: 10px;
  1075. }
  1076. #wled-frame {
  1077. flex: 1 1 auto;
  1078. width: 100%;
  1079. border: none;
  1080. }
  1081. /* Notification Styles */
  1082. .notification {
  1083. display: flex;
  1084. position: absolute;
  1085. top: 0;
  1086. left: 0;
  1087. font-weight: bold;
  1088. z-index: 1000;
  1089. color: var(--text-secondary);
  1090. width: 100%;
  1091. height: 100%;
  1092. justify-content: center;
  1093. align-items: center;
  1094. backdrop-filter: blur(2px);
  1095. opacity: 0;
  1096. transition: opacity var(--transition-medium);
  1097. cursor: pointer;
  1098. }
  1099. .notification.show {
  1100. opacity: 1; /* Fully visible */
  1101. }
  1102. .notification .close-button {
  1103. color: var(--text-secondary);
  1104. font-size: 1.5rem;
  1105. top: 0;
  1106. right: 0;
  1107. position: absolute;
  1108. }
  1109. /* Notification Types */
  1110. .notification.success { background-color: var(--background-success); }
  1111. .notification.warning { background-color: var(--background-warning); }
  1112. .notification.error { background-color: var(--background-error); }
  1113. .notification.info { background-color: var(--background-info); }
  1114. .footer {
  1115. align-items: center;
  1116. display: flex;
  1117. flex-wrap: wrap;
  1118. justify-content: space-between;
  1119. margin-bottom: 20px;
  1120. width: 100%;
  1121. }
  1122. #github {
  1123. align-content: center;
  1124. display: flex;
  1125. font-size: 0.8em;
  1126. }
  1127. #github img {
  1128. margin: 0 5px
  1129. }
  1130. /* Responsive Design */
  1131. @media (max-width: 1023px) {
  1132. body {
  1133. font-size: 0.9rem;
  1134. }
  1135. .tab-button {
  1136. font-size: 0.9rem;
  1137. }
  1138. .footer {
  1139. display: none;
  1140. }
  1141. }
  1142. /* On larger screens, display all tabs in a 3-column grid */
  1143. @media screen and (min-width: 1024px) {
  1144. .app {
  1145. display: grid;
  1146. grid-template-columns: repeat(3, 1fr);
  1147. gap: 0 16px;
  1148. height: calc(100vh - 60px);
  1149. padding: 0 15px;
  1150. }
  1151. #status_log {
  1152. grid-column: span 3;
  1153. align-self: flex-end;
  1154. height: 100%;
  1155. }
  1156. section.sticky {
  1157. position: sticky;
  1158. bottom: 0;
  1159. }
  1160. .bottom-nav .tab-button {
  1161. display: none;
  1162. }
  1163. .bottom-nav {
  1164. border-top: 0;
  1165. }
  1166. /* Show all tabs in grid layout */
  1167. .tab-content {
  1168. display: flex !important; /* Always display tab-content */
  1169. flex-direction: column;
  1170. border: 1px solid var(--border-primary);
  1171. background-color: var(--background-primary);
  1172. border-radius: 8px;
  1173. overflow-y: auto;
  1174. overflow-x: hidden;
  1175. position: relative;
  1176. }
  1177. body.playing .app {
  1178. padding: 15px 0 150px 15px;
  1179. margin-bottom: -140px;
  1180. }
  1181. body.playing .bottom-nav {
  1182. height: 140px;
  1183. }
  1184. body:not(.playing) .bottom-nav {
  1185. display: none;
  1186. }
  1187. }
  1188. /* Add specific styles for dark mode inputs */
  1189. :root[data-theme="dark"] input::placeholder,
  1190. :root[data-theme="dark"] select::placeholder,
  1191. :root[data-theme="dark"] textarea::placeholder {
  1192. color: #999;
  1193. }
  1194. /* Style the file list items in dark mode */
  1195. :root[data-theme="dark"] .file-list {
  1196. background: var(--background-secondary-dark);
  1197. }
  1198. :root[data-theme="dark"] .file-list li {
  1199. color: var(--text-primary-dark);
  1200. }
  1201. :root[data-theme="dark"] .file-list .filename {
  1202. color: var(--text-primary-dark);
  1203. }
  1204. :root[data-theme="dark"] .file-list li:hover {
  1205. background-color: var(--background-tertiary-dark);
  1206. }
  1207. :root[data-theme="dark"] .file-list button {
  1208. color: var(--text-primary-dark);
  1209. }
  1210. /* Update status log colors for dark mode */
  1211. :root[data-theme="dark"] #status_log {
  1212. background: #000000;
  1213. border-color: var(--border-primary-dark);
  1214. }
  1215. /* Update notification backgrounds for dark mode */
  1216. :root[data-theme="dark"] .notification {
  1217. /* Remove this line to keep original colors */
  1218. /* background-color: var(--background-secondary-dark); */
  1219. }
  1220. /* Notification Types - Update opacity for better visibility in dark mode */
  1221. :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
  1222. :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
  1223. :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
  1224. :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
  1225. /* Make notification text white for better contrast */
  1226. :root[data-theme="dark"] .notification {
  1227. color: white;
  1228. }
  1229. /* Update button colors for better visibility in dark mode */
  1230. :root[data-theme="dark"] button.no-bg:not(:hover) {
  1231. color: var(--text-primary-dark);
  1232. }
  1233. :root[data-theme="dark"] .file-list button:hover:not(:focus) {
  1234. background: var(--background-tertiary-dark);
  1235. box-shadow: inset 0 0 4px var(--border-secondary-dark);
  1236. }
  1237. /* Update custom checkbox/radio colors in dark mode */
  1238. :root[data-theme="dark"] .custom-checkbox,
  1239. :root[data-theme="dark"] .custom-radio {
  1240. border-color: var(--theme-primary-dark);
  1241. }
  1242. :root[data-theme="dark"] .custom-checkbox::after,
  1243. :root[data-theme="dark"] .custom-radio::after {
  1244. background-color: var(--theme-primary-dark);
  1245. }
  1246. :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
  1247. :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
  1248. background-color: var(--theme-primary-dark);
  1249. border-color: var(--theme-primary-hover-dark);
  1250. }
  1251. /* Update scroll arrow hover in dark mode */
  1252. :root[data-theme="dark"] .scroll-arrow:hover {
  1253. background: var(--theme-primary-hover-dark);
  1254. }
  1255. /* Update tab button hover in dark mode */
  1256. :root[data-theme="dark"] .tab-button {
  1257. background: var(--color-success);
  1258. color: var(--text-secondary);
  1259. }
  1260. :root[data-theme="dark"] .tab-button:hover {
  1261. background: var(--color-success);
  1262. }
  1263. :root[data-theme="dark"] .tab-button.active {
  1264. background: var(--background-secondary);
  1265. color: var(--text-secondary);
  1266. }
  1267. /* Override specific button hover states in dark mode */
  1268. :root[data-theme="dark"] button.cancel:hover {
  1269. background: var(--color-error) !important;
  1270. }
  1271. :root[data-theme="dark"] button.cta:hover {
  1272. background: var(--color-success-dark) !important;
  1273. }
  1274. :root[data-theme="dark"] button.warn:hover {
  1275. background: var(--color-warning) !important;
  1276. }
  1277. /* Update selection container button hover in dark mode */
  1278. :root[data-theme="dark"] .selection-container .nav-items > button:hover {
  1279. background: var(--text-secondary);
  1280. color: var(--theme-primary-dark);
  1281. }
  1282. :root[data-theme="dark"] .header #open-settings-button:hover {
  1283. background: var(--color-success-dark);
  1284. color: var(--text-primary-dark);
  1285. }