Lightningbeam/src/styles.css

1594 lines
30 KiB
CSS

body {
width: 100%;
height: 100%;
overflow: hidden;
touch-action: none; /* Prevent default touch gestures including pinch-zoom */
}
* {
user-select: none;
}
/* Allow text selection in input fields and textareas */
input,
textarea {
user-select: text;
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 2em #ffe21c);
}
:root {
--lineheight: 24px;
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: var(--lineheight);
font-weight: 400;
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
height: 100%;
}
.container {
margin: 0;
padding-top: 10vh;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}
.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
}
.row {
display: flex;
justify-content: center;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
input,
button {
border-radius: 8px;
border: 1px solid transparent;
/* padding: 0.6em 1.2em; */
padding: 0.4em 1em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #0f0f0f;
background-color: #ffffff;
transition: border-color 0.25s;
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
min-height: var(--lineheight);
}
div {
/* this should be on everything by default, really */
box-sizing: border-box;
}
button {
cursor: pointer;
}
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
}
input,
button {
outline: none;
}
#greet-input {
margin-right: 5px;
}
.header {
height: 60px;
min-width: 100%;
background-color: #ccc;
text-align: left;
z-index: 1;
display: flex;
align-items: center;
}
.icon {
width: var(--lineheight);
height: var(--lineheight);
}
.panecontainer {
width: 100%;
height: 100%;
border-radius: 5px;
overflow: hidden;
}
.horizontal-grid, .vertical-grid {
display: flex;
background-color: #555;
width: 100%;
height: 100%;
contain: strict;
}
.horizontal-grid:not(.panecontainer > .horizontal-grid),
.vertical-grid:not(.panecontainer > .vertical-grid) {
gap: 8px;
}
.horizontal-grid {
flex-direction: row;
}
.vertical-grid {
flex-direction: column;
}
/* I don't fully understand this selector but it works for now */
.horizontal-grid:hover:not(:has(*:hover)):not(.panecontainer > .horizontal-grid) {
background: #666;
cursor: ew-resize;
}
.vertical-grid:hover:not(:has(*:hover)):not(.panecontainer > .vertical-grid) {
background: #666;
cursor: ns-resize
}
.scroll {
overflow: scroll;
width: 100%;
height: 100%;
background-color: #555;
}
.stage {
width: 100%;
height: 100%;
/* overflow: scroll; */
}
.stageWrapper {
position: relative;
width: 1500px;
height: 1500px;
}
.selectionRect {
position: absolute;
width: 500px;
height: 300px;
left: 100px;
top: 100px;
border: 1px solid #00ffff;
display: none;
user-select: none;
pointer-events: none;
}
.cornerRect {
position: absolute;
width: 10px;
height: 10px;
background-color: black;
transition: width 0.2s ease, height 0.2s linear;
user-select: none;
pointer-events: auto;
/* z-index: 2; */
}
.cornerRect:hover {
width: 15px;
height: 15px;
}
.cornerRotateRect {
position: absolute;
width: 50px;
height: 50px;
/* background-color: blue; */
pointer-events: auto;
}
.nw {
top: 0px;
left: 0px;
transform: translate(-50%, -50%);
cursor:nw-resize;
}
.n {
top: 0px;
left: 50%;
transform: translate(-50%, -50%);
cursor:n-resize;
}
.ne {
top: 0px;
right: 0px;
transform: translate(50%, -50%);
cursor:ne-resize;
}
.e {
top: 50%;
right: 0px;
transform: translate(50%, -50%);
cursor:e-resize;
}
.se {
bottom: 0px;
right: 0px;
transform: translate(50%, 50%);
cursor:se-resize;
}
.s {
bottom: 0px;
left: 50%;
transform: translate(-50%, 50%);
cursor:s-resize;
}
.sw {
bottom: 0px;
left: 0px;
transform: translate(-50%, 50%);
cursor:sw-resize;
}
.w {
top: 50%;
left: 0px;
transform: translate(-50%, -50%);
cursor:w-resize;
}
.cornerRotateRect.nw,.cornerRotateRect.ne,.cornerRotateRect.se,.cornerRotateRect.sw {
/* cursor: url("assets/arrow-counterclockwise.svg") 12 12, auto; */
cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='currentColor' class='bi bi-arrow-counterclockwise' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2z'/%3E%3Cpath d='M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466'/%3E%3C/svg%3E") 12 12, auto;
}
.toolbar {
display: flex;
flex-direction: row;
gap: 10px;
padding: 5px;
flex-wrap: wrap;
align-content: flex-start;
justify-content: space-around;
}
.toolbtn {
width: calc( 3 * var(--lineheight) );
height: calc( 3 * var(--lineheight) );
background-color: #ccc;
}
.toolbtn img {
filter: invert(1);
}
.horiz_break {
width: 100%;
height: 5px;
background-color: #999;
}
.color-field {
position: relative;
display: flex;
align-items: center;
padding-left: 10px;
width: 100%;
height: calc(2 * var(--lineheight));
--color: red; /* CSS variable for the pseudo-element color */
--label-text: "Color:"; /* CSS variable for the label text */
}
.color-field::before {
content: var(--label-text);;
font-size: 16px;
color: black;
margin-right: 10px;
}
.color-field::after {
content: "";
flex-grow: 1;
height: 100%;
border-radius: 5px;
background:
linear-gradient(to right, var(--color), var(--color)),
repeating-conic-gradient(#B0B0B0 0% 25%, #E0E0E0 0% 50%)
50% / 20px 20px;
}
.clr-field button {
width: 50% !important;
/* height: 100% !important; */
/* margin: 100px; */
border-radius: 5px;
}
.clr-field input {
width: 50%;
}
.infopanel {
width: 100%;
height: 100%;
background-color: #aaa;
display: flex;
box-sizing: border-box;
gap: calc( var(--lineheight) / 2 );
padding: calc( var(--lineheight) / 2 );
flex-direction: column;
flex-wrap: wrap;
align-content: flex-start;
}
.infopanel-field {
width: 300px;
height: var(--lineheight);
display: flex;
flex-direction: row;
}
.infopanel-label {
flex: 1 1 50%;
}
.infopanel-input {
flex: 1 1 50%;
width: 50%;
}
.layers {
background-color: #aaa;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
min-height: 100%;
}
.frames-container {
background-color: #aaa;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
/* overflow-x: scroll; */
/* overflow-y:inherit; */
min-height: 100%;
overflow-x: scroll;
}
.layer-header {
width: 100%;
height: calc( 2 * var(--lineheight));
background-color: #aaa;
border-top: 1px solid #ddd;
border-bottom: 1px solid #999;
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.layer-header.active {
background-color: #ccc;
}
.layer-header.audio {
background-color: #8281cc;
border-top: 1px solid #9a99db;
border-bottom: 1px solid #817db9;
}
.layer-name {
padding-left: 1em;
padding-top: 5px;
display: inline-block;
color: #666;
cursor: text;
}
.layer-header.active > .layer-name {
color: #000;
}
/* Visibility icon positioning */
.visibility-icon {
width: 20px;
height: 20px;
cursor: pointer;
margin-right: 10px;
}
.layer-track {
min-width: 100%;
height: calc( 2 * var(--lineheight));
/* background: repeating-linear-gradient(to right, transparent, transparent 24px, #aaa 24px, #aaa 25px),
repeating-linear-gradient(to right, #bbb, #bbb 100px, #aaa 100px, #aaa 125px); */
background-image:
/* Layer 1: frame dividers */
linear-gradient(to right, transparent 24px, #aaa 24px 25px),
/* Layer 2: highlight every 5th frame */
linear-gradient(to right, #bbb 100px, #aaa 100px 125px);
background-repeat: repeat-x, repeat-x;
background-size: 25px 100%, 125px 100%;
display: flex;
flex-direction: row;
border-top: 1px solid #bbb;
border-bottom: 1px solid #ccc;
flex-shrink: 0;
}
.layer-track.invisible {
opacity: 0.3;
}
.frame {
width: 25px;
height: 100%;
background-color: #ccc;
flex-grow: 0;
flex-shrink: 0;
border-right: 1px solid #bbb;
border-left: 1px solid #ddd;
}
.frame:hover {
background-color: #555555;
}
.frame.active {
background-color: #fff;
}
.frame.keyframe {
position: relative;
}
.frame.keyframe::before {
content: ''; /* Creates a pseudo-element */
position: absolute;
bottom: 0; /* Position the circle at the bottom of the div */
left: 50%; /* Center the circle horizontally */
transform: translateX(-50%); /* Adjust for perfect centering */
width: 50%; /* Set the width of the circle to half of the div's width */
height: 0; /* Initially set to 0 */
padding-bottom: 50%; /* Set padding-bottom to 50% of the div's width to create a circle */
border-radius: 50%; /* Make the shape a circle */
background-color: #222; /* Set the color of the circle (black in this case) */
margin-bottom: 5px;
}
.frame.motion {
background-color: #7a00b3;
border: none;
}
.frame.motion:hover, .frame.motion.active {
background-color: #530379;
border-left: 1px solid #450264;
border-right: 1px solid #450264;
}
.frame.shape {
background-color: #9bff9b;
border: none;
}
.frame.shape:hover, .frame.shape.active {
background-color: #38f538;
border-left: 1px solid #26ac26;
border-right: 1px solid #26ac26;
}
/* :nth-child(1 of .frame.motion) {
background-color: blue;
}
:nth-last-child(1 of .frame.motion) {
background-color: red;
} */
.frame-highlight {
background-color: #888;
width: 25px;
height: calc( 2 * var(--lineheight) - 2px);
position: relative;
}
.hidden {
display: none;
}
#overlay, #saveOverlay {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999; /* Under the dialog */
}
/* Scoped styles for the dialog */
#newFileDialog, #saveDialog {
display: none; /* Hidden by default */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ddd;
border: 1px solid #aaa;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding: 20px;
width: 300px;
z-index: 1000; /* Make sure it's in front of other elements */
}
#newFileDialog .dialog-label, #saveDialog label {
display: block;
margin: 10px 0 5px;
}
#newFileDialog .dialog-input, #saveDialog input {
width: 100%;
padding: 8px;
margin: 5px 0;
border: 1px solid #aaa;
}
#newFileDialog .dialog-button, #saveDialog button {
width: 100%;
padding: 10px;
margin-top: 10px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
}
#newFileDialog .dialog-button:hover {
background-color: #0056b3;
}
#recentFilesList li {
word-wrap: break-word;
max-width: 100%;
white-space: normal;
overflow-wrap: break-word;
padding: 5px;
}
#recentFilesList {
list-style-type: none;
padding-left: 0;
}
#recentFilesList li:hover {
cursor: pointer;
background-color: #f0f0f0;
border-radius: 5px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
#popupMenu {
background-color: #eee;
box-shadow: 0 4px 8px rgba(0,0,0,0.5);
padding: 20px;
border-radius: 5px;
position: absolute;
}
#popupMenu ul {
padding: 0px;
margin: 0px;
}
#popupMenu li {
color: #222;
list-style-type: none;
display: flex;
align-items: center; /* Vertically center the image and text */
padding: 5px 0; /* Add padding for better spacing */
}
#popupMenu li:hover {
background-color: #fff;
cursor:pointer;
}
#popupMenu li:not(:last-child) {
border-bottom: 1px solid #ccc; /* Horizontal line for all li elements except the last */
}
#popupMenu li img {
margin-right: 10px; /* Space between the icon and text */
width: 20px; /* Adjust the width of the icon */
height: 20px; /* Adjust the height of the icon */
}
.splitIndicator {
position: absolute;
display: flex;
background-color: rgba(128, 128, 128, 0.31);
z-index: 500;
/* flex-direction: row; */
gap: 5px;
}
.first-half, .second-half {
border-radius: 10px;
box-sizing: border-box;
}
.first-half {
background-color: rgba(0, 128, 0, 0.3); /* Just for demo, adjust as needed */
}
.second-half {
background-color: rgba(128, 0, 0, 0.3); /* Just for demo, adjust as needed */
}
@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
background-color: #2f2f2f;
}
a:hover {
color: #24c8db;
}
input,
button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}
#newFileDialog, #saveDialog {
background-color: #444;
border: 1px solid #333;
}
#newFileDialog .dialog-input, #saveDialog input {
border: 1px solid #333;
}
#recentFilesList li:hover {
cursor: pointer;
background-color: #555;
border-radius: 5px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
#popupMenu {
background-color: #222;
}
#popupMenu li {
color: #ccc;
}
#popupMenu li:hover {
background-color: #444;
}
#popupMenu li:not(:last-child) {
border-bottom: 1px solid #444;
}
.color-field::before {
color: #eee;
}
.layers {
background-color: #222222;
}
.frames-container {
background-color: #222222;
}
.layer-header {
background-color: #222;
border-top: 1px solid #4f4f4f;
border-bottom: 1px solid #111;
}
.layer-header.active {
background-color: #444;
}
.layer-name {
color: #aaa
}
.layer-header.active > .layer-name {
color: #fff;
}
.layer-header.audio {
background-color: #23253b;
border-top: 1px solid #403f4e;
border-bottom: 1px solid #1f1e24;
}
.layer-track {
background-image:
linear-gradient(to right, transparent 23px, #1a1a1a 23px 25px), /* Dark mode frame dividers */
linear-gradient(to right, #121212 100px, #0a0a0a 100px 125px); /* Dark mode frame highlights */
border-top: 1px solid #222222;
border-bottom: 1px solid #3f3f3f;
}
.frame {
background-color: #4f4f4f;
border-right: 1px solid #3f3f3f;
border-left: 1px solid #555555;
}
.frame:hover {
background-color: #555555;
}
.frame.active {
background-color: #666666;
}
.infopanel {
background-color: #3f3f3f;
}
.header {
background-color: #3f3f3f;
}
.horizontal-grid, .vertical-grid {
background-color: #0f0f0f;
}
.toolbtn {
background-color: #2f2f2f;
}
.toolbtn img {
filter:none;
}
.horiz_break {
background-color: #2f2f2f;
}
.audioWaveform {
filter: invert(1);
}
.visibility-icon {
filter: invert(1);
}
}
/* Playback Controls */
.playback-controls-group {
display: inline-flex;
gap: 0;
margin: 5px;
align-items: center;
border-radius: 6px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.playback-btn {
width: 40px;
height: 36px;
padding: 0;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0;
border-right: 1px solid rgba(0, 0, 0, 0.15);
}
.playback-btn:last-child {
border-right: none;
}
/* Play Button - Triangle */
.playback-btn-play::before {
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #0f0f0f;
margin-left: 2px;
}
/* Pause Button - Two Bars */
.playback-btn-pause::before,
.playback-btn-pause::after {
content: "";
width: 4px;
height: 16px;
background-color: #0f0f0f;
position: absolute;
}
.playback-btn-pause::before {
left: 10px;
}
.playback-btn-pause::after {
right: 10px;
}
/* Rewind Button - Double Left Triangle */
.playback-btn-rewind::before,
.playback-btn-rewind::after {
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 7px 10px 7px 0;
border-color: transparent #0f0f0f transparent transparent;
position: absolute;
}
.playback-btn-rewind::before {
left: 10px;
}
.playback-btn-rewind::after {
left: 20px;
}
/* Fast Forward Button - Double Right Triangle */
.playback-btn-ff::before,
.playback-btn-ff::after {
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 7px 0 7px 10px;
border-color: transparent transparent transparent #0f0f0f;
position: absolute;
}
.playback-btn-ff::before {
left: 10px;
}
.playback-btn-ff::after {
left: 20px;
}
/* Go to Start - Bar + Left Triangle */
.playback-btn-start::before,
.playback-btn-start::after {
content: "";
position: absolute;
}
.playback-btn-start::before {
width: 2px;
height: 14px;
background-color: #0f0f0f;
left: 13px;
}
.playback-btn-start::after {
width: 0;
height: 0;
border-style: solid;
border-width: 7px 12px 7px 0;
border-color: transparent #0f0f0f transparent transparent;
left: 15px;
}
/* Go to End - Right Triangle + Bar */
.playback-btn-end::before,
.playback-btn-end::after {
content: "";
position: absolute;
}
.playback-btn-end::before {
width: 0;
height: 0;
border-style: solid;
border-width: 7px 0 7px 12px;
border-color: transparent transparent transparent #0f0f0f;
left: 13px;
}
.playback-btn-end::after {
width: 2px;
height: 14px;
background-color: #0f0f0f;
left: 25px;
}
/* Record Button - Circle */
.playback-btn-record::before {
content: "";
width: 14px;
height: 14px;
border-radius: 50%;
background-color: #cc0000;
}
.playback-btn-record:disabled::before {
background-color: #666;
}
/* Recording animation */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.playback-btn-record.recording::before {
animation: pulse 1s ease-in-out infinite;
}
/* Dark mode playback button adjustments */
@media (prefers-color-scheme: dark) {
.playback-btn {
border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.playback-btn-play::before {
border-color: transparent transparent transparent #f6f6f6;
}
.playback-btn-pause::before,
.playback-btn-pause::after {
background-color: #f6f6f6;
}
.playback-btn-rewind::before,
.playback-btn-rewind::after {
border-color: transparent #f6f6f6 transparent transparent;
}
.playback-btn-ff::before,
.playback-btn-ff::after {
border-color: transparent transparent transparent #f6f6f6;
}
.playback-btn-start::before {
background-color: #f6f6f6;
}
.playback-btn-start::after {
border-color: transparent #f6f6f6 transparent transparent;
}
.playback-btn-end::before {
border-color: transparent transparent transparent #f6f6f6;
}
.playback-btn-end::after {
background-color: #f6f6f6;
}
.playback-btn-record:disabled::before {
background-color: #444;
}
}
/* Time Display */
.time-display {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
border: 1px solid #555;
border-radius: 6px;
padding: 6px 12px;
margin-left: 10px;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.1);
transition: all 0.15s ease;
}
.time-display:hover {
background: linear-gradient(to bottom, #4a4a4a, #3a3a3a);
border-color: #666;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.15);
}
.time-display:active {
background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
}
.time-value {
font-family: 'Courier New', monospace;
font-size: 18px;
font-weight: bold;
color: #f0f0f0;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
min-width: 24px;
text-align: center;
}
.time-fps-group {
display: inline-flex;
align-items: center;
gap: 8px;
}
.time-fps-clickable {
padding: 2px 6px;
border-radius: 3px;
transition: background-color 0.15s ease;
cursor: pointer;
}
.time-fps-clickable:hover {
background-color: rgba(100, 150, 255, 0.3);
}
.time-fps-clickable:hover .time-value {
text-decoration: underline;
}
.time-label {
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #999;
margin-right: 4px;
}
.time-label:last-child {
margin-right: 0;
}
/* Dark mode time display adjustments */
@media (prefers-color-scheme: dark) {
.time-display {
background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
border-color: #555;
}
.time-value {
color: #f0f0f0;
}
.time-label {
color: #999;
}
}
/* ============================================
NODE EDITOR STYLES
============================================ */
/* Node editor container */
#node-editor-container {
width: 100%;
height: 100%;
position: relative;
background: #1e1e1e;
}
/* Node palette */
.node-palette {
position: absolute;
top: 10px;
left: 10px;
background: #2d2d2d;
border: 1px solid #3d3d3d;
border-radius: 4px;
padding: 8px;
max-width: 200px;
z-index: 100;
}
.node-palette h3 {
margin: 0 0 8px 0;
font-size: 12px;
color: #ccc;
text-transform: uppercase;
}
.node-palette-item {
padding: 6px 8px;
margin: 4px 0;
background: #3d3d3d;
border: 1px solid #4d4d4d;
border-radius: 3px;
cursor: pointer;
color: #ddd;
font-size: 13px;
transition: background 0.2s;
}
.node-palette-item:hover {
background: #4d4d4d;
}
.node-palette-item:active {
background: #5d5d5d;
}
/* Node content styling */
.node-content {
padding: 8px;
min-width: 180px;
}
/* Expanded VoiceAllocator node */
.drawflow .drawflow-node.expanded {
background: rgba(60, 60, 80, 0.95) !important;
border: 2px solid #7c7cff !important;
box-shadow: 0 0 20px rgba(124, 124, 255, 0.4);
}
.drawflow .drawflow-node.expanded .node-content {
display: flex;
flex-direction: column;
height: 100%;
}
.drawflow .drawflow-node.expanded .voice-allocator-contents {
flex: 1;
background: rgba(40, 40, 50, 0.8);
border-radius: 4px;
margin-top: 8px;
padding: 8px;
position: relative;
overflow: auto;
}
/* Child nodes (inside VoiceAllocator) */
.drawflow .drawflow-node.child-node {
opacity: 0.9;
border: 1px solid #5a5aaa !important;
box-shadow: 0 2px 8px rgba(90, 90, 170, 0.3);
z-index: 10;
}
.drawflow .drawflow-node.child-node .node-title {
font-size: 11px;
}
/* Template nodes (non-deletable I/O nodes) */
.drawflow .drawflow-node.template-node {
border: 2px solid #9d4edd !important;
background: rgba(157, 78, 221, 0.15) !important;
box-shadow: 0 0 12px rgba(157, 78, 221, 0.4);
pointer-events: auto;
cursor: default;
}
.drawflow .drawflow-node.template-node .node-title {
color: #c77dff;
font-weight: bold;
}
.node-title {
font-weight: bold;
font-size: 13px;
margin-bottom: 6px;
color: #fff;
text-align: center;
}
.node-info {
font-size: 11px;
color: #999;
text-align: center;
padding: 4px 0;
}
.node-param {
margin: 3px 0;
}
.node-param label {
display: block;
font-size: 10px;
color: #ccc;
margin-bottom: 2px;
}
.node-slider {
width: calc(100% - 8px);
max-width: 140px;
height: 3px;
-webkit-appearance: none;
appearance: none;
background: #4d4d4d;
outline: none;
border-radius: 2px;
}
.node-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 12px;
height: 12px;
background: #4CAF50;
cursor: pointer;
border-radius: 50%;
}
.node-slider::-moz-range-thumb {
width: 12px;
height: 12px;
background: #4CAF50;
cursor: pointer;
border-radius: 50%;
border: none;
}
/* Signal Type Connectors */
/* Audio ports - Blue circles (matches audio clips) */
.connector-audio {
width: 14px !important;
height: 14px !important;
border-radius: 50% !important;
background: #2196F3 !important;
border: 2px solid #1565C0 !important;
}
/* MIDI ports - Green squares (matches MIDI clips) */
.connector-midi {
width: 14px !important;
height: 14px !important;
border-radius: 2px !important;
background: #4CAF50 !important;
border: 2px solid #2E7D32 !important;
}
/* CV ports - Orange diamonds */
.connector-cv {
width: 12px !important;
height: 12px !important;
background: #FF9800 !important;
border: 2px solid #E65100 !important;
transform: rotate(45deg) !important;
border-radius: 2px !important;
}
/* Connection line styling - Override Drawflow defaults */
.drawflow .connection .main-path {
stroke-width: 3px;
}
.connection-audio .main-path {
stroke: #2196F3 !important;
stroke-width: 4px !important;
}
.connection-midi .main-path {
stroke: #4CAF50 !important;
stroke-width: 3px !important;
stroke-dasharray: 8, 4 !important;
}
.connection-cv .main-path {
stroke: #FF9800 !important;
stroke-width: 2px !important;
}
/* Port label text styling - position labels away from connectors */
.drawflow .drawflow-node .input > span,
.drawflow .drawflow-node .output > span {
font-size: 9px;
color: #999;
pointer-events: none;
position: absolute;
line-height: 20px;
top: 0;
}
/* Input labels - position to the right of the connector */
.drawflow .drawflow-node .input > span {
left: 24px;
}
/* Output labels - position to the left of the connector */
.drawflow .drawflow-node .output > span {
right: 24px;
}
/* Node styling overrides for Drawflow */
.drawflow .drawflow-node {
background: #2d2d2d !important;
border: 2px solid #4d4d4d !important;
border-radius: 6px !important;
color: #ddd !important;
padding: 8px !important;
}
.drawflow .drawflow-node.selected {
border-color: #4CAF50 !important;
box-shadow: 0 0 10px rgba(76, 175, 80, 0.5) !important;
}
/* Error message styling */
.node-editor-error {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(244, 67, 54, 0.9);
color: white;
padding: 12px 20px;
border-radius: 4px;
font-size: 14px;
z-index: 200;
animation: fadeOut 3s forwards;
}
@keyframes fadeOut {
0%, 70% { opacity: 1; }
100% { opacity: 0; }
}
/* Preset Browser Pane Styling */
.preset-browser-pane {
display: flex;
flex-direction: column;
height: 100%;
background: #1e1e1e;
color: #ddd;
overflow: hidden;
}
.preset-browser-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #252525;
border-bottom: 1px solid #3d3d3d;
}
.preset-browser-header h3 {
margin: 0;
font-size: 16px;
font-weight: 500;
color: #fff;
}
.preset-btn {
background: #4CAF50;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
display: flex;
align-items: center;
gap: 6px;
transition: background 0.2s;
}
.preset-btn:hover {
background: #45a049;
}
.preset-btn span {
font-size: 16px;
}
.preset-filter {
padding: 12px 16px;
background: #252525;
border-bottom: 1px solid #3d3d3d;
display: flex;
gap: 8px;
}
.preset-filter input,
.preset-filter select {
flex: 1;
background: #1e1e1e;
color: #ddd;
border: 1px solid #3d3d3d;
padding: 6px 10px;
border-radius: 4px;
font-size: 13px;
}
.preset-filter input:focus,
.preset-filter select:focus {
outline: none;
border-color: #4CAF50;
}
.preset-categories {
flex: 1;
overflow-y: auto;
padding: 12px;
}
.preset-category {
margin-bottom: 24px;
}
.preset-category h4 {
margin: 0 0 12px 0;
font-size: 13px;
font-weight: 600;
color: #999;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.preset-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.preset-item {
background: #252525;
border: 1px solid #3d3d3d;
border-radius: 4px;
padding: 10px 12px;
cursor: pointer;
transition: all 0.2s;
}
.preset-item:hover {
background: #2d2d2d;
border-color: #4CAF50;
}
.preset-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.preset-name {
font-size: 14px;
font-weight: 500;
color: #fff;
}
.preset-delete-btn {
background: transparent;
border: none;
color: #f44336;
cursor: pointer;
font-size: 16px;
padding: 2px 6px;
border-radius: 3px;
transition: background 0.2s;
}
.preset-delete-btn:hover {
background: rgba(244, 67, 54, 0.2);
}
.preset-description {
font-size: 12px;
color: #999;
margin-bottom: 6px;
line-height: 1.4;
}
.preset-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 4px;
}
.preset-tag {
background: #3d3d3d;
color: #aaa;
font-size: 10px;
padding: 2px 6px;
border-radius: 3px;
text-transform: lowercase;
}
.preset-author {
font-size: 11px;
color: #777;
font-style: italic;
}
.preset-loading,
.preset-empty,
.preset-error {
padding: 20px;
text-align: center;
color: #777;
font-size: 13px;
}
.preset-error {
color: #f44336;
}
/* Modal Dialog for Save Preset */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
}
.modal-dialog {
background: #252525;
border: 1px solid #3d3d3d;
border-radius: 6px;
padding: 24px;
min-width: 400px;
max-width: 500px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.modal-dialog h3 {
margin: 0 0 20px 0;
font-size: 18px;
color: #fff;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-size: 13px;
color: #aaa;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
background: #1e1e1e;
color: #ddd;
border: 1px solid #3d3d3d;
padding: 8px 10px;
border-radius: 4px;
font-size: 13px;
font-family: inherit;
box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: #4CAF50;
}
.form-group textarea {
resize: vertical;
min-height: 60px;
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 20px;
}
.btn-cancel,
.btn-primary {
padding: 8px 16px;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
border: none;
font-weight: 500;
transition: background 0.2s;
}
.btn-cancel {
background: #3d3d3d;
color: #ddd;
}
.btn-cancel:hover {
background: #4d4d4d;
}
.btn-primary {
background: #4CAF50;
color: white;
}
.btn-primary:hover {
background: #45a049;
}