mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented midi support`
This commit is contained in:
1 parent
f55b8f06e4
commit
8d0817b39e
41 files changed
+2827
-26
No files matched your search
@@ -324,3 +324,31 @@ option {
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.ambient-wash { animation: none !important; }
|
||||
}
|
||||
|
||||
/* ---- On-screen MIDI learning (MidiLearnOverlay.tsx) --------------------- */
|
||||
/* Outlines, not borders or shadows: they sit outside the control and change
|
||||
no layout, and the controls' own shadows (lit buttons) stay as they are. */
|
||||
body.midi-learn [data-midi-action] {
|
||||
outline: 1px dashed color-mix(in oklab, var(--color-accent) 70%, transparent);
|
||||
outline-offset: 2px;
|
||||
cursor: crosshair;
|
||||
}
|
||||
body.midi-learn [data-midi-action][data-midi-mapped] {
|
||||
outline-style: solid;
|
||||
}
|
||||
body.midi-learn [data-midi-action][data-midi-armed] {
|
||||
outline: 2px solid var(--color-accent);
|
||||
outline-offset: 3px;
|
||||
animation: midi-armed 0.9s ease-in-out infinite alternate;
|
||||
}
|
||||
body.midi-learn [data-midi-action][data-midi-learned] {
|
||||
outline: 2px solid var(--color-mint);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
@keyframes midi-armed {
|
||||
from { outline-color: var(--color-accent); }
|
||||
to { outline-color: color-mix(in oklab, var(--color-accent) 30%, transparent); }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
body.midi-learn [data-midi-action][data-midi-armed] { animation: none; }
|
||||
}
|
||||
Reference in new issue
Block a user