|
|
@@ -2,18 +2,18 @@
|
|
|
--background-primary: #f9f9f9;
|
|
|
--background-secondary: #fff;
|
|
|
--background-tertiary: #ddd;
|
|
|
- --background-accent: rgba(74, 144, 226, 0.75);
|
|
|
- --background-info: var(--background-accent);
|
|
|
- --background-success: rgba(76, 175, 80, 0.8);
|
|
|
- --background-warning: rgba(255, 152, 0, 0.8);
|
|
|
- --background-error: rgba(229, 57, 53, 0.8);
|
|
|
+ --background-accent: #4e453fbf;
|
|
|
+ --background-info: var(--color-info);
|
|
|
+ --background-success: var(--color-success);
|
|
|
+ --background-warning: var(--color-warning);
|
|
|
+ --background-error: var( --color-error);
|
|
|
|
|
|
--theme-primary: #6A9AD9;
|
|
|
--theme-primary-hover: #A0CCF2;
|
|
|
--theme-secondary: #C4B4A0;
|
|
|
--theme-secondary-hover: #4E453F;
|
|
|
|
|
|
- --color-info: var(--theme-primary);
|
|
|
+ --color-info: #6A9AD9CC;
|
|
|
--color-success: #4CAF50CC;
|
|
|
--color-warning: #FF9800CC;
|
|
|
--color-error: #E53935CC;
|
|
|
@@ -33,6 +33,15 @@
|
|
|
--transition-slow: 1s ease;
|
|
|
}
|
|
|
|
|
|
+@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 */
|
|
|
@@ -173,8 +182,8 @@ input, select {
|
|
|
|
|
|
.dropdown {
|
|
|
position: relative;
|
|
|
- display: inline-block;
|
|
|
- min-width: 200px;
|
|
|
+ display: flex;
|
|
|
+ flex-grow: 1;
|
|
|
}
|
|
|
|
|
|
.dropdown-button {
|
|
|
@@ -198,7 +207,7 @@ input, select {
|
|
|
cursor: pointer;
|
|
|
user-select: none;
|
|
|
height: 100%;
|
|
|
- aspect-ratio: 1 / 1;
|
|
|
+ aspect-ratio: 1 / 2;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
@@ -212,16 +221,19 @@ input, select {
|
|
|
|
|
|
.dropdown-content {
|
|
|
position: absolute;
|
|
|
+ width: 100%;
|
|
|
+ top: 100%;
|
|
|
color: var(--theme-primary);
|
|
|
background: var(--text-secondary);
|
|
|
min-width: 120px;
|
|
|
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
|
|
|
z-index: 1;
|
|
|
display: none;
|
|
|
- border-radius: 5px
|
|
|
+ border-radius: 5px;
|
|
|
+ padding: 5px;
|
|
|
}
|
|
|
|
|
|
-.dropdown-content button {
|
|
|
+.dropdown-content button.no-bg {
|
|
|
width: 100%;
|
|
|
color: var(--theme-primary);
|
|
|
background: none;
|
|
|
@@ -229,6 +241,9 @@ input, select {
|
|
|
text-align: left;
|
|
|
padding: 10px;
|
|
|
cursor: pointer;
|
|
|
+ aspect-ratio: auto;
|
|
|
+ font-size: 0.9rem;
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
|
|
|
.dropdown-content button:hover {
|
|
|
@@ -247,6 +262,9 @@ button {
|
|
|
cursor: pointer;
|
|
|
font-size: 1rem;
|
|
|
transition: background 0.3s ease,color 0.3s ease;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
|
|
|
button:not(.no-bg):hover{
|
|
|
@@ -415,7 +433,6 @@ button.no-bg {
|
|
|
section .header .add-button {
|
|
|
height: 35px;
|
|
|
width: 35px;
|
|
|
- font-size: 1.5rem;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
@@ -603,9 +620,60 @@ section .header .add-button {
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
|
|
|
-.action-buttons button {
|
|
|
- flex: 1;
|
|
|
+.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 .dropdown-content button {
|
|
|
+ width: 100%;
|
|
|
+ aspect-ratio: auto;
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.action-buttons.square button i{
|
|
|
+ font-size: 2rem;
|
|
|
}
|
|
|
+
|
|
|
+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.dropdown-button {
|
|
|
+ aspect-ratio: auto;
|
|
|
+ width: 100%;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+
|
|
|
+.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);
|
|
|
@@ -631,12 +699,8 @@ button#debug_button.active {
|
|
|
box-shadow: inset 0 0 4px var(--border-secondary);
|
|
|
}
|
|
|
|
|
|
-#settings-tab button.cancel {
|
|
|
- flex-basis: 100%;
|
|
|
-}
|
|
|
-
|
|
|
#settings-tab .dropdown {
|
|
|
- min-width: 66.66%;
|
|
|
+ width: 50%;
|
|
|
}
|
|
|
|
|
|
/* Preview Canvas */
|
|
|
@@ -669,14 +733,19 @@ body.playing .bottom-nav {
|
|
|
align-items: flex-end;
|
|
|
}
|
|
|
|
|
|
-body.playing section.sticky{
|
|
|
- bottom: 200px;
|
|
|
-}
|
|
|
-
|
|
|
#currently-playing-container {
|
|
|
align-items: center;
|
|
|
+ background: var(--background-accent);
|
|
|
+ color: var(--text-secondary);
|
|
|
}
|
|
|
|
|
|
+#currently-playing-container h2,
|
|
|
+#currently-playing-container .open-button
|
|
|
+{
|
|
|
+ color: var(--text-secondary);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
body:not(.playing) #currently-playing-container {
|
|
|
display: none;
|
|
|
}
|
|
|
@@ -694,22 +763,31 @@ body.playing #currently-playing-container:not(.open) {
|
|
|
bottom: 60px;
|
|
|
}
|
|
|
|
|
|
-body.playing #currently-playing-container:not(.open) .header{
|
|
|
+body.playing #currently-playing-container .header{
|
|
|
justify-content: center;
|
|
|
+ margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
-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 h2 {
|
|
|
- display: none;
|
|
|
+body.playing #currently-playing-container .header .open-button {
|
|
|
+ width: 100%;
|
|
|
+ height: 20px;
|
|
|
+ padding-top: 10px;
|
|
|
+ margin: 0;
|
|
|
}
|
|
|
|
|
|
-body.playing #currently-playing-container:not(.open) .header .open-button {
|
|
|
- display: block;
|
|
|
+body.playing #currently-playing-preview {
|
|
|
+ padding: 10px;
|
|
|
}
|
|
|
|
|
|
-body.playing #currently-playing-container:not(.open) #currently-playing-preview {
|
|
|
+body.playing #currently-playing-preview #currentlyPlayingCanvas {
|
|
|
max-width:80px;
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+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 h2 {
|
|
|
+ display: none;
|
|
|
}
|
|
|
|
|
|
body.playing #currently-playing-container:not(.open) #currently-playing-details{
|
|
|
@@ -728,7 +806,7 @@ body.playing #currently-playing-container:not(.open) #progress-container {
|
|
|
width: 100%;
|
|
|
}
|
|
|
|
|
|
-body:not(.playing) #currently-playing-container:not(.open) #play_progress_text {
|
|
|
+body.playing #currently-playing-container:not(.open) #play_progress_text {
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
@@ -752,7 +830,6 @@ body:not(.playing) #currently-playing-container:not(.open) #play_progress_text {
|
|
|
|
|
|
#currently-playing-details p {
|
|
|
margin: 5px 0;
|
|
|
- color: var(--text-primary);
|
|
|
font-size: 1rem;
|
|
|
}
|
|
|
|
|
|
@@ -761,7 +838,7 @@ body:not(.playing) #currently-playing-container:not(.open) #play_progress_text {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
- margin-bottom: 10px;
|
|
|
+ margin: 5px 0;
|
|
|
flex-wrap: wrap;
|
|
|
}
|
|
|
|
|
|
@@ -786,7 +863,6 @@ body:not(.playing) #currently-playing-container:not(.open) #play_progress_text {
|
|
|
#play_progress_text {
|
|
|
font-size: 0.9rem;
|
|
|
margin-left: 10px;
|
|
|
- color: var(--text-primary);
|
|
|
}
|
|
|
|
|
|
.play-buttons {
|
|
|
@@ -902,9 +978,9 @@ body:not(.playing) #currently-playing-container:not(.open) #play_progress_text {
|
|
|
background-color: var(--color-error);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
#serial_ports_buttons {
|
|
|
- display: inline-block;
|
|
|
+ display: flex;
|
|
|
+ gap: 10px;
|
|
|
}
|
|
|
|
|
|
.status.connected {
|
|
|
@@ -964,11 +1040,6 @@ input[type="number"]:focus {
|
|
|
min-width: 200px;
|
|
|
}
|
|
|
|
|
|
-#serial_status_container,
|
|
|
-#serial_ports_buttons {
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
-
|
|
|
/* Notification Styles */
|
|
|
.notification {
|
|
|
display: flex;
|
|
|
@@ -1054,6 +1125,11 @@ input[type="number"]:focus {
|
|
|
button.cta:hover {
|
|
|
background: var(--theme-primary);
|
|
|
}
|
|
|
+
|
|
|
+ body.playing section.sticky{
|
|
|
+ bottom: 200px;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/* On larger screens, display all tabs in a 3-column grid */
|
|
|
@@ -1065,10 +1141,6 @@ input[type="number"]:focus {
|
|
|
height: calc(100vh - 60px);
|
|
|
}
|
|
|
|
|
|
- .bottom-nav {
|
|
|
- display: none;
|
|
|
- }
|
|
|
-
|
|
|
#status_log {
|
|
|
grid-column: span 3;
|
|
|
align-self: flex-end;
|
|
|
@@ -1080,6 +1152,14 @@ input[type="number"]:focus {
|
|
|
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 */
|
|
|
@@ -1091,4 +1171,26 @@ input[type="number"]:focus {
|
|
|
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.open .header {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
}
|