diff --git a/browser/css/style.css b/browser/css/style.css index 9c24b9e3..1ee420f1 100644 --- a/browser/css/style.css +++ b/browser/css/style.css @@ -1 +1 @@ -* { 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: ""; 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: FontAwseome; 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.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; position: absolute; top: 5rem; left: 5rem; right: 5rem; z-index: 100000; cursor: -webkit-grab; height: 25rem; border: 1rem solid #528bff; border-radius: 3rem; }.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 !important; }.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.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 > .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; }.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; border-radius: 3rem; }.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; height: auto; }.push:active .light { background: #528bff; }.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; } }/* 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; } \ No newline at end of file +* { 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: FontAwseome; 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.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; position: absolute; top: 5rem; left: 5rem; right: 5rem; z-index: 100000; cursor: -webkit-grab; height: 25rem; border: 1rem solid #528bff; border-radius: 3rem; }.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 !important; }.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.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 > .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; }.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; border-radius: 3rem; }.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; height: auto; }.push:active .light { background: #528bff; }.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; } }/* 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; } \ No newline at end of file diff --git a/browser/js/app/editor/edit-objects.js b/browser/js/app/editor/edit-objects.js index 57c7cc83..25b9d992 100644 --- a/browser/js/app/editor/edit-objects.js +++ b/browser/js/app/editor/edit-objects.js @@ -5,15 +5,23 @@ var editObject = function(container, data, refresh){ if (!refresh && (container.hasClass('editing') || $(`a[data-tab="#${container.attr('id')}"]`).hasClass('editing'))) return + var isWidget = container.hasClass('widget') + $('.editing').removeClass('editing') - $(`a[data-tab="#${container.attr('id')}"]`).addClass('editing').click() - $(container).addClass('editing') + + if (isWidget) { + $(container).addClass('editing') + } else { + $(`a[data-tab="#${container.attr('id')}"]`).addClass('editing').click() + $(container).parent().addClass('editing') + } + + $('.editor-container').remove() $('.editor').append('
') var form = $('
').appendTo('.editor-container') - var isWidget = container.hasClass('widget') var params = isWidget?widgetOptions[data.type]:{label:''} @@ -217,7 +225,7 @@ var editSession = function(container,data,refresh){ if (!refresh && $('.editor-root').hasClass('editing')) return $('.editing').removeClass('editing') - $('.editor-root').addClass('editing') + $('.editor-root, #container').addClass('editing') $('.editor-container').remove() $('.editor').append('
') diff --git a/browser/js/app/editor/init.js b/browser/js/app/editor/init.js index 47d24303..8728e6ca 100644 --- a/browser/js/app/editor/init.js +++ b/browser/js/app/editor/init.js @@ -22,9 +22,9 @@ var init = function(){ $('.context-menu').remove() - var target = $(e.target).is('.widget, .tab, [data-tab]')? + var target = $(e.target).is('.widget, .tab, [data-tab], #container')? $(e.target): - $(e.target).closest('.widget, .tab, a[data-tab]') + $(e.target).closest('.widget, .tab, a[data-tab], #container') if (!target.length) return @@ -36,12 +36,25 @@ var init = function(){ if (container.attr('id')=='container') { editSession(container,SESSION) + } else { + editObject(container,data) + } + + + if (e.button!=2) return + + + if (container.attr('id')=='container') { + menu(e,{ + ' Add tab': function(){ + data.push({}) + updateDom(container,data) + } + },'body') + return } - editObject(container,data) - - if (e.button!=2) return var actions = {} diff --git a/browser/scss/style.scss b/browser/scss/style.scss index 962605bf..aeea9ae8 100644 --- a/browser/scss/style.scss +++ b/browser/scss/style.scss @@ -336,7 +336,7 @@ body { .widget.editing { z-index: 11!important; } -.widget.editing:after, a.editing:before { +.widget.editing:after, a.editing:before, .content.editing:before, #container.editing:before{ content:""; z-index: 999; position: absolute;