style.css 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542
  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. position: relative;
  358. flex-direction: column;
  359. }
  360. section {
  361. padding: 15px;
  362. display: flex;
  363. flex-direction: column;
  364. }
  365. section.main {
  366. flex-grow: 1;
  367. }
  368. section.debug {
  369. flex-direction: row;
  370. align-items: flex-end;
  371. justify-content: space-between;
  372. }
  373. section.version {
  374. flex-direction: row;
  375. justify-content: space-between;
  376. flex-wrap: wrap;
  377. }
  378. section#settings-container > section{
  379. padding-left: 0;
  380. padding-right: 0;
  381. }
  382. .version .header {
  383. width: 100%;
  384. }
  385. .version #motor_selection h3 {
  386. width: 100%;
  387. flex-grow: 1;
  388. }
  389. .version #motor_selection {
  390. display: flex;
  391. flex-direction: row;
  392. flex-wrap: wrap;
  393. width: 100%;
  394. }
  395. .version select#manual_motor_type {
  396. margin: 0 20px 0 0;
  397. flex: 1;
  398. }
  399. section.sticky {
  400. position: fixed;
  401. background-color: var(--background-translucent);
  402. backdrop-filter: blur(10px);
  403. bottom: 60px;
  404. border-top: 1px solid var(--border-primary);
  405. box-shadow: var(--shadow-primary);
  406. transform: translateY(0);
  407. transition: var(--transition-medium) transform, var(--transition-medium) height;
  408. visibility: visible;
  409. max-height: 75vh;
  410. width: 100%;
  411. z-index: 10;
  412. }
  413. section.sticky.fullscreen {
  414. position: fixed;
  415. top: 50px;
  416. left: 0;
  417. width: 100vw;
  418. max-height: none;
  419. }
  420. section.sticky.hidden {
  421. transform: translateY(100%);
  422. visibility: hidden;
  423. width: 100%;
  424. position: absolute;
  425. overflow:hidden;
  426. height: 0;
  427. padding: 0;
  428. }
  429. section .header {
  430. position: relative;
  431. display: flex;
  432. justify-content: flex-end;
  433. align-items: center;
  434. margin-bottom: 10px;
  435. width: 100%;
  436. }
  437. section .header h2 {
  438. flex-grow: 1;
  439. }
  440. section .header #open-settings-button:hover{
  441. color: var(--theme-primary);
  442. }
  443. /* Close Button Styling */
  444. button.no-bg {
  445. background: none;
  446. border: none;
  447. font-size: 1.5rem;
  448. font-weight: bold;
  449. color: var(--text-primary);
  450. cursor: pointer;
  451. line-height: 1;
  452. padding: 0;
  453. height: 100%;
  454. width: auto;
  455. aspect-ratio: 1 / 1;
  456. display: flex;
  457. justify-content: center;
  458. align-items: center;
  459. margin-left: 10px;
  460. }
  461. .close-button:hover {
  462. color: var(--color-error);
  463. }
  464. .fullscreen-button:hover {
  465. color: var(--color-warning);
  466. }
  467. section .header .add-button {
  468. height: 35px;
  469. width: 35px;
  470. padding: 0;
  471. }
  472. /* Playlist */
  473. .add-to-playlist {
  474. margin-top: 15px;
  475. }
  476. .add-to-playlist button {
  477. margin-bottom: 10px;
  478. }
  479. .add-to-container {
  480. display: flex;
  481. flex-wrap: wrap;
  482. margin-bottom: 20px;
  483. }
  484. #add-to-playlist-container {
  485. display: flex;
  486. flex-wrap: wrap;
  487. }
  488. #add-to-playlist-container h3{
  489. margin: 0 10px 0 0;
  490. align-self: center;
  491. }
  492. #add-to-playlist-container select{
  493. width: auto;
  494. flex-grow: 1;
  495. margin: 0;
  496. }
  497. #add-to-playlist-container .action-buttons {
  498. margin-top: 10px;
  499. }
  500. .playlist-parameters {
  501. display: flex;
  502. flex-direction: column;
  503. gap: 10px;
  504. }
  505. .playlist-parameters .control-group button.small.cancel {
  506. align-self: flex-end;
  507. margin-bottom: 4px;
  508. }
  509. #clear_pattern {
  510. margin: 0;
  511. }
  512. .playlist-parameters .input-group input,
  513. .playlist-parameters .input-group select {
  514. width: 100%; /* Ensure inputs/selects stretch to full width */
  515. padding: 10px;
  516. border: 1px solid var(--border-primary);
  517. border-radius: 5px;
  518. font-size: 1rem;
  519. }
  520. .empty-placeholder {
  521. color: gray;
  522. font-style: italic;
  523. text-align: center;
  524. padding: 10px;
  525. }
  526. /* Style for the filename span */
  527. .filename {
  528. flex-grow: 1; /* Use available space */
  529. font-size: 1rem;
  530. color: var(--text-primary);
  531. margin-right: 10px; /* Space between filename and buttons */
  532. word-wrap: break-word;
  533. width: 100%;
  534. display: flex;
  535. align-items: center;
  536. }
  537. /* File List */
  538. .file-list {
  539. list-style: none;
  540. padding: 0;
  541. margin: 0;
  542. border: 1px solid var(--border-primary);
  543. border-radius: 5px;
  544. overflow-y: auto;
  545. background: var(--background-primary);
  546. flex-grow: 1;
  547. }
  548. .file-list#playlist_items{
  549. margin-bottom: 10px;
  550. max-height: 20vh;
  551. }
  552. .file-list li {
  553. display: flex;
  554. padding: 10px;
  555. border-bottom: 1px solid var(--border-primary);
  556. cursor: pointer;
  557. transition: background-color var(--transition-medium);
  558. }
  559. .file-list li:hover {
  560. background-color: var(--background-tertiary);
  561. }
  562. .file-list li.selected {
  563. background: var(--theme-primary);
  564. color: var(--text-secondary);
  565. font-weight: bold;
  566. }
  567. .file-list li.selected .filename {
  568. font-weight: bold;
  569. color: var(--text-secondary);
  570. }
  571. .file-list button {
  572. margin-left: 5px;
  573. background: none;
  574. color: black;
  575. font-weight: bold;
  576. height: 40px;
  577. width: 40px;
  578. flex: 0 0 auto;
  579. display: flex;
  580. justify-content: center;
  581. align-items: center;
  582. }
  583. .file-list button:hover:not(:focus) {
  584. background: var(--background-primary);
  585. box-shadow: inset 0 0 4px var(--border-secondary);
  586. }
  587. .file-list button.remove-button {
  588. color: var(--color-error);
  589. }
  590. .title-container {
  591. display: flex;
  592. justify-content: space-between;
  593. align-items: center;
  594. }
  595. .rename-button {
  596. margin-left: 10px;
  597. background: var(--theme-primary-hover);
  598. color: var(--text-secondary);
  599. border: none;
  600. border-radius: 5px;
  601. padding: 5px 10px;
  602. cursor: pointer;
  603. transition: background 0.3s ease;
  604. }
  605. /* Bottom Navigation */
  606. .bottom-nav {
  607. display: flex;
  608. position: sticky;
  609. justify-content: space-around;
  610. bottom: 0;
  611. height: 60px;
  612. width: 100%;
  613. border-top: 1px solid var(--theme-primary);
  614. flex-wrap: wrap;
  615. z-index: 10;
  616. }
  617. .tab-button {
  618. flex: 1;
  619. height: 60px;
  620. padding: 20px 10px;
  621. text-align: center;
  622. font-size: 1rem;
  623. font-weight: bold;
  624. color: var(--text-secondary);
  625. background: none;
  626. border: none;
  627. cursor: pointer;
  628. transition: background 0.3s ease;
  629. background: var(--background-info);
  630. backdrop-filter: blur(2px);
  631. border-radius: 0;
  632. }
  633. .bottom-nav .tab-button.active {
  634. background: rgba(255, 255, 255, 0.75);
  635. color: var(--theme-primary);
  636. }
  637. /* Quick Action Buttons */
  638. .action-buttons {
  639. display: flex;
  640. gap: 10px;
  641. flex-wrap: wrap;
  642. width: 100%;
  643. justify-content: space-between;
  644. }
  645. .action-buttons .scrollable-selection {
  646. width: calc(50% - 10px);
  647. }
  648. .action-buttons.square button {
  649. padding: 5px;
  650. aspect-ratio: 1 / 1;
  651. width: calc(25% - 10px);
  652. flex-direction: column;
  653. justify-content: center;
  654. align-items: center;
  655. }
  656. .action-buttons.square button i{
  657. font-size: 2.5rem;
  658. }
  659. button i + span{
  660. font-size: 1.25rem;
  661. }
  662. button i + span{
  663. margin-left: 5px;
  664. }
  665. .action-buttons.square button i + span{
  666. margin: 3px;
  667. }
  668. button i + span.small {
  669. font-size: 0.75rem;
  670. }
  671. .action-buttons button i + span{
  672. display: block;
  673. }
  674. .action-buttons button.m {
  675. width: calc(50% - 10px);
  676. }
  677. .action-buttons button.l {
  678. width: 100%;
  679. }
  680. .action-buttons button.small {
  681. flex: 0;
  682. flex-basis: calc(25% - 10px);
  683. }
  684. .action-buttons button.cta {
  685. flex-grow: 1;
  686. }
  687. button#debug_button {
  688. width: 40px;
  689. padding: 0;
  690. height: 40px;
  691. background: transparent;
  692. color: var(--text-primary);
  693. font-size: 1.5rem;
  694. margin-left: 40px;
  695. flex: 0 0 auto;
  696. transition: var(--transition-medium) all;
  697. }
  698. button#debug_button:hover,
  699. button#debug_button.active {
  700. box-shadow: inset 0 0 4px var(--border-secondary);
  701. }
  702. #device-tab .dropdown {
  703. width: 50%;
  704. }
  705. #settings-container {
  706. position: absolute;
  707. top: 0;
  708. left: 0;
  709. width: 100%;
  710. height: 100%;
  711. background-color: var(--background-translucent);
  712. backdrop-filter: blur(10px);
  713. z-index: 1000;
  714. overflow-y: auto;
  715. display: none; /* Hidden by default */
  716. flex-direction: column;
  717. }
  718. #settings-container.open{
  719. display: flex;
  720. }
  721. #open-settings-button {
  722. aspect-ratio: auto;
  723. }
  724. #open-settings-button span {
  725. order: -1;
  726. margin-right: 5px;
  727. }
  728. #theme-toggle .fa-sun:not(:hover) {
  729. color: #ffd700;
  730. }
  731. #theme-toggle .fa-moon:not(:hover) {
  732. color: var(--color-info);
  733. }
  734. /* Preview Canvas */
  735. #patternPreviewCanvas {
  736. width: 100%;
  737. max-width: 300px;
  738. aspect-ratio: 1/1;
  739. border: 1px solid var(--border-primary);
  740. background: var(--theme-secondary);
  741. border-radius: 100%;
  742. padding: 15px;
  743. }
  744. #pattern-preview {
  745. display: flex;
  746. flex-direction: column;
  747. align-items: center;
  748. margin-bottom: 20px;
  749. }
  750. #pattern-preview-container.fullscreen #patternPreviewCanvas {
  751. width: initial;
  752. max-width: calc(100vw - 30px);
  753. }
  754. .pre-execution {
  755. width: 100%;
  756. display: flex;
  757. }
  758. .pre-execution h3 {
  759. flex-grow: 1;
  760. margin: 0;
  761. align-content: center;
  762. }
  763. .pre-execution .control-group {
  764. width: auto;
  765. flex-grow: 1;
  766. margin: 0;
  767. }
  768. .pre-execution select {
  769. margin: 0;
  770. }
  771. /* Currently Playing Section Styling */
  772. body.playing .bottom-nav {
  773. height: 200px;
  774. align-items: flex-end;
  775. }
  776. #currently-playing-container {
  777. align-items: center;
  778. background: var(--background-accent);
  779. color: var(--text-secondary);
  780. }
  781. #currently-playing-container h3,
  782. #currently-playing-container .open-button
  783. {
  784. color: var(--text-secondary);
  785. }
  786. #currently-playing-container h3 {
  787. margin: 0;
  788. }
  789. body:not(.playing) #currently-playing-container {
  790. display: none;
  791. }
  792. #currently-playing-container.open {
  793. max-height: none;
  794. bottom: 60px;
  795. }
  796. body.playing #currently-playing-container:not(.open) {
  797. height: 140px;
  798. overflow:hidden;
  799. flex-direction: row;
  800. flex-wrap: wrap;
  801. bottom: 60px;
  802. }
  803. body.playing #currently-playing-container .header{
  804. justify-content: center;
  805. margin-bottom: 0;
  806. }
  807. body.playing #currently-playing-container .header .open-button {
  808. width: 100%;
  809. height: 20px;
  810. padding-top: 10px;
  811. margin: 0;
  812. }
  813. body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
  814. body.playing #currently-playing-container:not(.open) .header .close-button,
  815. body.playing #currently-playing-container:not(.open) .header h3 {
  816. display: none;
  817. }
  818. body.playing #currently-playing-container:not(.open) #currently-playing-details{
  819. flex-grow: 1;
  820. flex-basis: 50%;
  821. align-items: flex-start;
  822. margin: 0 0 0 10px;
  823. overflow-y: auto;
  824. }
  825. body.playing #currently-playing-container:not(.open) .play-buttons button {
  826. width: 50px;
  827. height: 50px;
  828. font-size: 1.5rem;/* Center within flex container */
  829. }
  830. body.playing #currently-playing-container:not(.open) #progress-container {
  831. width: 100%;
  832. }
  833. #currentlyPlayingCanvas {
  834. width: 100px;
  835. aspect-ratio: 1/1;
  836. border: 1px solid var(--border-primary);
  837. background: var(--theme-secondary);
  838. border-radius: 100%;
  839. padding: 10px;
  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. }