| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523 |
- :root {
- /* Light theme variables */
- --background-primary-light: #f9f9f9;
- --background-secondary-light: #fff;
- --background-tertiary-light: #ddd;
- --background-accent-light: #4e453fbf;
- --background-translucent-light: #FFFFFF80;
- --text-primary-light: #333;
- --text-secondary-light: #fff;
- --border-primary-light: #ddd;
- --border-secondary-light: grey;
- /* Dark theme variables */
- --background-primary-dark: #121212;
- --background-secondary-dark: #1e1e1e;
- --background-tertiary-dark: #2d2d2d;
- --background-accent-dark: #4e453fef;
- --background-translucent-dark: rgba(18, 18, 18, 0.5);
- --text-primary-dark: #eeeeee;
- --text-secondary-dark: #fff;
- --border-primary-dark: #404040;
- --border-secondary-dark: #666;
- /* Add form-specific colors for dark theme */
- --input-background-dark: #2d2d2d;
- --input-text-dark: #e0e0e0;
- --input-border-dark: #404040;
- --input-background-light: #ffffff;
- --input-text-light: #333333;
- --input-border-light: var(--border-primary-light);
- /* Common theme variables that don't change */
- --theme-primary: #6A9AD9;
- --theme-primary-hover: #A0CCF2;
- --theme-secondary: #C4B4A0;
- --theme-secondary-hover: #4E453F;
- --color-info: #6A9AD9CC;
- --color-success: #4CAF50CC;
- --color-warning: #FF9800CC;
- --color-error: #E53935CC;
- /* Default to light theme */
- --background-primary: var(--background-primary-light);
- --background-secondary: var(--background-secondary-light);
- --background-tertiary: var(--background-tertiary-light);
- --background-accent: var(--background-accent-light);
- --background-translucent: var(--background-translucent-light);
- --text-primary: var(--text-primary-light);
- --text-secondary: var(--text-secondary-light);
- --border-primary: var(--border-primary-light);
- --border-secondary: var(--border-secondary-light);
- --background-info: var(--color-info);
- --background-success: var(--color-success);
- --background-warning: var(--color-warning);
- --background-error: var(--color-error);
-
- --border-accent: var(--theme-primary);
- --border-hover: var(--theme-primary-hover);
-
- --shadow-primary: 0 0 20px var(--border-secondary);
-
- --transition-fast: 0.1s ease-in-out;
- --transition-medium: 0.250s ease;
- --transition-slow: 1s ease;
- /* Add to default theme variables */
- --input-background: var(--input-background-light);
- --input-text: var(--input-text-light);
- --input-border: var(--input-border-light);
- /* Add dark theme specific colors */
- --theme-primary-dark: #585858; /* Main button color in dark mode */
- --theme-primary-hover-dark: #686868; /* Button hover color in dark mode */
- }
- /* Dark theme class */
- :root[data-theme="dark"] {
- --background-primary: var(--background-primary-dark);
- --background-secondary: var(--background-secondary-dark);
- --background-tertiary: var(--background-tertiary-dark);
- --background-accent: var(--background-accent-dark);
- --background-translucent: var(--background-translucent-dark);
- --text-primary: var(--text-primary-dark);
- --text-secondary: var(--text-secondary-dark);
- --border-primary: var(--border-primary-dark);
- --border-secondary: var(--border-secondary-dark);
-
- --input-background: var(--input-background-dark);
- --input-text: var(--input-text-dark);
- --input-border: var(--input-border-dark);
- /* Update text colors for common elements */
- --theme-secondary-hover: var(--text-primary-dark); /* Updates h1, h2 colors */
- /* Override theme colors for dark mode */
- --theme-primary: var(--theme-primary-dark);
- --theme-primary-hover: var(--theme-primary-hover-dark);
- --color-info: #6A9AD9;
- --color-success: #4CAF50;
- --color-warning: #FF9800;
- --color-error: #E53935;
- }
- :root[data-theme="dark"] {
- color: var(--text-primary-dark);
- }
- /* Fix selection container text in dark mode */
- :root[data-theme="dark"] .selection-container {
- color: var(--text-primary-dark);
- background: var(--theme-primary-dark);
- }
- /* Ensure custom inputs have proper contrast */
- :root[data-theme="dark"] .custom-input {
- color: var(--text-primary-dark);
- }
- /* Add smooth transitions for theme switching */
- body * {
- transition: background-color var(--transition-fast),
- color var(--transition-fast),
- border-color var(--transition-fast);
- }
- @font-face {
- font-family: 'Roboto';
- src: url('../webfonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
- font-weight: 100 900; /* Variable range of weights */
- font-stretch: 75% 100%; /* Variable width range (optional) */
- font-style: normal;
- }
- /* General
- /* General Styling */
- body {
- margin: 0;
- font-family: 'Roboto', sans-serif;
- background: var(--background-primary);
- display: flex;
- flex-direction: column;
- position: relative;
- }
- body * {
- box-sizing: border-box;
- }
- h1, h2 {
- margin: 0;
- }
- header {
- position: sticky;
- height: 50px;
- top: 0;
- z-index: 10;
- background: var(--background-primary);
- display: flex;
- justify-content: center;
- align-items: center;
- }
- h1, h2 {
- color: var(--theme-secondary-hover);
- transition: var(--transition-slow) color;
- }
- h3 {
- margin: 10px 0;
- }
- /* Inputs */
- input, select, textarea {
- display: block;
- width: 100%;
- padding: 10px;
- margin-bottom: 10px;
- border: 1px solid var(--input-border);
- border-radius: 5px;
- font-size: 1rem;
- background-color: var(--input-background);
- color: var(--input-text);
- }
- /* Custom Input Wrapper */
- .custom-input {
- display: flex;
- align-items: center;
- gap: 10px;
- font-size: 1rem;
- color: var(--text-primary);
- cursor: pointer;
- flex: 1 1 auto;
- }
- /* Hide the Native Input */
- .custom-input input {
- display: none;
- }
- /* Checkbox and Radio Styles */
- .custom-checkbox,
- .custom-radio {
- display: inline-block;
- width: 20px;
- height: 20px;
- border: 2px solid var(--theme-primary);
- background-color: var(--background-secondary);
- position: relative;
- transition: background-color 0.3s ease, border-color 0.3s ease;
- }
- /* Checkbox Specific */
- .custom-checkbox {
- border-radius: 4px;
- }
- .custom-checkbox::after {
- content: '';
- width: 10px;
- height: 10px;
- background-color: var(--theme-primary);
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%) scale(0);
- transition: transform 0.2s ease-in-out;
- }
- /* Radio Specific */
- .custom-radio {
- border-radius: 50%;
- }
- .custom-radio::after {
- content: '';
- width: 10px;
- height: 10px;
- background-color: var(--theme-primary);
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%) scale(0);
- border-radius: 50%;
- transition: transform 0.2s ease-in-out;
- }
- /* Checked State */
- .custom-input input:checked + .custom-checkbox::after,
- .custom-input input:checked + .custom-radio::after {
- transform: translate(-50%, -50%) scale(1);
- }
- .custom-input input:checked + .custom-checkbox,
- .custom-input input:checked + .custom-radio {
- background-color: var(--theme-primary);
- border-color: var(--theme-primary-hover);
- }
- /* Focus State */
- .custom-input input:focus-visible + .custom-checkbox,
- .custom-input input:focus-visible + .custom-radio {
- outline: 2px dashed var(--theme-primary);
- outline-offset: 2px;
- }
- /* Hover Effects */
- .custom-checkbox:hover,
- .custom-radio:hover {
- border-color: var(--theme-primary-hover);
- }
- /* Scrollable Selection Styles */
- .scrollable-selection {
- display: flex;
- flex-direction: row;
- align-items: center;
- min-width: 50%;
- position: relative;
- }
- .scroll-arrow {
- border: none;
- padding: 5px;
- width: 100%;
- cursor: pointer;
- font-size: 1rem;
- transition: background-color 0.3s;
- }
- .scroll-arrow:hover {
- background: var(--theme-primary-hover);
- }
- .selection-container {
- overflow: hidden;
- height: 50px; /* Adjust based on visible area */
- width: 100%;
- position: relative;
- border: 1px solid var(--border-primary);
- background: var(--theme-primary);
- color: var(--text-secondary);
- border-radius: 5px;
- font-weight: bold;
- }
- .nav-items {
- position: absolute;
- right: 0;
- top: 0;
- display: flex;
- height: 100%;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .selection-container .nav-items > button {
- height: 50%;
- padding: 0;
- width: 100% !important;
- }
- .selection-container .nav-items > button:hover {
- background: var(--text-secondary);
- color: var(--theme-primary);
- }
- .selection-items {
- display: flex;
- flex-direction: column;
- transition: transform 0.3s ease;
- padding-right: 30px;
- }
- .selection-item {
- height: 50px;
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- padding: 5px;
- transition: background-color 0.3s ease;
- }
- .selection-item:hover {
- background: var(--theme-primary-hover);
- color: var(--text-secondary);
- }
- /* Buttons */
- button {
- background: var(--theme-primary);
- color: var(--text-secondary);
- padding: 10px 15px;
- border: none;
- font-weight: bold;
- border-radius: 5px;
- cursor: pointer;
- font-size: 1rem;
- transition: var(--transition-medium) all;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- button:not(.no-bg):hover{
- background: var(--background-info);
- }
- button.cancel {
- flex-grow: 0;
- }
- button.cancel:hover {
- background: var(--color-error);
- }
- button.cta:hover {
- background: var(--color-success);
- }
- button.warn:hover {
- background: var(--color-warning);
- }
- button.warning:hover{}
- /* App Layout */
- .app {
- min-height: calc(100vh - 110px);
- display: flex;
- flex-direction: column;
- }
- .hidden:not(.sticky) {
- display: none !important;
- }
- /* Tabs */
- .tab-content {
- display: none;
- flex: 1;
- overflow-y: auto;
- background: var(--background-secondary);
- }
- .tab-content.active {
- display: flex;
- position: relative;
- flex-direction: column;
- }
- section {
- padding: 15px;
- display: flex;
- flex-direction: column;
- }
- section.main {
- flex-grow: 1;
- }
- section.debug {
- flex-direction: row;
- align-items: flex-end;
- justify-content: space-between;
- }
- section.version {
- flex-direction: row;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- section#settings-container > section{
- padding-left: 0;
- padding-right: 0;
- }
- .version .header {
- width: 100%;
- }
- .version #motor_selection h3 {
- width: 100%;
- flex-grow: 1;
- }
- .version #motor_selection {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- width: 100%;
- }
- .version select#manual_motor_type {
- margin: 0 20px 0 0;
- flex: 1;
- }
- section.sticky {
- position: fixed;
- background-color: var(--background-translucent);
- backdrop-filter: blur(10px);
- bottom: 60px;
- border-top: 1px solid var(--border-primary);
- box-shadow: var(--shadow-primary);
- transform: translateY(0);
- transition: var(--transition-medium) transform, var(--transition-medium) height;
- visibility: visible;
- max-height: 75vh;
- width: 100%;
- z-index: 10;
- }
- section.sticky.fullscreen {
- position: fixed;
- top: 0;
- left: 0;
- width: 100vw;
- max-height: none;
- }
- section.sticky.hidden {
- transform: translateY(100%);
- visibility: hidden;
- width: 100%;
- position: absolute;
- overflow:hidden;
- height: 0;
- padding: 0;
- }
- section .header {
- position: relative;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- margin-bottom: 10px;
- width: 100%;
- }
- section .header h2 {
- flex-grow: 1;
- }
- section .header #open-settings-button:hover{
- color: var(--theme-primary);
- }
- /* Close Button Styling */
- button.no-bg {
- background: none;
- border: none;
- font-size: 1.5rem;
- font-weight: bold;
- color: var(--text-primary);
- cursor: pointer;
- line-height: 1;
- padding: 0;
- height: 100%;
- width: auto;
- aspect-ratio: 1 / 1;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-left: 10px;
- }
- .close-button:hover {
- color: var(--color-error);
- }
- .fullscreen-button:hover {
- color: var(--color-warning);
- }
- section .header .add-button {
- height: 35px;
- width: 35px;
- padding: 0;
- }
- /* Playlist */
- .add-to-playlist {
- margin-top: 15px;
- }
- .add-to-playlist button {
- margin-bottom: 10px;
- }
- .add-to-container {
- display: flex;
- flex-wrap: wrap;
- margin-bottom: 20px;
- }
- #add-to-playlist-container {
- display: flex;
- flex-wrap: wrap;
- }
- #add-to-playlist-container h3{
- margin: 0 10px 0 0;
- align-self: center;
- }
- #add-to-playlist-container select{
- width: auto;
- flex-grow: 1;
- margin: 0;
- }
- #add-to-playlist-container .action-buttons {
- margin-top: 10px;
- }
- .playlist-parameters {
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .playlist-parameters .control-group button.small.cancel {
- align-self: flex-end;
- margin-bottom: 4px;
- }
- #clear_pattern {
- margin: 0;
- }
- .playlist-parameters .input-group input,
- .playlist-parameters .input-group select {
- width: 100%; /* Ensure inputs/selects stretch to full width */
- padding: 10px;
- border: 1px solid var(--border-primary);
- border-radius: 5px;
- font-size: 1rem;
- }
- .empty-placeholder {
- color: gray;
- font-style: italic;
- text-align: center;
- padding: 10px;
- }
- /* Style for the filename span */
- .filename {
- flex-grow: 1; /* Use available space */
- font-size: 1rem;
- color: var(--text-primary);
- margin-right: 10px; /* Space between filename and buttons */
- word-wrap: break-word;
- width: 100%;
- display: flex;
- align-items: center;
- }
- /* File List */
- .file-list {
- list-style: none;
- padding: 0;
- margin: 0;
- border: 1px solid var(--border-primary);
- border-radius: 5px;
- overflow-y: auto;
- background: var(--background-primary);
- flex-grow: 1;
- }
- .file-list#playlist_items{
- margin-bottom: 10px
- }
- .file-list li {
- display: flex;
- padding: 10px;
- border-bottom: 1px solid var(--border-primary);
- cursor: pointer;
- transition: background-color var(--transition-medium);
- }
- .file-list li:hover {
- background-color: var(--background-tertiary);
- }
- .file-list li.selected {
- background: var(--theme-primary);
- color: var(--text-secondary);
- font-weight: bold;
- }
- .file-list li.selected .filename {
- font-weight: bold;
- color: var(--text-secondary);
- }
- .file-list button {
- margin-left: 5px;
- background: none;
- color: black;
- font-weight: bold;
- height: 40px;
- width: 40px;
- flex: 0 0 auto;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .file-list button:hover:not(:focus) {
- background: var(--background-primary);
- box-shadow: inset 0 0 4px var(--border-secondary);
- }
- .file-list button.remove-button {
- color: var(--color-error);
- }
- .title-container {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .rename-button {
- margin-left: 10px;
- background: var(--theme-primary-hover);
- color: var(--text-secondary);
- border: none;
- border-radius: 5px;
- padding: 5px 10px;
- cursor: pointer;
- transition: background 0.3s ease;
- }
- /* Bottom Navigation */
- .bottom-nav {
- display: flex;
- position: sticky;
- justify-content: space-around;
- bottom: 0;
- height: 60px;
- width: 100%;
- border-top: 1px solid var(--theme-primary);
- flex-wrap: wrap;
- z-index: 10;
- }
- .tab-button {
- flex: 1;
- height: 60px;
- padding: 20px 10px;
- text-align: center;
- font-size: 1rem;
- font-weight: bold;
- color: var(--text-secondary);
- background: none;
- border: none;
- cursor: pointer;
- transition: background 0.3s ease;
- background: var(--background-info);
- backdrop-filter: blur(2px);
- border-radius: 0;
- }
- .bottom-nav .tab-button.active {
- background: rgba(255, 255, 255, 0.75);
- color: var(--theme-primary);
- }
- /* Quick Action Buttons */
- .action-buttons {
- display: flex;
- gap: 10px;
- flex-wrap: wrap;
- width: 100%;
- justify-content: space-between;
- }
- .action-buttons .scrollable-selection {
- width: calc(50% - 10px);
- }
- .action-buttons.square button {
- padding: 5px;
- aspect-ratio: 1 / 1;
- width: calc(25% - 10px);
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .action-buttons.square button i{
- font-size: 2.5rem;
- }
- button i + span{
- font-size: 1.25rem;
- }
- button i + span{
- margin-left: 5px;
- }
- .action-buttons.square button i + span{
- margin: 3px;
- }
- button i + span.small {
- font-size: 0.75rem;
- }
- .action-buttons button i + span{
- display: block;
- }
- .action-buttons button.m {
- width: calc(50% - 10px);
- }
- .action-buttons button.l {
- width: 100%;
- }
- .action-buttons button.small {
- flex: 0;
- flex-basis: calc(25% - 10px);
- }
- .action-buttons button.cta {
- flex-grow: 1;
- }
- button#debug_button {
- width: 40px;
- padding: 0;
- height: 40px;
- background: transparent;
- color: var(--text-primary);
- font-size: 1.5rem;
- margin-left: 40px;
- flex: 0 0 auto;
- transition: var(--transition-medium) all;
- }
- button#debug_button:hover,
- button#debug_button.active {
- box-shadow: inset 0 0 4px var(--border-secondary);
- }
- #device-tab .dropdown {
- width: 50%;
- }
- #settings-container {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: var(--background-translucent);
- backdrop-filter: blur(10px);
- z-index: 1000;
- overflow-y: auto;
- display: none; /* Hidden by default */
- flex-direction: column;
- }
- #settings-container.open{
- display: flex;
- }
- #open-settings-button {
- aspect-ratio: auto;
- }
- #open-settings-button span {
- order: -1;
- margin-right: 5px;
- }
- #theme-toggle .fa-sun:not(:hover) {
- color: #ffd700;
- }
- #theme-toggle .fa-moon:not(:hover) {
- color: var(--color-info);
- }
- /* Preview Canvas */
- #patternPreviewCanvas {
- width: 100%;
- max-width: 300px;
- aspect-ratio: 1/1;
- border: 1px solid var(--border-primary);
- background: var(--theme-secondary);
- border-radius: 100%;
- padding: 15px;
- }
- #pattern-preview {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-bottom: 20px;
- }
- #pattern-preview-container.fullscreen #patternPreviewCanvas {
- width: initial;
- max-width: calc(100vw - 30px);
- }
- .pre-execution {
- width: 100%;
- display: flex;
- }
- .pre-execution h3 {
- flex-grow: 1;
- margin: 0;
- align-content: center;
- }
- .pre-execution .control-group {
- width: auto;
- flex-grow: 1;
- margin: 0;
- }
- .pre-execution select {
- margin: 0;
- }
- /* Currently Playing Section Styling */
- body.playing .bottom-nav {
- height: 200px;
- align-items: flex-end;
- }
- #currently-playing-container {
- align-items: center;
- background: var(--background-accent);
- color: var(--text-secondary);
- }
- #currently-playing-container h3,
- #currently-playing-container .open-button
- {
- color: var(--text-secondary);
- }
- #currently-playing-container h3 {
- margin: 0;
- }
- body:not(.playing) #currently-playing-container {
- display: none;
- }
- #currently-playing-container.open {
- max-height: none;
- bottom: 60px;
- }
- body.playing #currently-playing-container:not(.open) {
- height: 140px;
- overflow:hidden;
- flex-direction: row;
- flex-wrap: wrap;
- bottom: 60px;
- }
- body.playing #currently-playing-container .header{
- justify-content: center;
- margin-bottom: 0;
- }
- body.playing #currently-playing-container .header .open-button {
- width: 100%;
- height: 20px;
- padding-top: 10px;
- margin: 0;
- }
- body.playing #currently-playing-preview #currentlyPlayingCanvas {
- max-width:100px;
- padding: 5px;
- }
- body.playing #currently-playing-container:not(.open) .header .fullscreen-button,
- body.playing #currently-playing-container:not(.open) .header .close-button,
- body.playing #currently-playing-container:not(.open) .header h3 {
- display: none;
- }
- body.playing #currently-playing-container:not(.open) #currently-playing-details{
- flex-grow: 1;
- flex-basis: 50%;
- align-items: flex-start;
- margin: 0 0 0 10px;
- overflow-y: auto;
- }
- body.playing #currently-playing-container:not(.open) .play-buttons button {
- width: 50px;
- height: 50px;
- font-size: 1.5rem;
- }
- body.playing #currently-playing-container:not(.open) #progress-container {
- width: 100%;
- }
- #currentlyPlayingCanvas {
- width: 100%;
- max-width: 300px;
- aspect-ratio: 1/1;
- border: 1px solid var(--border-primary);
- background: var(--theme-secondary);
- border-radius: 100%;
- padding: 10px;
- }
- #currently-playing-details {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-bottom: 15px;
- }
- #currently-playing-details p {
- margin: 5px 0;
- font-size: 1rem;
- }
- #progress-container {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- flex-wrap: wrap;
- }
- #play_progress {
- width: auto;
- flex-grow: 1;
- height: 8px;
- appearance: none;
- background-color: var(--border-primary);
- border-radius: 4px;
- overflow: hidden;
- }
- #play_progress::-webkit-progress-bar {
- background-color: var(--border-primary);
- }
- #play_progress::-webkit-progress-value {
- background-color: var(--theme-primary);
- transition: width 0.25s ease;
- }
- #play_progress_text {
- font-size: 0.9rem;
- margin-left: 10px;
- }
- .play-buttons {
- display: flex;
- gap: 20px;
- }
- .play-buttons button {
- width: 75px;
- height: 75px;
- aspect-ratio: 1/1;
- font-size: 3rem;
- border: none;
- cursor: pointer;
- display: flex;
- justify-content: center;
- }
- #pausePlayCurrent {
- border-radius: 50%;
- }
- /* Debug Log */
- #status_log {
- background: #000;
- color: var(--text-secondary);
- font-family: monospace;
- font-size: 0.9rem;
- border-top: 1px solid var(--border-primary);
- padding: 10px;
- max-height: 200px;
- overflow-y: scroll;
- display: none;
- width: 100%;
- }
- #status_log p {
- margin: 0;
- }
- .control-group {
- display: flex;
- margin-bottom: 10px;
- flex-wrap: wrap;
- width: 100%;
- align-items: center;
- justify-content: space-between;
- gap: 0 10px;
- }
- .control-group input {
- margin-bottom: 0;
- }
- .control-group h3 {
- width: 100%;
- }
- .control-group .item {
- display: flex;
- align-items: center;
- flex: 1;
- }
- .control-group .item.cta {
- justify-content: flex-end;
- }
- .control-group .item.column {
- flex-direction: column;
- text-align: center;
- }
- .control-group .item label {
- padding: 5px;
- }
- #serial_ports_container > * {
- display: inline-block;
- }
- #serial_ports_container select {
- margin: 10px;
- flex-basis: 100px;
- flex-grow: 0;
- }
- #serial_ports {
- width: auto;
- min-width: 200px;
- }
- #serial_status_container {
- margin-bottom: 10px;
- }
- #serial_status_header::before {
- content: '';
- width: 20px;
- height: 20px;
- border-radius: 50%;
- margin-right: 8px;
- background-color: var(--text-primary);
- display: inline-block;
- transition: var(--transition-slow) background-color;
- }
- #serial_status_header.connected::before {
- background-color: var(--color-success);
- }
- #serial_status_header.not-connected::before {
- background-color: var(--color-error);
- }
- #serial_ports_buttons {
- display: flex;
- gap: 10px;
- }
- .status.connected {
- color: var(--color-success);
- font-weight: bold;
- }
- .status.not-connected {
- color: var(--color-error);
- font-weight: bold;
- }
- /* Speed Control Section */
- .speed-control {
- display: flex;
- }
- .speed-control label {
- font-weight: bold;
- font-size: 1rem;
- color: var(--text-primary);
- flex-shrink: 0;
- }
- .speed-control input[type="number"] {
- width: 100px; /* Consistent input width */
- padding: 8px;
- font-size: 1rem;
- border: 1px solid var(--border-primary);
- border-radius: 5px;
- outline: none;
- transition: all 0.3s ease;
- }
- input[type="number"]:focus {
- border-color: var(--theme-primary);
- box-shadow: 0 0 4px var(--background-info);
- }
- #speed_status {
- margin-top: 10px;
- font-size: 0.9rem;
- }
- #serial_ports_container > * {
- display: inline-block;
- }
- #serial_ports_container select {
- margin: 10px;
- flex-basis: 100px;
- flex-grow: 0;
- }
- #serial_ports {
- width: auto;
- min-width: 200px;
- }
- #wled-container {
- flex: 1 1 auto;
- display: flex;
- flex-direction: column;
- }
- #wled_ip {
- margin-right: 10px;
- }
- #wled-frame {
- flex: 1 1 auto;
- width: 100%;
- border: none;
- }
- /* Notification Styles */
- .notification {
- display: flex;
- position: absolute;
- top: 0;
- left: 0;
- font-weight: bold;
- z-index: 1000;
- color: var(--text-secondary);
- width: 100%;
- height: 100%;
- justify-content: center;
- align-items: center;
- backdrop-filter: blur(2px);
- opacity: 0;
- transition: opacity var(--transition-medium);
- cursor: pointer;
- }
- .notification.show {
- opacity: 1; /* Fully visible */
- }
- .notification .close-button {
- color: var(--text-secondary);
- font-size: 1.5rem;
- top: 0;
- right: 0;
- position: absolute;
- }
- /* Notification Types */
- .notification.success { background-color: var(--background-success); }
- .notification.warning { background-color: var(--background-warning); }
- .notification.error { background-color: var(--background-error); }
- .notification.info { background-color: var(--background-info); }
- .footer {
- align-items: center;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-bottom: 20px;
- width: 100%;
- }
- #github {
- align-content: center;
- display: flex;
- font-size: 0.8em;
- }
- #github img {
- margin: 0 5px
- }
- /* Responsive Design */
- @media (max-width: 1023px) {
- body {
- font-size: 0.9rem;
- }
- .tab-button {
- font-size: 0.9rem;
- }
- .footer {
- display: none;
- }
- button.cancel {
- background: var(--color-error);
- }
- button.cta {
- background: var(--color-success);
- }
- button.warn {
- background: var(--color-warning);
- }
- button.cancel:hover,
- button.warn:hover,
- button.cta:hover {
- background: var(--theme-primary);
- }
- body.playing section.sticky{
- bottom: 200px;
- }
- }
- /* On larger screens, display all tabs in a 3-column grid */
- @media screen and (min-width: 1024px) {
- .app {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 0 16px;
- height: calc(100vh - 60px);
- padding: 0 15px;
- }
- #status_log {
- grid-column: span 3;
- align-self: flex-end;
- height: 100%;
- }
- section.sticky {
- position: sticky;
- bottom: 0;
- }
- .bottom-nav .tab-button {
- display: none;
- }
- .bottom-nav {
- border-top: 0;
- }
- /* Show all tabs in grid layout */
- .tab-content {
- display: flex !important; /* Always display tab-content */
- flex-direction: column;
- border: 1px solid var(--border-primary);
- background-color: var(--background-primary);
- border-radius: 8px;
- overflow-y: auto;
- overflow-x: hidden;
- position: relative;
- }
- body.playing .app {
- padding: 15px 0 150px 15px;
- margin-bottom: -140px;
- }
- body.playing .bottom-nav {
- height: 140px;
- }
- body:not(.playing) .bottom-nav {
- display: none;
- }
- body.playing #currently-playing-container.open {
- position: absolute;
- bottom: 0;
- }
- body.playing #currently-playing-container:not(.open) #currently-playing-details {
- flex-direction: row;
- align-items: center;
- }
- #currently-playing-container h3 {
- flex-grow: 1;
- }
- body.playing #currently-playing-container.open .header {
- display: none;
- }
- #open-settings-button span {
- opacity: 0;
- transition: var(--transition-medium) opacity;
- }
- #open-settings-button:hover span {
- opacity: 1;
- }
- }
- /* Add specific styles for dark mode inputs */
- :root[data-theme="dark"] input::placeholder,
- :root[data-theme="dark"] select::placeholder,
- :root[data-theme="dark"] textarea::placeholder {
- color: #999;
- }
- /* Style the file list items in dark mode */
- :root[data-theme="dark"] .file-list {
- background: var(--background-secondary-dark);
- }
- :root[data-theme="dark"] .file-list li {
- color: var(--text-primary-dark);
- }
- :root[data-theme="dark"] .file-list .filename {
- color: var(--text-primary-dark);
- }
- :root[data-theme="dark"] .file-list li:hover {
- background-color: var(--background-tertiary-dark);
- }
- :root[data-theme="dark"] .file-list button {
- color: var(--text-primary-dark);
- }
- /* Update status log colors for dark mode */
- :root[data-theme="dark"] #status_log {
- background: #000000;
- border-color: var(--border-primary-dark);
- }
- /* Update notification backgrounds for dark mode */
- :root[data-theme="dark"] .notification {
- /* Remove this line to keep original colors */
- /* background-color: var(--background-secondary-dark); */
- }
- /* Notification Types - Update opacity for better visibility in dark mode */
- :root[data-theme="dark"] .notification.success { background-color: var(--color-success); }
- :root[data-theme="dark"] .notification.warning { background-color: var(--color-warning); }
- :root[data-theme="dark"] .notification.error { background-color: var(--color-error); }
- :root[data-theme="dark"] .notification.info { background-color: var(--color-info); }
- /* Make notification text white for better contrast */
- :root[data-theme="dark"] .notification {
- color: white;
- }
- /* Update button colors for better visibility in dark mode */
- :root[data-theme="dark"] button.no-bg:not(:hover) {
- color: var(--text-primary-dark);
- }
- :root[data-theme="dark"] .file-list button:hover:not(:focus) {
- background: var(--background-tertiary-dark);
- box-shadow: inset 0 0 4px var(--border-secondary-dark);
- }
- /* Update custom checkbox/radio colors in dark mode */
- :root[data-theme="dark"] .custom-checkbox,
- :root[data-theme="dark"] .custom-radio {
- border-color: var(--theme-primary-dark);
- }
- :root[data-theme="dark"] .custom-checkbox::after,
- :root[data-theme="dark"] .custom-radio::after {
- background-color: var(--theme-primary-dark);
- }
- :root[data-theme="dark"] .custom-input input:checked + .custom-checkbox,
- :root[data-theme="dark"] .custom-input input:checked + .custom-radio {
- background-color: var(--theme-primary-dark);
- border-color: var(--theme-primary-hover-dark);
- }
- /* Update scroll arrow hover in dark mode */
- :root[data-theme="dark"] .scroll-arrow:hover {
- background: var(--theme-primary-hover-dark);
- }
- /* Update tab button hover in dark mode */
- :root[data-theme="dark"] .tab-button {
- background: var(--color-success);
- color: var(--text-secondary);
- }
- :root[data-theme="dark"] .tab-button:hover {
- background: var(--color-success);
- }
- :root[data-theme="dark"] .tab-button.active {
- background: var(--background-secondary);
- color: var(--text-secondary);
- }
- /* Override specific button hover states in dark mode */
- :root[data-theme="dark"] button.cancel:hover {
- background: var(--color-error) !important;
- }
- :root[data-theme="dark"] button.cta:hover {
- background: var(--color-success) !important;
- }
- :root[data-theme="dark"] button.warn:hover {
- background: var(--color-warning) !important;
- }
- /* Update selection container button hover in dark mode */
- :root[data-theme="dark"] .selection-container .nav-items > button:hover {
- background: var(--text-secondary);
- color: var(--theme-primary-dark);
- }
|