diff --git a/browser/css/style.css b/browser/css/style.css index 94b0efca..1d1a2616 100644 --- a/browser/css/style.css +++ b/browser/css/style.css @@ -1 +1 @@ -:root { --color-accent: #528bff; --color-text: #eee; --color-text-fade: #aaa; }* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; outline: 0; font: inherit; cursor: inherit; -webkit-tap-highlight-color: transparent; }a { cursor: pointer; display: block; }::-webkit-scrollbar { width: 20rem; height: 20rem; opacity: 1; }::-webkit-scrollbar-track-piece { background: #22252c; }::-webkit-scrollbar-track-piece:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-track-piece:horizontal { border-top: 1rem solid #17191e; }::-webkit-scrollbar-corner { background: transparent; }::-webkit-scrollbar-thumb { background: #2d313a; }::-webkit-scrollbar-thumb:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-thumb:horizontal { border-top: 1rem solid #17191e; }* { -webkit-user-select: none; }input:focus::selection { background: #528bff; color: #eee; }input { cursor: text; }html, body { height: 100%; overflow: hidden; position: relative; }html { font-size: 1px; }body { font-size: 14rem; line-height: 16rem; font-family: sans-serif; color: #eee; white-space: nowrap; opacity: 1; cursor: default; }.btn { background: #2d313a; display: block; box-shadow: 0 0 0 1rem #17191e; padding: 15rem; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; cursor: pointer; }.btn:hover { box-shadow: 0 0 0 1rem #17191e, 0 0 0 100rem rgba(238, 238, 238, 0.05) inset; }.btn.small { padding: 8rem; padding-right: 15rem; }.btn.warning { background: firebrick; }.btn.disabled { pointer-events: none; color: #aaa; }.btn.align-center { text-align: center; }#lobby { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; border: 1rem solid #17191e; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20rem; }#lobby .main { width: 600rem; max-height: 100%; }#lobby .header { background: #2d313a; padding: 20rem; font-weight: bold; box-shadow: 0 0 0 1rem #17191e inset; white-space: nowrap; text-overflow: ellipsis; }#lobby a { padding-right: 35rem; overflow: hidden; margin-top: 10rem; position: relative; white-space: nowrap; text-overflow: ellipsis; }#lobby a span { position: absolute; right: 0rem; top: 0rem; padding: 15rem; color: #aaa; }#container { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; transition: right .2s; }#container.sidepanel-open { right: 300rem; }#container #open-toggle { position: absolute; right: 0; top: 2rem; width: 60rem; background: #22252c; height: 58rem; padding: 0 10rem; line-height: 60rem; font-size: 24rem; text-align: center; color: #aaa; z-index: 2; }#container #open-toggle.sidepanel-open { color: #eee; }#sidepanel { position: absolute; z-index: 999999; width: 300rem; top: 0; right: 0; bottom: 0; margin-right: -300rem; background: #22252c; border-left: 1rem solid #17191e; transition: right .2s; overflow-y: auto; overflow-x: visible; }#sidepanel.sidepanel-open { right: 300rem; }#sidepanel #options { position: absolute; left: 0; top: 2rem; right: 0; bottom: 0; padding: 5rem; list-style: none; }#sidepanel #options li { display: block; margin-bottom: 5rem; background: #282c34; position: relative; }#sidepanel #options li:last-child { margin-bottom: 0; }#sidepanel #options li .title { padding-bottom: 15rem; }#sidepanel #options li .btn + span { position: absolute; right: 0rem; top: 0rem; padding: 8rem; color: #aaa; }#sidepanel #options li .btn + span:hover { color: #eee; }#sidepanel #options li > div { box-shadow: 0 0 0 1rem #17191e; padding: 15rem; }#sidepanel #options .editor .form { margin-top: 10rem; }#sidepanel #options .help { margin-top: 10rem; font-size: .75em; text-align: center; font-style: italic; }.actions { display: flex; align-items: stretch; flex-wrap: wrap; }.actions a { min-width: 33.33%; flex-grow: 3; padding: 10rem; display: block; text-align: center; }.actions a.on { pointer-events: none; }.actions a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2rem solid #528bff; }.widget.editing { z-index: 11 !important; }.widget.editing:after, a.editing:before, .content.editing:before, #container.editing:before { content: ""; z-index: 999; position: absolute; top: 1rem; left: 0; right: 0; bottom: 0; border: 1px dashed #528bff; pointer-events: none; }.context-menu { position: fixed; z-index: 999999999; background: #363b45; box-shadow: 0 0 4rem 0 #17191e; }.context-menu .context-menu { position: absolute; left: 100%; top: 0; opacity: 0; pointer-events: none; margin-left: 2rem; }.context-menu .context-menu:before { content: ""; position: absolute; top: 0; bottom: 0; left: -2rem; width: 2rem; }.context-menu > .item { padding: 10rem 15rem 10rem 10rem; position: relative; cursor: pointer; }.context-menu > .item i { margin-right: 5rem; width: 15rem; text-align: center; }.context-menu > .item:hover, .context-menu > .item:focus { background: #2d313a; }.context-menu > .item:hover > .context-menu, .context-menu > .item:focus > .context-menu { pointer-events: auto; opacity: 1; }.context-menu > .item.has-sub:before { content: "\f105"; display: block; font-family: FontAwesome; float: right; margin-top: 1rem; margin-right: -10rem; padding-left: 10rem; font-size: 17rem; }.ui-resizable-handle { position: absolute; z-index: 1000000; }.ui-resizable-handle:after { content: ""; position: absolute; top: -5rem; right: -5rem; left: -5rem; bottom: -5rem; }.ui-resizable-handle.ui-resizable-se { bottom: 5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; border-bottom: 1rem solid #528bff; cursor: se-resize; }.ui-resizable-handle.ui-resizable-e { top: 50%; margin-top: -7.5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; cursor: e-resize; }.ui-resizable-handle.ui-resizable-s { bottom: 5rem; left: 50%; margin-left: -7.5rem; width: 15rem; height: 15rem; border-bottom: 1rem solid #528bff; cursor: s-resize; }.ui-helper { border: 1rem dashed #528bff; background: rgba(82, 139, 255, 0.25); min-width: 30rem !important; min-height: 30rem !important; z-index: 12 !important; opacity: 1 !important; }.ui-draggable-handle { position: absolute; top: 5rem; left: 5rem; right: 5rem; z-index: 100000; cursor: -webkit-grab; height: 25rem; border-radius: 3rem; background: #528bff; opacity: .7; }.ui-draggable-handle:active { cursor: -webkit-grabbing; }a { color: inherit; }.navigation { position: absolute; top: 0; left: 0; right: 0; font-size: 14rem; background: #22252c; height: 60rem; }.navigation ::first-letter { text-transform: uppercase; }.navigation:before { content: ""; position: absolute; top: 1px; left: 0; width: 100%; height: 1px; background: #282c34; z-index: 3; }.navigation:after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: #17191e; z-index: 3; }.navigation.main { padding-right: 55rem; right: 0; }.navigation ul { list-style: none; display: flex; padding: 7rem 6rem; }.navigation ul li.on + li { border-image: none; border-left: 1rem solid transparent; }.navigation ul li { display: block; max-width: 250rem; flex: 1; border-width: 0 0 0 1rem; border-image: linear-gradient(rgba(23, 25, 30, 0), #17191e, rgba(23, 25, 30, 0)) 0 0 0 1 stretch; }.navigation ul li:first-child, .navigation ul li.on { border-image: none; border-left: 1rem solid transparent; }.navigation ul li:first-child { border-left: 0; }.navigation ul li a { display: block; padding: 5rem 10rem; line-height: 34rem; border-radius: 3rem; overflow: hidden; text-align: center; border: 1rem solid transparent; position: relative; color: #aaa; }.navigation ul li a span { display: block; width: 100%; -webkit-mask: linear-gradient(to left, transparent, #000000 10rem) no-repeat; }.navigation ul li a.on { background: #2d313a; border: 1rem solid #17191e; color: #eee; }.navigation ul li a.on:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)); }.navigation ul li a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4rem; }.content { position: absolute; left: 0; top: 60rem; right: 0; bottom: 0; background: #282c34; z-index: 1; }.content .content { top: 60rem; }#loading { position: absolute; top: 50%; left: 50%; margin-top: -15rem; text-align: center; }#loading .spinner { display: block; margin: 0 auto; height: 30rem; width: 30rem; border-radius: 50%; border: 2rem solid #17191e; border-top-color: #528bff; animation: spin .5s linear infinite; }#loading #status { margin-top: 10rem; display: inline-block; }@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }.popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 10%; display: flex; align-items: center; background: rgba(34, 37, 44, 0.5); z-index: 1000000; }.popup .popup-title { position: relative; padding: 15rem; background: #2d313a; }.popup .popup-title .closer { position: absolute; right: 0rem; top: 0; padding: 15rem; color: #aaa; cursor: pointer; }.popup .popup-wrapper { display: flex; flex-direction: column; align-items: stretch; background: #282c34; width: auto; max-width: 600rem; margin: 0 auto; position: relative; overflow: hidden; border: 1rem solid #17191e; }.popup .popup-wrapper .popup-content { height: 100%; width: 100%; padding: 10rem; overflow-y: auto; white-space: normal; }.form label { display: block; line-height: 15rem; font-size: 10rem; }.form .info { color: #aaa; margin-bottom: 10rem; }.form input, .form .input { display: block; background: #2d313a; font: inherit; color: #eee; border: 1rem solid #17191e; width: 100%; padding: 10rem; margin-bottom: 10rem; }.form input.invalid, .form .input.invalid { box-shadow: 0 0 0 1rem rgba(255, 0, 0, 0.3) !important; }.form input:focus, .form .input:focus { border-color: #528bff; }.form input .btn, .form .input .btn { background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.form .checkbox { background: #2d313a; cursor: pointer; }.form .select-wrapper { position: relative; }.form .select-wrapper:after { content: "\f107"; font-family: FontAwesome; position: absolute; padding: 10rem; right: 0; top: 0; font-size: 20rem; }.form select { -webkit-appearance: none; }.form .submit { margin-top: 30rem; }.form .separator { line-height: 30rem; height: 30rem; margin-bottom: 5rem; position: relative; display: flex; align-items: center; }.form .separator:before, .form .separator:after { content: ""; top: 14rem; width: 100%; height: 1rem; background: #aaa; }.form .separator span { font-variant: small-caps; position: relative; display: block; width: 100%; text-align: center; }.tab { display: none; overflow: auto; position: relative; padding-top: 7rem; padding-left: 6rem; }.tab.on { display: block; height: 100%; width: auto; }.widget { display: inline-block; height: auto; overflow: hidden; position: relative; font-size: 13rem; padding: 35rem 0 0; vertical-align: top; box-shadow: 0 0 0 1rem #22252c inset; background: #2d313a; background-clip: padding-box; -webkit-tap-highlight-color: transparent; border-right: 6rem solid transparent; border-bottom: 6rem solid transparent; min-height: 30rem; min-width: 30rem; }.widget:before { position: absolute; top: 1rem; left: 0; right: 0; height: 4rem; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); z-index: 3; pointer-events: none; }.widget.absolute-position { position: absolute; z-index: 10; border: 0; }.widget.nolabel { padding-top: 0; }.widget.nolabel > .label { display: none; }.widget .label { padding: 10rem 10rem; position: absolute; top: 0; left: 0; right: 0; text-overflow: ellipsis; overflow: hidden; height: 35rem; }.widget .label.accent { color: #528bff; }.widget .input { width: 100%; height: 30rem; border: 0; background: transparent; color: #aaa; display: block; padding: 7rem 10rem; position: relative; }.widget .input input { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 7rem 10rem; width: 100%; font-family: 'sans-serif'; font-size: 13rem; border: 0; background: transparent; font: inherit; color: #528bff; }.widget .input canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }.widget .input canvas.visible { opacity: .8; }.widget .input input + canvas { visibility: hidden; }.widget .input:focus { color: #528bff; }.widget .input[disabled] { color: #aaa; }/* STRIP (contains any widgets) */.strip-container { padding-top: 35rem; width: 100rem; height: 100%; overflow: visible; background: none; box-shadow: none; }.strip-container > .label { background: #2d313a; box-shadow: 0 0 0 1rem #22252c inset; }.strip-container.nolabel { padding: 0 !important; }.strip-container .strip { height: 100%; display: flex; flex-direction: column; }.strip-container .strip > .widget { display: block; width: auto; }.strip-container.vertical { padding-top: 35rem; border-bottom: 0; }.strip-container.vertical .strip > .widget { border: 0; max-width: 100%; margin-top: -1rem; }.strip-container.vertical .strip > .widget:last-child { border-bottom: 6rem solid transparent; }.strip-container.vertical.absolute-position .strip > .widget:last-child { border-bottom: 0; }.strip-container.horizontal { padding-top: 0; padding-left: 35rem; width: 100%; height: auto; display: block; border-right: 0; }.strip-container.horizontal .strip { flex-direction: row; }.strip-container.horizontal .strip > .widget { flex-shrink: initial; width: 100%; min-height: 100%; max-height: 100%; border: 0; margin-left: -1rem; }.strip-container.horizontal .strip > .widget:last-child { border-right: 6rem solid transparent; }.strip-container.horizontal.absolute-position .strip > .widget:last-child { border-right: 0; }.strip-container.horizontal > .label { width: 35rem; height: 100%; left: 0; top: 0; }.strip-container.horizontal > .label span { transform: rotate(180deg); display: block; position: relative; overflow: hidden; text-overflow: ellipsis; -webkit-writing-mode: vertical-lr; text-align: center; height: 100%; }.panel-container { z-index: 2; min-width: 200rem; min-height: 200rem; }.panel-container ::-webkit-scrollbar-thumb, .panel-container ::-webkit-scrollbar-track-piece { border-top: 1rem solid #22252c; border-bottom: 1rem solid #22252c; }.panel-container > .label { box-shadow: 0 0 0 1rem #22252c inset; }.panel-container .panel { height: 100%; overflow: auto; position: relative; padding-top: 6rem; padding-left: 6rem; margin: 0 1rem; }.panel-container .panel.stretch { display: flex; justify-content: space-between; }.panel-container .panel.stretch > .widget { width: 100%; }.panel-container .panel > .navigation:before { display: none; }.panel-container .navigation { border-top: 0; background: transparent; }.panel-container .navigation:after { background: #22252c; }.panel-container .navigation a.on { border-color: #22252c; }.panel-container .content { background: transparent; }/* BUTTONS */.toggle-container, .push-container { width: 100rem; min-height: 65rem; flex-shrink: 0; padding: 0 !important; cursor: pointer; }.toggle-container .label, .push-container .label { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: auto; background: none !important; text-align: center; pointer-events: none; display: flex; justify-content: center; align-items: center; }.toggle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }.toggle .light { position: absolute; left: 4rem; right: 4rem; top: 4rem; height: 4rem; background: #1c1f25; pointer-events: none; }.toggle.on .light { background: #528bff; }.push-container .label { z-index: 1; }.push.on .light { animation: none; background: #528bff; }.push .light { top: 6rem; left: 6rem; right: 6rem; bottom: 6rem; border-radius: 0; height: auto; opacity: .5; }.switch-container { width: 100rem; flex-shrink: 0; }.switch-container.nolabel .value:first-child { border-top: 0 !important; }.switch-container .switch { height: 100%; width: 100%; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; border: 1rem solid transparent; }.switch-container .switch.horizontal { flex-direction: row; }.switch-container .switch.horizontal .value { padding: 28rem 12rem 12rem 12rem; text-align: center; display: flex; justify-content: center; flex-direction: column; }.switch-container .switch.horizontal .value:before { left: 50%; top: 8rem; width: 8rem; height: 8rem; margin-left: -4rem; margin-top: 0; }.switch-container .switch.horizontal .value:first-child { border-top: 1rem solid #282c34; }.switch-container .switch .value { background: #2d313a; color: #eee; width: 100%; height: 100%; position: relative; border-top: 1rem solid #282c34; padding: 12rem 12rem 12rem 24rem; white-space: normal; text-align: left; word-break: break-all; overflow: hidden; }.switch-container .switch .value:last-child { margin-bottom: 0; }.switch-container .switch .value:before { content: ""; position: absolute; left: 8rem; top: 50%; width: 8rem; height: 8rem; margin-top: -4rem; background: #1c1f25; border-radius: 8rem; }.switch-container .switch .value.on:before { background: #528bff; }.ripple:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #528bff; animation: ripple 0.25s linear; animation-fill-mode: forwards; opacity: .4; }@keyframes ripple { 100% { opacity: 0; } }/* Multiple widgets (push|toggle|fader) matrix */.multitoggle-container, .multipush-container, .multifader-container { height: 200rem; width: 200rem; }.matrix { display: flex; flex-wrap: wrap; flex-direction: row; padding-top: 6rem; padding-left: 6rem; height: 100%; }.matrix > .widget { min-height: 0; }.matrix > .widget .fader-wrapper { padding: 20rem 0 !important; }.matrix > .widget .fader-wrapper .fader { left: 0 !important; }.matrix > .widget .fader-wrapper .fader .pips { display: none; }/* XY */.xy-container, .rgb-container { width: 200rem; height: 250rem; flex-shrink: 0; }.xy-container.nolabel .xy-wrapper, .rgb-container.nolabel .xy-wrapper { top: 0; }.xy-wrapper { position: absolute; top: 35rem; left: 0; right: 0; bottom: 0; overflow: hidden; padding-bottom: 60rem; }.xy-wrapper .value { width: 100%; position: absolute; bottom: 0; border-top: 1rem solid #22252c; }.xy-wrapper .input, .xy-wrapper input { width: 50%; float: left; height: 30rem; text-align: center; position: relative; }.xy { position: relative; width: auto; height: 100%; margin: 0 1rem; overflow: hidden; cursor: -webkit-grab; border-top: 1rem solid #22252c; background: rgba(34, 37, 44, 0.5); }.xy:active { cursor: -webkit-grabbing; }.xy:active .handle:after, .xy:active .handle:before { transform: scale(1.5); }.xy .handle { position: absolute; bottom: 0; left: 0; z-index: 2; pointer-events: none; backface-visibility: hidden; transform-origin: center; transform: translate3d(0, 0, 0); }.xy .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.xy .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.rgb-wrapper { padding-bottom: 90rem; }.rgb-wrapper .input, .rgb-wrapper input { width: 33.33%; }.rgb .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: red; opacity: .75; }.rgb .bg:before, .rgb .bg:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }.rgb .bg:before { background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); }.rgb .bg:after { background: linear-gradient(to bottom, transparent 0%, black 100%); }.rgb .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #eee; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(238, 238, 238, 0.2); }.rgb .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(238, 238, 238, 0.2) inset; }.hue { width: auto; height: 29rem; overflow: hidden; position: absolute; bottom: 61rem; left: 1rem; right: 1rem; cursor: -webkit-grab; }.hue .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.5; background: transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; }.hue:active { cursor: -webkit-grabbing; }.hue:active .handle:after { transform: scale(1.5); }.hue .handle { position: absolute; z-index: 2; left: 0; top: 50%; pointer-events: none; transform: translate3d(0, 0, 0); }.hue .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; border: none !important; border-radius: 100% !important; box-shadow: none; background: #eee; }.fader-container { width: 100rem; min-height: 200rem; height: 100%; }.fader-container.nolabel .fader-wrapper-outer { top: 0; }.fader-container .fader-wrapper-outer { padding-bottom: 30rem; position: absolute; top: 30rem; bottom: 0; left: 0; right: 0; }.fader-container .fader-wrapper-outer .input { position: absolute; bottom: 0; }.fader-container .fader-wrapper { padding: 20rem; overflow: hidden; height: 100%; position: relative; cursor: -webkit-grab; }.fader-container .fader-wrapper:active { cursor: -webkit-grabbing; }.fader-container .fader-wrapper .fader { height: 100%; width: 4rem; background: #1c1f25; position: relative; margin: 0 auto; left: -25rem; pointer-events: none; }.fader-container .fader-wrapper .fader.nogauge .handle { background: none; }.fader-container .fader-wrapper .fader .handle { position: absolute; bottom: 0 !important; top: auto !important; width: 100%; height: 100%; transform-origin: bottom; max-height: 100%; max-width: 100%; background: #528bff; z-index: 1; transform-style: preserve-3d; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span { position: absolute; bottom: 0; top: 0; width: 100%; height: 100%; transform-origin: top; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span:before { content: ""; position: absolute; top: -4rem; left: -2rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.fader-container .fader-wrapper .fader .handle span:after { content: ""; position: absolute; top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.fader-container .fader-wrapper .pips { position: absolute; top: 0; bottom: 0; left: 14rem; }.fader-container .fader-wrapper .pips .pip { height: 1%; width: 4rem; background: linear-gradient(#eee, transparent 1px); }.fader-container .fader-wrapper .pips .pip.val { width: 10rem; position: relative; }.fader-container .fader-wrapper .pips .pip.val span { position: relative; width: 30rem; display: block; text-align: center; font-size: 11rem; line-height: 12rem; left: 15rem; top: -5.5rem; color: #eee; }.fader-container.horizontal { min-height: 80rem; height: auto; width: 300rem; flex-shrink: 0; }.fader-container.horizontal .fader-wrapper-outer { position: relative; top: auto; padding-bottom: 30rem; height: 100%; }.fader-container.horizontal .fader-wrapper-outer .fader-wrapper { padding: 20rem 20rem 50rem; }.fader-container.horizontal .fader-wrapper-outer .fader { width: 100%; left: auto; top: 50%; height: 4rem; }.fader-container.horizontal .fader-wrapper-outer .fader .handle { height: 100%important; width: 100%; transform-origin: left; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span { transform-origin: right; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:before { top: -2rem; right: -4rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:after { top: -8rem; right: -10rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .pips { top: 14rem; left: 0; right: 0; font-size: 0; }.fader-container.horizontal .fader-wrapper-outer .pip { width: 1%; display: inline-block; height: 4rem; margin-bottom: 5rem; background: linear-gradient(90deg, #eee, transparent 1px); }.fader-container.horizontal .fader-wrapper-outer .pip.val { width: 1%; height: 10rem; }.fader-container.horizontal .fader-wrapper-outer .pip.val span { top: 15rem; left: -15rem; }.knob-container { width: 100rem; display: inline-flex !important; align-items: center; min-height: 135rem; flex-shrink: 0; }.knob-container.nolabel .knob-wrapper-outer { top: 0; padding-bottom: 30rem; }.knob-container .knob-wrapper-outer { width: 100%; top: 30rem; bottom: 0; padding-bottom: 50rem; height: 100%; display: flex; align-items: center; }.knob-container .knob-wrapper-outer .input { bottom: 0; position: absolute; left: 0; }.knob-container .knob-wrapper-outer .knob-wrapper { margin: 0 auto; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; cursor: -webkit-grab; }.knob-container .knob-wrapper-outer .knob-wrapper:active { cursor: -webkit-grabbing; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask { width: 58%; padding-bottom: 58%; flex-shrink: 0; border-radius: 100%; pointer-events: none; position: relative; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; box-shadow: 0 0 0 1rem #2c3038, 0 0 0 1rem #2c3038 inset, 0 0 1rem 1rem #2c3038, 0 0 1rem 1rem #2c3038 inset; transform: rotate(45deg); z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left:before { content: ""; border-left-color: transparent; border-bottom-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left .knob:after { border-color: #1c1f25; border-left-color: #528bff; border-top-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right:before { content: ""; border-right-color: transparent; border-top-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right .knob:after { border-color: #1c1f25; border-right-color: #528bff; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:after { content: ""; position: absolute; top: 0rem; left: -3rem; right: -3rem; bottom: -2rem; border-radius: 100%; border: 12rem solid transparent; border-bottom-color: #2d313a; z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .round { content: ""; position: absolute; top: 18rem; left: 18rem; right: 18rem; bottom: 18rem; border-radius: 100%; background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.knob-container .knob-wrapper-outer .knob-wrapper .knob { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(0deg); backface-visibility: hidden; z-index: 2; }.knob-container .knob-wrapper-outer .knob-wrapper .knob:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d2:after { border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d3:after { border-top-color: #528bff; border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .handle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(-45deg); backface-visibility: hidden; z-index: 5; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:before { content: ""; position: absolute; top: 50%; left: -2rem; margin-top: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:after { content: ""; position: absolute; top: 50%; margin-top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.knob-container .knob-wrapper-outer .knob-wrapper .pip { position: absolute; font-size: 11rem; color: #eee; pointer-events: none; top: 50%; margin-top: 30%; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.min { left: 0; right: 50%; width: 50%; text-align: center; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.max { left: 50%; width: 50%; right: 0; text-align: center; }.led-container { width: 100rem; flex-shrink: 0; }.led-container .led { padding: 10rem; display: flex; align-items: center; height: 100%; }.led-container .led div { border-radius: 100%; width: 40rem; height: 40rem; margin: 0 auto; overflow: hidden; background: #17191e; }.led-container .led div span { height: 100%; display: block; background-color: #528bff; }.plot-container { min-height: 200rem; min-width: 200rem; }.plot-container .plot { position: absolute; top: 35rem; left: 0; right: 0; bottom: 0; border: 1rem solid #22252c; background: rgba(34, 37, 44, 0.5); }.plot-container.nolabel .plot { top: 0; }.plot-container canvas { width: 100%; height: 100%; transition: opacity .2s; }.plot-container canvas.visible { opacity: 1; } \ No newline at end of file +:root { --color-accent: #528bff; --color-text: #eee; --color-text-fade: #aaa; }* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; outline: 0; font: inherit; cursor: inherit; -webkit-tap-highlight-color: transparent; }a { cursor: pointer; display: block; }::-webkit-scrollbar { width: 20rem; height: 20rem; opacity: 1; }::-webkit-scrollbar-track-piece { background: #22252c; }::-webkit-scrollbar-track-piece:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-track-piece:horizontal { border-top: 1rem solid #17191e; }::-webkit-scrollbar-corner { background: transparent; }::-webkit-scrollbar-thumb { background: #2d313a; }::-webkit-scrollbar-thumb:vertical { border-left: 1rem solid #17191e; }::-webkit-scrollbar-thumb:horizontal { border-top: 1rem solid #17191e; }* { -webkit-user-select: none; }input:focus::selection { background: #528bff; color: #eee; }input { cursor: text; }html, body { height: 100%; overflow: hidden; position: relative; }html { font-size: 1px; }body { font-size: 14rem; line-height: 16rem; font-family: sans-serif; color: #eee; white-space: nowrap; opacity: 1; cursor: default; }.btn { background: #2d313a; display: block; box-shadow: 0 0 0 1rem #17191e; padding: 15rem; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; cursor: pointer; }.btn:hover { box-shadow: 0 0 0 1rem #17191e, 0 0 0 100rem rgba(238, 238, 238, 0.05) inset; }.btn.small { padding: 8rem; padding-right: 15rem; }.btn.warning { background: firebrick; }.btn.disabled { pointer-events: none; color: #aaa; }.btn.align-center { text-align: center; }#lobby { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; border: 1rem solid #17191e; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20rem; }#lobby .main { width: 600rem; max-height: 100%; }#lobby .header { background: #2d313a; padding: 20rem; font-weight: bold; box-shadow: 0 0 0 1rem #17191e inset; white-space: nowrap; text-overflow: ellipsis; }#lobby a { padding-right: 35rem; overflow: hidden; margin-top: 10rem; position: relative; white-space: nowrap; text-overflow: ellipsis; }#lobby a span { position: absolute; right: 0rem; top: 0rem; padding: 15rem; color: #aaa; }#container { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; transition: right .2s; }#container.sidepanel-open { right: 300rem; }#container #open-toggle { position: absolute; right: 0; top: 2rem; width: 60rem; background: #22252c; height: 58rem; padding: 0 10rem; line-height: 60rem; font-size: 24rem; text-align: center; color: #aaa; z-index: 2; }#container #open-toggle.sidepanel-open { color: #eee; }#sidepanel { position: absolute; z-index: 999999; width: 300rem; top: 0; right: 0; bottom: 0; margin-right: -300rem; background: #22252c; border-left: 1rem solid #17191e; transition: right .2s; overflow-y: auto; overflow-x: visible; }#sidepanel.sidepanel-open { right: 300rem; }#sidepanel #options { position: absolute; left: 0; top: 2rem; right: 0; bottom: 0; padding: 5rem; list-style: none; }#sidepanel #options li { display: block; margin-bottom: 5rem; background: #282c34; position: relative; }#sidepanel #options li:last-child { margin-bottom: 0; }#sidepanel #options li .title { padding-bottom: 15rem; }#sidepanel #options li .btn + span { position: absolute; right: 0rem; top: 0rem; padding: 8rem; color: #aaa; }#sidepanel #options li .btn + span:hover { color: #eee; }#sidepanel #options li > div { box-shadow: 0 0 0 1rem #17191e; padding: 15rem; }#sidepanel #options .editor .form { margin-top: 10rem; }#sidepanel #options .help { margin-top: 10rem; font-size: .75em; text-align: center; font-style: italic; }.actions { display: flex; align-items: stretch; flex-wrap: wrap; }.actions a { min-width: 33.33%; flex-grow: 3; padding: 10rem; display: block; text-align: center; }.actions a.on { pointer-events: none; }.actions a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2rem solid #528bff; }.widget.editing { z-index: 11 !important; }.widget.editing:after, a.editing:before, .content.editing:before, #container.editing:before { content: ""; z-index: 999; position: absolute; top: 1rem; left: 0; right: 0; bottom: 0; border: 1px dashed #528bff; pointer-events: none; }.context-menu { position: fixed; z-index: 999999999; background: #363b45; box-shadow: 0 0 4rem 0 #17191e; }.context-menu .context-menu { position: absolute; left: 100%; top: 0; opacity: 0; pointer-events: none; margin-left: 2rem; }.context-menu .context-menu:before { content: ""; position: absolute; top: 0; bottom: 0; left: -2rem; width: 2rem; }.context-menu > .item { padding: 10rem 15rem 10rem 10rem; position: relative; cursor: pointer; }.context-menu > .item i { margin-right: 5rem; width: 15rem; text-align: center; }.context-menu > .item:hover, .context-menu > .item:focus { background: #2d313a; }.context-menu > .item:hover > .context-menu, .context-menu > .item:focus > .context-menu { pointer-events: auto; opacity: 1; }.context-menu > .item.has-sub:before { content: "\f105"; display: block; font-family: FontAwesome; float: right; margin-top: 1rem; margin-right: -10rem; padding-left: 10rem; font-size: 17rem; }.ui-resizable-handle { position: absolute; z-index: 1000000; }.ui-resizable-handle:after { content: ""; position: absolute; top: -5rem; right: -5rem; left: -5rem; bottom: -5rem; }.ui-resizable-handle.ui-resizable-se { bottom: 5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; border-bottom: 1rem solid #528bff; cursor: se-resize; }.ui-resizable-handle.ui-resizable-e { top: 50%; margin-top: -7.5rem; right: 5rem; width: 15rem; height: 15rem; border-right: 1rem solid #528bff; cursor: e-resize; }.ui-resizable-handle.ui-resizable-s { bottom: 5rem; left: 50%; margin-left: -7.5rem; width: 15rem; height: 15rem; border-bottom: 1rem solid #528bff; cursor: s-resize; }.ui-helper { border: 1rem dashed #528bff; background: rgba(82, 139, 255, 0.25); min-width: 30rem !important; min-height: 30rem !important; z-index: 12 !important; opacity: 1 !important; }.ui-draggable-handle { position: absolute; top: 5rem; left: 5rem; right: 5rem; z-index: 100000; cursor: -webkit-grab; height: 25rem; border-radius: 3rem; background: #528bff; opacity: .7; }.ui-draggable-handle:active { cursor: -webkit-grabbing; }a { color: inherit; }.navigation { position: absolute; top: 0; left: 0; right: 0; font-size: 14rem; background: #22252c; height: 60rem; }.navigation ::first-letter { text-transform: uppercase; }.navigation:before { content: ""; position: absolute; top: 1px; left: 0; width: 100%; height: 1px; background: #282c34; z-index: 3; }.navigation:after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: #17191e; z-index: 3; }.navigation.main { padding-right: 55rem; right: 0; }.navigation ul { list-style: none; display: flex; padding: 7rem 6rem; }.navigation ul li.on + li { border-image: none; border-left: 1rem solid transparent; }.navigation ul li { display: block; max-width: 250rem; flex: 1; border-width: 0 0 0 1rem; border-image: linear-gradient(rgba(23, 25, 30, 0), #17191e, rgba(23, 25, 30, 0)) 0 0 0 1 stretch; }.navigation ul li:first-child, .navigation ul li.on { border-image: none; border-left: 1rem solid transparent; }.navigation ul li:first-child { border-left: 0; }.navigation ul li a { display: block; padding: 5rem 10rem; line-height: 34rem; border-radius: 3rem; overflow: hidden; text-align: center; border: 1rem solid transparent; position: relative; color: #aaa; }.navigation ul li a span { display: block; width: 100%; -webkit-mask: linear-gradient(to left, transparent, #000000 10rem) no-repeat; }.navigation ul li a.on { background: #2d313a; border: 1rem solid #17191e; color: #eee; }.navigation ul li a.on:before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); background: linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)); }.navigation ul li a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4rem; }.content { position: absolute; left: 0; top: 60rem; right: 0; bottom: 0; background: #282c34; z-index: 1; }.content .content { top: 60rem; }#loading { position: absolute; top: 50%; left: 50%; margin-top: -15rem; text-align: center; }#loading .spinner { display: block; margin: 0 auto; height: 30rem; width: 30rem; border-radius: 50%; border: 2rem solid #17191e; border-top-color: #528bff; animation: spin .5s linear infinite; }#loading #status { margin-top: 10rem; display: inline-block; }@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }.popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; padding: 10%; display: flex; align-items: center; background: rgba(34, 37, 44, 0.5); z-index: 1000000; }.popup .popup-title { position: relative; padding: 15rem; background: #2d313a; }.popup .popup-title .closer { position: absolute; right: 0rem; top: 0; padding: 15rem; color: #aaa; cursor: pointer; }.popup .popup-wrapper { display: flex; flex-direction: column; align-items: stretch; background: #282c34; width: auto; max-width: 600rem; margin: 0 auto; position: relative; overflow: hidden; border: 1rem solid #17191e; }.popup .popup-wrapper .popup-content { height: 100%; width: 100%; padding: 10rem; overflow-y: auto; white-space: normal; }.form label { display: block; line-height: 15rem; font-size: 10rem; }.form .info { color: #aaa; margin-bottom: 10rem; }.form input, .form .input { display: block; background: #2d313a; font: inherit; color: #eee; border: 1rem solid #17191e; width: 100%; padding: 10rem; margin-bottom: 10rem; }.form input.invalid, .form .input.invalid { box-shadow: 0 0 0 1rem rgba(255, 0, 0, 0.3) !important; }.form input:focus, .form .input:focus { border-color: #528bff; }.form input .btn, .form .input .btn { background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.form .checkbox { background: #2d313a; cursor: pointer; }.form .select-wrapper { position: relative; }.form .select-wrapper:after { content: "\f107"; font-family: FontAwesome; position: absolute; padding: 10rem; right: 0; top: 0; font-size: 20rem; }.form select { -webkit-appearance: none; }.form .submit { margin-top: 30rem; }.form .separator { line-height: 30rem; height: 30rem; margin-bottom: 5rem; position: relative; display: flex; align-items: center; }.form .separator:before, .form .separator:after { content: ""; top: 14rem; width: 100%; height: 1rem; background: #aaa; }.form .separator span { font-variant: small-caps; position: relative; display: block; width: 100%; text-align: center; }.tab { display: none; overflow: auto; position: relative; padding-top: 7rem; padding-left: 6rem; }.tab.on { display: block; height: 100%; width: auto; }.widget { display: inline-block; height: auto; overflow: hidden; position: relative; font-size: 13rem; padding: 35rem 0 0; vertical-align: top; box-shadow: 0 0 0 1rem #22252c inset; background: #2d313a; background-clip: padding-box; -webkit-tap-highlight-color: transparent; border-right: 6rem solid transparent; border-bottom: 6rem solid transparent; min-height: 30rem; min-width: 30rem; }.widget:before { position: absolute; top: 1rem; left: 0; right: 0; height: 4rem; box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); z-index: 3; pointer-events: none; }.widget.absolute-position { position: absolute; z-index: 10; border: 0; }.widget.nolabel { padding-top: 0; }.widget.nolabel > .label { display: none; }.widget .label { padding: 10rem 10rem; position: absolute; top: 0; left: 0; right: 0; text-overflow: ellipsis; overflow: hidden; height: 35rem; }.widget .label.accent { color: #528bff; }.widget .input { width: 100%; height: 30rem; border: 0; background: transparent; color: #aaa; display: block; padding: 7rem 10rem; position: relative; }.widget .input input { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 7rem 10rem; width: 100%; font-family: 'sans-serif'; font-size: 13rem; border: 0; background: transparent; font: inherit; color: #528bff; }.widget .input canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }.widget .input canvas.visible { opacity: .8; }.widget .input input + canvas { visibility: hidden; }.widget .input:focus { color: #528bff; }.widget .input[disabled] { color: #aaa; }/* STRIP (contains any widgets) */.strip-container { padding-top: 35rem; width: 100rem; height: 100%; overflow: visible; background: none; box-shadow: none; }.strip-container > .label { background: #2d313a; box-shadow: 0 0 0 1rem #22252c inset; }.strip-container.nolabel { padding: 0 !important; }.strip-container .strip { height: 100%; display: flex; flex-direction: column; }.strip-container .strip > .widget { display: block; width: auto; }.strip-container.vertical { padding-top: 35rem; border-bottom: 0; }.strip-container.vertical .strip > .widget { border: 0; max-width: 100%; margin-top: -1rem; }.strip-container.vertical .strip > .widget:last-child { border-bottom: 6rem solid transparent; }.strip-container.vertical.absolute-position .strip > .widget:last-child { border-bottom: 0; }.strip-container.horizontal { padding-top: 0; padding-left: 35rem; width: 100%; height: auto; display: block; border-right: 0; }.strip-container.horizontal .strip { flex-direction: row; }.strip-container.horizontal .strip > .widget { flex-shrink: initial; width: 100%; min-height: 100%; max-height: 100%; border: 0; margin-left: -1rem; }.strip-container.horizontal .strip > .widget:last-child { border-right: 6rem solid transparent; }.strip-container.horizontal.absolute-position .strip > .widget:last-child { border-right: 0; }.strip-container.horizontal > .label { width: 35rem; height: 100%; left: 0; top: 0; }.strip-container.horizontal > .label span { transform: rotate(180deg); display: block; position: relative; overflow: hidden; text-overflow: ellipsis; -webkit-writing-mode: vertical-lr; text-align: center; height: 100%; }.panel-container { z-index: 2; min-width: 200rem; min-height: 200rem; }.panel-container ::-webkit-scrollbar-thumb, .panel-container ::-webkit-scrollbar-track-piece { border-top: 1rem solid #22252c; border-bottom: 1rem solid #22252c; }.panel-container > .label { box-shadow: 0 0 0 1rem #22252c inset; }.panel-container .panel { height: 100%; overflow: auto; position: relative; padding-top: 6rem; padding-left: 6rem; margin: 0 1rem; }.panel-container .panel.stretch { display: flex; justify-content: space-between; }.panel-container .panel.stretch > .widget { width: 100%; }.panel-container .panel > .navigation:before { display: none; }.panel-container .navigation { border-top: 0; background: transparent; }.panel-container .navigation:after { background: #22252c; }.panel-container .navigation a.on { border-color: #22252c; }.panel-container .content { background: transparent; }/* BUTTONS */.toggle-container, .push-container { width: 100rem; min-height: 65rem; flex-shrink: 0; padding: 0 !important; cursor: pointer; }.toggle-container .label, .push-container .label { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: auto; background: none !important; text-align: center; pointer-events: none; display: flex; justify-content: center; align-items: center; }.toggle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }.toggle .light { position: absolute; left: 4rem; right: 4rem; top: 4rem; height: 4rem; background: #1c1f25; pointer-events: none; }.toggle.on .light { background: #528bff; }.push-container .label { z-index: 1; }.push.on .light { animation: none; background: #528bff; }.push .light { top: 6rem; left: 6rem; right: 6rem; bottom: 6rem; border-radius: 0; height: auto; opacity: .5; }.switch-container { width: 100rem; flex-shrink: 0; }.switch-container.nolabel .value:first-child { border-top: 0 !important; }.switch-container .switch { height: 100%; width: 100%; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; border: 1rem solid transparent; }.switch-container .switch.horizontal { flex-direction: row; }.switch-container .switch.horizontal .value { padding: 28rem 12rem 12rem 12rem; text-align: center; display: flex; justify-content: center; flex-direction: column; }.switch-container .switch.horizontal .value:before { left: 50%; top: 8rem; width: 8rem; height: 8rem; margin-left: -4rem; margin-top: 0; }.switch-container .switch.horizontal .value:first-child { border-top: 1rem solid #282c34; }.switch-container .switch .value { background: #2d313a; color: #eee; width: 100%; height: 100%; position: relative; border-top: 1rem solid #282c34; padding: 12rem 12rem 12rem 24rem; white-space: normal; text-align: left; word-break: break-all; overflow: hidden; }.switch-container .switch .value:last-child { margin-bottom: 0; }.switch-container .switch .value:before { content: ""; position: absolute; left: 8rem; top: 50%; width: 8rem; height: 8rem; margin-top: -4rem; background: #1c1f25; border-radius: 8rem; }.switch-container .switch .value.on:before { background: #528bff; }.ripple:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #528bff; animation: ripple 0.25s linear; animation-fill-mode: forwards; opacity: .4; }@keyframes ripple { 100% { opacity: 0; } }/* Multiple widgets (push|toggle|fader) matrix */.multitoggle-container, .multipush-container, .multifader-container { height: 200rem; width: 200rem; }.matrix { display: flex; flex-wrap: wrap; flex-direction: row; padding-top: 6rem; padding-left: 6rem; height: 100%; }.matrix > .widget { min-height: 0; }.matrix > .widget .fader-wrapper { padding: 20rem 0 !important; }.matrix > .widget .fader-wrapper .fader { left: 0 !important; }.matrix > .widget .fader-wrapper .fader .pips { display: none; }/* XY */.xy-container, .rgb-container { width: 200rem; height: 250rem; flex-shrink: 0; }.xy-container.nolabel .xy-wrapper, .rgb-container.nolabel .xy-wrapper { top: 0; }.xy-wrapper { position: absolute; top: 35rem; left: 0; right: 0; bottom: 0; overflow: hidden; padding-bottom: 60rem; }.xy-wrapper .value { width: 100%; position: absolute; bottom: 0; border-top: 1rem solid #22252c; }.xy-wrapper .input, .xy-wrapper input { width: 50%; float: left; height: 30rem; text-align: center; position: relative; }.xy { position: relative; width: auto; height: 100%; margin: 0 1rem; overflow: hidden; cursor: -webkit-grab; border-top: 1rem solid #22252c; background: rgba(34, 37, 44, 0.5); }.xy:active { cursor: -webkit-grabbing; }.xy:active .handle:after, .xy:active .handle:before { transform: scale(1.5); }.xy .handle { position: absolute; bottom: 0; left: 0; z-index: 2; pointer-events: none; backface-visibility: hidden; transform-origin: center; transform: translate3d(0, 0, 0); }.xy .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.xy .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.rgb-wrapper { padding-bottom: 90rem; }.rgb-wrapper .input, .rgb-wrapper input { width: 33.33%; }.rgb .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: red; opacity: .75; }.rgb .bg:before, .rgb .bg:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }.rgb .bg:before { background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); }.rgb .bg:after { background: linear-gradient(to bottom, transparent 0%, black 100%); }.rgb .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; background: #eee; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(238, 238, 238, 0.2); }.rgb .handle:after { content: ""; position: absolute; top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(238, 238, 238, 0.2) inset; }.hue { width: auto; height: 29rem; overflow: hidden; position: absolute; bottom: 61rem; left: 1rem; right: 1rem; cursor: -webkit-grab; }.hue .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.5; background: transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; }.hue:active { cursor: -webkit-grabbing; }.hue:active .handle:after { transform: scale(1.5); }.hue .handle { position: absolute; z-index: 2; left: 0; top: 50%; pointer-events: none; transform: translate3d(0, 0, 0); }.hue .handle:before { content: ""; position: absolute; top: -4rem; right: -4rem; height: 8rem; width: 8rem; border: none !important; border-radius: 100% !important; box-shadow: none; background: #eee; }.fader-container { width: 100rem; min-height: 200rem; height: 100%; }.fader-container.nolabel .fader-wrapper-outer { top: 0; }.fader-container .fader-wrapper-outer { padding-bottom: 30rem; position: absolute; top: 30rem; bottom: 0; left: 0; right: 0; }.fader-container .fader-wrapper-outer .input { position: absolute; bottom: 0; }.fader-container .fader-wrapper { padding: 20rem; overflow: hidden; height: 100%; position: relative; cursor: -webkit-grab; }.fader-container .fader-wrapper:active { cursor: -webkit-grabbing; }.fader-container .fader-wrapper .fader { height: 100%; width: 4rem; background: #1c1f25; position: relative; margin: 0 auto; left: -25rem; pointer-events: none; }.fader-container .fader-wrapper .fader.nogauge .handle { background: none; }.fader-container .fader-wrapper .fader .handle { position: absolute; bottom: 0 !important; top: auto !important; width: 100%; height: 100%; transform-origin: bottom; max-height: 100%; max-width: 100%; background: #528bff; z-index: 1; transform-style: preserve-3d; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span { position: absolute; bottom: 0; top: 0; width: 100%; height: 100%; transform-origin: top; backface-visibility: hidden; }.fader-container .fader-wrapper .fader .handle span:before { content: ""; position: absolute; top: -4rem; left: -2rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.fader-container .fader-wrapper .fader .handle span:after { content: ""; position: absolute; top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.fader-container .fader-wrapper .pips { position: absolute; top: 0; bottom: 0; left: 14rem; }.fader-container .fader-wrapper .pips .pip { height: 1%; width: 4rem; background: linear-gradient(#eee, transparent 1px); }.fader-container .fader-wrapper .pips .pip.val { width: 10rem; position: relative; }.fader-container .fader-wrapper .pips .pip.val span { position: relative; width: 30rem; display: block; text-align: center; font-size: 11rem; line-height: 12rem; left: 15rem; top: -5.5rem; color: #eee; }.fader-container.horizontal { min-height: 80rem; height: auto; width: 300rem; flex-shrink: 0; }.fader-container.horizontal .fader-wrapper-outer { position: relative; top: auto; padding-bottom: 30rem; height: 100%; }.fader-container.horizontal .fader-wrapper-outer .fader-wrapper { padding: 20rem 20rem 50rem; }.fader-container.horizontal .fader-wrapper-outer .fader { width: 100%; left: auto; top: 50%; height: 4rem; }.fader-container.horizontal .fader-wrapper-outer .fader .handle { height: 100%important; width: 100%; transform-origin: left; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span { transform-origin: right; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:before { top: -2rem; right: -4rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .fader .handle span:after { top: -8rem; right: -10rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .pips { top: 14rem; left: 0; right: 0; font-size: 0; }.fader-container.horizontal .fader-wrapper-outer .pip { width: 1%; display: inline-block; height: 4rem; margin-bottom: 5rem; background: linear-gradient(90deg, #eee, transparent 1px); }.fader-container.horizontal .fader-wrapper-outer .pip.val { width: 1%; height: 10rem; }.fader-container.horizontal .fader-wrapper-outer .pip.val span { top: 15rem; left: -15rem; }.knob-container { width: 100rem; display: inline-flex !important; align-items: center; min-height: 135rem; flex-shrink: 0; }.knob-container.nolabel .knob-wrapper-outer { top: 0; padding-bottom: 30rem; }.knob-container .knob-wrapper-outer { width: 100%; top: 30rem; bottom: 0; padding-bottom: 50rem; height: 100%; display: flex; align-items: center; }.knob-container .knob-wrapper-outer .input { bottom: 0; position: absolute; left: 0; }.knob-container .knob-wrapper-outer .knob-wrapper { margin: 0 auto; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; cursor: -webkit-grab; }.knob-container .knob-wrapper-outer .knob-wrapper:active { cursor: -webkit-grabbing; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask { width: 58%; padding-bottom: 58%; flex-shrink: 0; border-radius: 100%; pointer-events: none; position: relative; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:before { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; box-shadow: 0 0 0 1rem #2c3038, 0 0 0 1rem #2c3038 inset, 0 0 1rem 1rem #2c3038, 0 0 1rem 1rem #2c3038 inset; transform: rotate(45deg); z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left:before { content: ""; border-left-color: transparent; border-bottom-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-left .knob:after { border-color: #1c1f25; border-left-color: #528bff; border-top-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right:before { content: ""; border-right-color: transparent; border-top-color: transparent; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask.pan-right .knob:after { border-color: #1c1f25; border-right-color: #528bff; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob-mask:after { content: ""; position: absolute; top: 0rem; left: -3rem; right: -3rem; bottom: -2rem; border-radius: 100%; border: 12rem solid transparent; border-bottom-color: #2d313a; z-index: 4; }.knob-container .knob-wrapper-outer .knob-wrapper .round { content: ""; position: absolute; top: 18rem; left: 18rem; right: 18rem; bottom: 18rem; border-radius: 100%; background: #363b45; box-shadow: 0 0 0 1rem #22252c; }.knob-container .knob-wrapper-outer .knob-wrapper .knob { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(0deg); backface-visibility: hidden; z-index: 2; }.knob-container .knob-wrapper-outer .knob-wrapper .knob:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 100%; border: 4rem solid #1c1f25; border-bottom-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d2:after { border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .knob.d3:after { border-top-color: #528bff; border-right-color: #528bff; }.knob-container .knob-wrapper-outer .knob-wrapper .handle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; transform: rotateZ(-45deg); backface-visibility: hidden; z-index: 5; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:before { content: ""; position: absolute; top: 50%; left: -2rem; margin-top: -4rem; height: 8rem; width: 8rem; background: #528bff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(82, 139, 255, 0.2), 0 0 2rem 0 #2c3038; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:after { content: ""; position: absolute; top: 50%; margin-top: -10rem; left: -8rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 1rem rgba(82, 139, 255, 0.2) inset; }.knob-container .knob-wrapper-outer .knob-wrapper .pip { position: absolute; font-size: 11rem; color: #eee; pointer-events: none; top: 50%; margin-top: 30%; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.min { left: 0; right: 50%; width: 50%; text-align: center; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.max { left: 50%; width: 50%; right: 0; text-align: center; }.led-container { width: 100rem; flex-shrink: 0; }.led-container .led { padding: 10rem; display: flex; align-items: center; height: 100%; }.led-container .led div { border-radius: 100%; width: 40rem; height: 40rem; margin: 0 auto; overflow: hidden; background: #17191e; }.led-container .led div span { height: 100%; display: block; background-color: #528bff; }.plot-container, .visualizer-container { min-height: 200rem; min-width: 200rem; }.plot-container .plot, .visualizer-container .plot { position: absolute; top: 35rem; left: 0; right: 0; bottom: 0; border: 1rem solid #22252c; background: rgba(34, 37, 44, 0.5); }.plot-container.nolabel .plot, .visualizer-container.nolabel .plot { top: 0; }.plot-container canvas, .visualizer-container canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }.plot-container canvas.visible, .visualizer-container canvas.visible { opacity: 1; } \ No newline at end of file diff --git a/browser/js/app/actions.js b/browser/js/app/actions.js index 46e3e366..c517c315 100644 --- a/browser/js/app/actions.js +++ b/browser/js/app/actions.js @@ -29,8 +29,13 @@ module.exports = { stateGet: function (){ var data = [] $.each(WIDGETS,function(i,widget) { - var v = widget[widget.length-1].getValue() - if (v!=undefined) data.push(i+' '+v) + for (var j=widget.length-1;j>=0;j--) { + if (widget[j].getValue) { + var v = widget[j].getValue() + if (v!=undefined) data.push(i+' '+v) + break + } + } }) return data.join('\n') }, @@ -66,7 +71,12 @@ module.exports = { setTimeout(function(){ if (WIDGETS[data[0]]!=undefined) { - WIDGETS[data[0]][WIDGETS[data[0]].length-1].setValue(data[1].split(','),send,true) + for (var i=WIDGETS[data[0]].length-1;i>=0;i--) { + if (WIDGETS[data[0]][i].setValue) { + WIDGETS[data[0]][i].setValue(data[1].split(','),send,true) + break + } + } } },i) }) diff --git a/browser/js/app/editor/data-workers.js b/browser/js/app/editor/data-workers.js index 26cdec0b..121f34b0 100644 --- a/browser/js/app/editor/data-workers.js +++ b/browser/js/app/editor/data-workers.js @@ -76,6 +76,13 @@ var updateDom = function(container,data) { // restore state + for (i in WIDGETS) { + for (j in WIDGETS[i]) { + if (!document.contains(WIDGETS[i][j][0])) { + WIDGETS[i].splice(j,1) + } + } + } actions.stateSet(state,false) sync() @@ -83,6 +90,7 @@ var updateDom = function(container,data) { ui.scrolls() $('#sidepanel').scrollTop(scroll) + // return updated node return newContainer diff --git a/browser/js/app/widgets.js b/browser/js/app/widgets.js index 95ef890e..f8d641ef 100644 --- a/browser/js/app/widgets.js +++ b/browser/js/app/widgets.js @@ -2,6 +2,7 @@ var strip = require('./widgets/strip'), panel = require('./widgets/panel'), led = require('./widgets/led'), plot = require('./widgets/plot'), + visualizer = require('./widgets/visualizer'), fader = require('./widgets/fader'), knob = require('./widgets/knob'), xy = require('./widgets/xy'), @@ -18,6 +19,7 @@ module.exports.widgetOptions = { panel: panel.options, led: led.options, plot: plot.options, + visualizer: visualizer.options, fader: fader.options, knob: knob.options, xy: xy.options, @@ -35,6 +37,7 @@ module.exports.createWidget = { panel: panel.create, led: led.create, plot: plot.create, + visualizer: visualizer.create, fader: fader.create, knob: knob.create, xy: xy.create, @@ -52,7 +55,7 @@ module.exports.categories = { 'Buttons':['toggle','push','switch'], 'Pads':['xy','rgb'], 'Matrix':['multifader','multitoggle','multipush'], - 'Plots':['plot','led'], + 'Plots':['plot','visualizer','led'], 'Containers':['panel','strip'] } diff --git a/browser/js/app/widgets/led.js b/browser/js/app/widgets/led.js index dcc17799..6c3d6fda 100644 --- a/browser/js/app/widgets/led.js +++ b/browser/js/app/widgets/led.js @@ -32,8 +32,9 @@ module.exports.create = function(widgetData,container) { if (widgetData.color!='auto') led.css('background-color',widgetData.color) - widget.setValue = function(v){ - led.css('opacity',mapToScale(v,[range.min,range.max],[0,1],widgetData.precision,widgetData.logScale)) + widget.setValue = function(v,send,sync){ + led.css('opacity',mapToScale(v,[range.min,range.max],[0,1],widgetData.precision,widgetData.logScale,true)) + if (sync) widget.trigger('sync',[widgetData.id,widget]) } widget.getValue = function(){return} return widget diff --git a/browser/js/app/widgets/multifader.js b/browser/js/app/widgets/multifader.js index 39a5c3fa..9c4af587 100644 --- a/browser/js/app/widgets/multifader.js +++ b/browser/js/app/widgets/multifader.js @@ -59,9 +59,5 @@ module.exports.create = function(widgetData,container) { widget.delegateDrag() - - widget.getValue = function() {} - widget.setValue = function() {} - return widget } diff --git a/browser/js/app/widgets/multipush.js b/browser/js/app/widgets/multipush.js index 888863b1..4808ff97 100644 --- a/browser/js/app/widgets/multipush.js +++ b/browser/js/app/widgets/multipush.js @@ -52,9 +52,5 @@ module.exports.create = function(widgetData,container) { widget.delegateDrag() - - widget.getValue = function() {} - widget.setValue = function() {} - return widget } diff --git a/browser/js/app/widgets/multitoggle.js b/browser/js/app/widgets/multitoggle.js index 81d7a8e2..917b7e0f 100644 --- a/browser/js/app/widgets/multitoggle.js +++ b/browser/js/app/widgets/multitoggle.js @@ -52,9 +52,5 @@ module.exports.create = function(widgetData,container) { widget.delegateDrag() - - widget.getValue = function() {} - widget.setValue = function() {} - return widget } diff --git a/browser/js/app/widgets/panel.js b/browser/js/app/widgets/panel.js index b0d7b68a..ca751097 100644 --- a/browser/js/app/widgets/panel.js +++ b/browser/js/app/widgets/panel.js @@ -35,7 +35,5 @@ module.exports.create = function(widgetData,container) { } else { parsewidgets(widgetData.widgets,widget) } - widget.getValue = function(){return} - widget.setValue = function(){return} return widget } diff --git a/browser/js/app/widgets/plot.js b/browser/js/app/widgets/plot.js index 6f10b964..d38aeb24 100644 --- a/browser/js/app/widgets/plot.js +++ b/browser/js/app/widgets/plot.js @@ -183,7 +183,5 @@ module.exports.create = function(widgetData,container) { widget.data = data } - widget.getValue = function(){return} - widget.setValue = function(){return} return widget } diff --git a/browser/js/app/widgets/strip.js b/browser/js/app/widgets/strip.js index 129060b7..be59527f 100644 --- a/browser/js/app/widgets/strip.js +++ b/browser/js/app/widgets/strip.js @@ -30,8 +30,8 @@ module.exports.create = function(widgetData,container) { } else { container.addClass('vertical') } + parsewidgets(widgetData.widgets,widget) - widget.getValue = function(){return} - widget.setValue = function(){return} + return widget } diff --git a/browser/js/app/widgets/visualizer.js b/browser/js/app/widgets/visualizer.js new file mode 100644 index 00000000..02f9520c --- /dev/null +++ b/browser/js/app/widgets/visualizer.js @@ -0,0 +1,152 @@ +var utils = require('./utils'), + mapToScale = utils.mapToScale + +module.exports.options = { + type:'visualizer', + id:'auto', + + separator1:'style', + + label:'auto', + left:'auto', + top:'auto', + width:'auto', + height:'auto', + css:'', + + separator2:'plot', + + curve:'', + duration:1, + range: {min:0,max:1}, + logScale: false, + +} +module.exports.create = function(widgetData,container) { + + var widget = $(` +
+ +
+ `), + canvas = widget.find('canvas'), + ctx = canvas[0].getContext('2d') + + widget.height = undefined + widget.width = undefined + widget.visible = false + widget.lineColor = String(getComputedStyle(document.documentElement).getPropertyValue("--color-accent")).trim() + widget.textColor = String(getComputedStyle(document.documentElement).getPropertyValue("--color-text-fade")).trim() + widget.pips = { + min: Math.abs(widgetData.range.min)>=1000?widgetData.range.min/1000+'k':widgetData.range.min, + max: Math.abs(widgetData.range.max)>=1000?widgetData.range.max/1000+'k':widgetData.range.max + } + widget.length = 60*widgetData.duration + widget.data = new Array(widget.length) + + canvas.resize(function(){ + var width = canvas.width(), + height = canvas.height() + + if (height==100 && width==100) return + + if (!self.visible) { + widget.visible = true + canvas.addClass('visible') + } + + widget.height=height + widget.width=width + + canvas[0].setAttribute('width',width) + canvas[0].setAttribute('height',height) + + requestAnimationFrame(widget.draw) + + }) + + $('body').on('sync',function(e,id,w){ + if (widgetData.curve!=id || !document.contains(widget[0])) return + + if (widget.cancel) clearTimeout(widget.cancel) + widget.cancel = setTimeout(function(){ + clearInterval(widget.loop) + widget.loop = false + },1000*widgetData.duration) + + if (widget.loop) return + widget.loop = widget.createLoop() + }) + + + widget.cancel = false + widget.loop = false + widget.createLoop = function(){ + return setInterval(function(){ + widget.fetchValue() + widget.draw() + },1000*widgetData.duration/widget.length) + } + + + widget.draw = function(){ + ctx.clearRect(0,0,widget.width,widget.height) + ctx.beginPath() + + var first = true + var point = [] + + for (var i=widget.length-1;i>=0;i=i-1) { + var newpoint = [ + mapToScale(i,[0,widget.length-1],[15,widget.width-15],1), + mapToScale(widget.data[i],[widgetData.range.min,widgetData.range.max],[widget.height-15,15],1,widgetData.logScale,true), + ] + if (first) { + ctx.moveTo(newpoint[0],newpoint[1]) + first = false + } else { + if (widgetData.logScale) { + ctx.quadraticCurveTo(newpoint[0], point[1], newpoint[0], newpoint[1]) + } else { + ctx.lineTo(newpoint[0],newpoint[1]) + } + + } + point = newpoint + } + + ctx.lineWidth = 1.5 + ctx.strokeStyle= widget.lineColor + ctx.stroke() + + ctx.font = '10px sans-serif' + ctx.fillStyle = widget.textColor + + + ctx.save() + ctx.translate(0, widget.height) + ctx.rotate(-Math.PI/2) + + ctx.textBaseline = "top" + ctx.textAlign = 'left' + ctx.fillText(widget.pips.min,12,2) + ctx.textAlign = 'right' + ctx.fillText(widget.pips.max,widget.height-10,2) + ctx.rotate(Math.PI/2) + ctx.restore() + + } + + + + widget.fetchValue = function(){ + var id = widgetData.curve + if (!typeof id == 'string' || !WIDGETS[id] || !WIDGETS[id].length ) return + + widget.data.push(WIDGETS[id][WIDGETS[id].length-1].getValue()) + widget.data.splice(0,1) + + } + + return widget +} diff --git a/browser/scss/style.scss b/browser/scss/style.scss index b3c5ff06..d285f8b1 100644 --- a/browser/scss/style.scss +++ b/browser/scss/style.scss @@ -516,11 +516,13 @@ a { list-style:none; display: flex; padding:7rem 6rem; + overflow: hidden; li.on + li {border-image:none;border-left:1rem solid transparent;} li { display:block; max-width:250rem; + min-width:0; flex: 1; border-width:0 0 0 1rem; @@ -1825,7 +1827,7 @@ a { } } -.plot-container { +.plot-container, .visualizer-container { min-height: 200rem; min-width: 200rem; .plot { diff --git a/examples/plot.js b/examples/plot.js index 77ebac67..46a51d92 100644 --- a/examples/plot.js +++ b/examples/plot.js @@ -94,8 +94,8 @@ "type": "plot", "id": "plot_1", "label": "plot_1", - "left": "auto", - "top": "auto", + "left": 406, + "top": 215, "width": "auto", "height": "auto", "css": "", @@ -127,7 +127,24 @@ }, "logScaleX": false, "logScaleY": false + }, + { + "type": "visualizer", + "left": 406, + "top": 7, + "width": "auto", + "height": "auto", + "css": "", + "id": "visualizer_(fader_1)", + "curve": "fader_1", + "duration": 1, + "range": { + "min": 0, + "max": 1 + }, + "logScale": false, + "label": "visualizer (fader1)" } ] } -] +] \ No newline at end of file