From 51bddcd573081665df34eb253238e438d937a03f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 15 Feb 2016 17:21:02 +0100 Subject: [PATCH] style update, light and dark theme soon --- app/browser/css/style.css | 2 +- app/browser/js/app/init.js | 4 +- app/browser/js/app/widgets.js | 9 +- app/browser/scss/style.scss | 357 +++++++++++++++++++--------------- 4 files changed, 211 insertions(+), 161 deletions(-) diff --git a/app/browser/css/style.css b/app/browser/css/style.css index 4b740b04..969f0665 100644 --- a/app/browser/css/style.css +++ b/app/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: #1a1d22; }::-webkit-scrollbar-track-piece:vertical { border-left: 1rem solid #1a1d22; }::-webkit-scrollbar-track-piece:horizontal { border-top: 1rem solid #1a1d22; }::-webkit-scrollbar-corner { background: transparent; }::-webkit-scrollbar-thumb { background: linear-gradient(#2d3139, #2b2f37 15rem); }::-webkit-scrollbar-thumb:vertical { border-left: 1rem solid #1a1d22; }::-webkit-scrollbar-thumb:horizontal { border-top: 1rem solid #1a1d22; }* { -webkit-user-select: none; }input:focus::selection { background: #528bff; }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; color: #cccccc; white-space: nowrap; opacity: 1; cursor: default; }.btn { background: linear-gradient(#2d3139, #2b2f37 15rem); display: block; box-shadow: 0 0 0 1rem #1a1d22; padding: 15rem; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }.btn.small { padding: 5rem; padding-right: 15rem; }.btn.disabled { pointer-events: none; color: #999999; background: linear-gradient(#272a31, #25282f 15rem); }.btn.align-center { text-align: center; }a.btn:hover { background-image: linear-gradient(#32363d, #2d3139); }#lobby { background: #22252c; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; border: 1rem solid #1a1d22; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 20rem; }#lobby .main { width: 600rem; max-height: 100%; }#lobby .header { background: linear-gradient(#2d3139, #2b2f37 15rem); padding: 20rem; font-weight: bold; box-shadow: 0 0 0 1rem #1a1d22 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: #999999; }#lobby a span:hover { color: #cccccc; }#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; height: 60rem; padding: 0 10rem; line-height: 60rem; font-size: 24rem; text-align: center; color: #999999; z-index: 2; }#container #open-toggle.sidepanel-open { color: #cccccc; }#sidepanel { position: absolute; z-index: 999999; width: 300rem; top: 0; right: 0; bottom: 0; margin-right: -300rem; background: #282c34; border-left: 1rem solid #1a1d22; 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; background: #282c34; }#sidepanel #options li { display: block; margin-bottom: 5rem; background: linear-gradient(#2d3139, #2b2f37 15rem); position: relative; }#sidepanel #options li:last-child { margin-bottom: 0; }#sidepanel #options li .title { padding-bottom: 15rem; }#sidepanel #options li .actions { display: flex; align-items: stretch; }#sidepanel #options li .actions a { padding: 10rem; display: block; width: 100%; text-align: center; }#sidepanel #options li .actions a.on { pointer-events: none; }#sidepanel #options li .actions a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2rem solid #528bff; }#sidepanel #options li > .btn + span { position: absolute; right: 0rem; top: 0rem; padding: 5rem; color: #999999; }#sidepanel #options li > .btn + span:hover { color: #cccccc; }#sidepanel #options .editor .form { margin-top: 10rem; }.editing { z-index: 99999999 !important; }.editing:before { content: ""; z-index: 999; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 1px dashed #528bff; pointer-events: none; }a { color: inherit; }.navigation { position: absolute; top: 0; left: 0; right: 0; z-index: 1; font-size: 14rem; background: #22252c; border-bottom: 1rem solid #1a1d22; border-top: 1rem solid #282c34; height: 60rem; }.navigation ::first-letter { text-transform: uppercase; }.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(26, 29, 34, 0), #1a1d22, rgba(26, 29, 34, 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: #999999; }.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: #282c34; border: 1rem solid #1a1d22; color: #cccccc; }.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; }.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 #1a1d22; 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%; background: rgba(0, 0, 0, 0.5); z-index: 1000000; }.popup .popup-title { position: relative; padding: 15rem; background: linear-gradient(#2d3139, #2b2f37 15rem); }.popup .popup-title .closer { position: absolute; right: 0rem; top: 0; padding: 15rem; color: #999999; cursor: pointer; }.popup .popup-title .closer:hover { color: #cccccc; }.popup .popup-wrapper { background: #282c34; height: 100%; width: 100%; max-width: 600rem; margin: 0 auto; position: relative; overflow: hidden; border: 1rem solid #1a1d22; }.popup .popup-wrapper .popup-content { height: 100%; width: 100%; padding: 10rem; overflow-y: scroll; white-space: normal; }.form label { display: block; line-height: 15rem; font-size: 10rem; }.form .info { color: #999999; margin-bottom: 10rem; }.form input, .form .input { display: block; background: #22252c; font: inherit; color: #cccccc; border: 1rem solid #1a1d22; 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 { box-shadow: 0 0 0 1rem #528bff; }.form .checkbox { background: linear-gradient(#2d3139, #2b2f37 15rem); cursor: pointer; }.form .checkbox:hover { background: linear-gradient(#32363d, #2d3139); }.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: #999999; }.form .separator span { font-variant: small-caps; position: relative; display: block; width: 100%; text-align: center; }.tab.on.stretch { display: flex; justify-content: space-between; }.tab.on.stretch > .widget { width: 100%; }.tab { display: none; overflow: auto; position: relative; }.tab.on { display: block; height: 100%; width: auto; }.widget { display: inline-block; height: auto; min-width: 100rem; overflow: hidden; position: relative; font-size: 13rem; padding: 35rem 0 0; vertical-align: top; box-shadow: 0 0 0 1rem #22252c inset; background: linear-gradient(#2d3139, #2b2f37 15rem); background-clip: padding-box; -webkit-tap-highlight-color: transparent; }.widget.absolute-position { position: absolute; z-index: 10; }.widget.nolabel { padding-top: 0; }.widget.nolabel > .label { display: none; }.widget .label { z-index: 1; 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: 35rem; border: 0; background: #22252c; color: inherit; display: block; padding: 10rem; }.widget input:focus { box-shadow: 0 0 0 1rem #528bff inset !important; }.widget input[disabled] { color: #999999; }.ui-resizable-handle { position: absolute; bottom: 5rem; right: 5rem; width: 15rem; height: 15rem; border: 2rem solid transparent; border-right: 2rem solid #528bff; border-bottom: 2rem solid #528bff; z-index: 100000; cursor: se-resize; }.ui-helper { border: 1rem dashed #528bff; background: rgba(82, 139, 255, 0.25); min-width: 30rem !important; min-height: 30rem !important; z-index: 99999999999 !important; }.ui-draggable-handle { position: absolute; position: absolute; top: 5rem; left: 5rem; z-index: 100000; cursor: -webkit-grab; width: 15rem; height: 15rem; border: 2rem solid #528bff; }.ui-draggable-handle:active { cursor: -webkit-grabbing; }/* STRIP (contains any widgets) */.strip-container { padding-top: 35rem; width: 100rem; height: 100%; overflow: visible; background: none; box-shadow: none; }.strip-container > .label { background: linear-gradient(#2d3139, #2b2f37 15rem); 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; }.strip-container.horizontal { padding-top: 0; padding-left: 35rem; width: 100%; height: auto; display: block; }.strip-container.horizontal .strip { flex-direction: row; }.strip-container.horizontal .strip > .widget { flex-shrink: initial; width: 100%; }.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 { position: absolute; z-index: 2; }.panel-container ::-webkit-scrollbar-thumb, .panel-container ::-webkit-scrollbar-track-piece { border: 1rem solid #22252c; }.panel-container .panel { height: 100%; overflow: auto; position: relative; }.panel-container .panel.stretch { display: flex; justify-content: space-between; }.panel-container .panel.stretch > .widget { width: 100%; }.panel-container .navigation { border-top: 0; background: transparent; border-bottom: 1rem solid #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; padding: 29rem 10rem 26rem; line-height: 1rem; background: none !important; text-align: center; pointer-events: none; display: flex; justify-content: center; align-items: center; }.toggle-container:hover, .push-container:hover { background-image: linear-gradient(#32363d, #2d3139); }.toggle { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }.toggle .light { position: absolute; left: 4rem; right: 4rem; top: 4rem; height: 4rem; background: #1a1d22; border-radius: 3rem; }.toggle.on .light { background: #528bff; }.push.on .light { animation: none; background: #528bff; }.push:active .light { background: #528bff; }.switch-container { width: 100rem; flex-shrink: 0; }.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: linear-gradient(#2d3139, #2b2f37 15rem); color: #999999; 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:hover { background: linear-gradient(#32363d, #2d3139); }.switch-container .switch .value:last-child { margin-bottom: 0; }.switch-container .switch .value:first-child { border-top: 0; }.switch-container .switch .value:before { content: ""; position: absolute; left: 8rem; top: 50%; width: 8rem; height: 8rem; margin-top: -4rem; background: #1a1d22; 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: 300rem; flex-shrink: 0; }.xy-wrapper { overflow: hidden; padding-bottom: 70rem; }.xy-wrapper.manual-height { height: 100%; }.xy-wrapper.manual-height .xy { padding-top: 0; height: 100%; }.xy-wrapper .value { width: 100%; position: absolute; bottom: 0; }.xy-wrapper input { width: 50%; float: left; padding: 2rem; text-align: center; position: relative; box-shadow: 0 0 0 1rem #1a1d22; }.xy-wrapper input:focus { box-shadow: 0 0 0 1rem #1a1d22, 0 0 0 1rem #528bff inset !important; z-index: 1; }.xy { position: relative; width: auto; padding-top: 90%; margin: 0 1rem; overflow: hidden; background: rgba(0, 0, 0, 0.5); cursor: -webkit-grab; }.xy:active { cursor: -webkit-grabbing; }.xy:active .handle:after, .xy:active .handle:before { transform: scale(1.5); }.xy .handle { position: absolute; height: 0rem; width: 0rem; bottom: 0; left: 0; max-height: 100%; max-width: 100%; z-index: 2; pointer-events: none; }.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 #2b2f37; }.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: 100rem; }.rgb-wrapper input { width: 33.33%; }.rgb { background-color: red; }.rgb:before, .rgb:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }.rgb:before { background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%); }.rgb:after { background: linear-gradient(to bottom, transparent 0%, black 100%); }.rgb .handle:before { box-shadow: none; background: #cccccc; }.rgb .handle:after { box-shadow: 0 0 0 2000rem rgba(0, 0, 0, 0.5); }.hue { width: auto; height: 29rem; background: transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; overflow: hidden; position: absolute; bottom: 71rem; left: 1rem; right: 1rem; cursor: -webkit-grab; }.hue:active { cursor: -webkit-grabbing; }.hue:active .handle:after { transform: scale(1.5); }.hue .handle { position: absolute; height: 100%; max-width: 100%; width: 0; z-index: 2; left: 0; bottom: 0; pointer-events: none; }.hue .handle:before { content: ""; position: absolute; top: 50%; margin-top: -4rem; right: -4rem; height: 8rem; width: 8rem; border: none !important; border-radius: 100% !important; box-shadow: none; background: #cccccc; }.hue .handle:after { content: ""; position: absolute; top: 50%; margin-top: -10rem; right: -10rem; height: 20rem; width: 20rem; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 2000rem rgba(0, 0, 0, 0.5); }.fader-container { width: 100rem; 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: #1a1d22; 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: 0rem; max-height: 100%; max-width: 100%; background: #528bff; z-index: 1; }.fader-container .fader-wrapper .fader .handle: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 #2b2f37; }.fader-container .fader-wrapper .fader .handle: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(white, 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: #cccccc; }.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: 35rem; 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: 0; }.fader-container.horizontal .fader-wrapper-outer .fader .handle:before { top: -2rem; right: -4rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .fader .handle: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, #cccccc, 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; padding-top: 15rem; }.knob-container.nolabel .knob-wrapper-outer { top: 0; }.knob-container .knob-wrapper-outer { width: 100%; top: 30rem; bottom: 0; padding-bottom: 30rem; overflow: hidden; height: 100%; display: flex; align-items: center; }.knob-container .knob-wrapper-outer input { bottom: 0; position: absolute; z-index: 1; left: 0; }.knob-container .knob-wrapper-outer .knob-wrapper { padding: 20rem; margin: 0 auto; width: 95rem; 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: 100%; padding-bottom: 100%; border-radius: 100%; pointer-events: none; position: relative; box-shadow: 0 0 0 4rem #1a1d22 inset; }.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 #1a1d22; box-shadow: 0 0 0 1rem #2b2f37, 0 0 0 1rem #2b2f37 inset, 0 0 1rem 1rem #2b2f37, 0 0 1rem 1rem #2b2f37 inset; transform: rotate(45deg); z-index: 1; }.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: transparent; 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: transparent; 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: #2b2f37; z-index: 1; }.knob-container .knob-wrapper-outer .knob-wrapper .round { content: ""; position: absolute; top: 18rem; left: 18rem; right: 18rem; bottom: 18rem; border-radius: 100%; background: linear-gradient(#32363d, #2d3139); 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; }.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 transparent; 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; z-index: 2; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:before { content: ""; position: absolute; bottom: 6rem; left: 5rem; 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 #2b2f37; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:after { content: ""; position: absolute; bottom: 0rem; left: -1rem; 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: #cccccc; pointer-events: none; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.min { bottom: 6rem; left: 0; right: 50%; width: 50%; text-align: center; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.max { bottom: 6rem; 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: #1a1d22; }.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: #2f343d; }::-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: #fff; }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; color: #fff; white-space: nowrap; opacity: 1; cursor: default; }.btn { background: #2f343d; display: block; box-shadow: 0 0 0 1rem #17191e; padding: 15rem; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }.btn.small { padding: 5rem; padding-right: 15rem; }.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: #2f343d; 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; height: 60rem; padding: 0 10rem; line-height: 60rem; font-size: 24rem; text-align: center; color: #aaa; z-index: 2; }#container #open-toggle.sidepanel-open { color: #fff; }#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; position: relative; background: #282c34; }#sidepanel #options li:last-child { margin-bottom: 0; }#sidepanel #options li .title { padding-bottom: 15rem; }#sidepanel #options li .actions { display: flex; align-items: stretch; }#sidepanel #options li .actions a { padding: 10rem; display: block; width: 100%; text-align: center; }#sidepanel #options li .actions a.on { pointer-events: none; }#sidepanel #options li .actions a.on:after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2rem solid #528bff; }#sidepanel #options li .btn + span { position: absolute; right: 0rem; top: 0rem; padding: 5rem; color: #aaa; }#sidepanel #options li > div { box-shadow: 0 0 0 1rem #17191e; padding: 15rem; }#sidepanel #options .editor .form { margin-top: 10rem; }.editing { z-index: 99999999 !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; }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: #2f343d; border: 1rem solid #17191e; color: #fff; }.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%; background: rgba(255, 255, 255, 0.5); z-index: 1000000; }.popup .popup-title { position: relative; padding: 15rem; background: #2f343d; }.popup .popup-title .closer { position: absolute; right: 0rem; top: 0; padding: 15rem; color: #aaa; cursor: pointer; }.popup .popup-wrapper { background: #282c34; height: 100%; width: 100%; 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: scroll; 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: #2f343d; font: inherit; color: #fff; 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: #2f343d; 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.on.stretch { display: flex; justify-content: space-between; }.tab.on.stretch > .widget { width: 100%; }.tab { display: none; overflow: auto; position: relative; }.tab.on { display: block; height: 100%; width: auto; }.widget { display: inline-block; height: auto; min-width: 100rem; overflow: hidden; position: relative; font-size: 13rem; padding: 35rem 0 0; vertical-align: top; box-shadow: 0 0 0 1rem #22252c inset; background: #2f343d; background-clip: padding-box; -webkit-tap-highlight-color: transparent; margin-left: -1rem; }.widget:first-child { margin-left: 0; }.widget:before { content: ""; 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; margin-left: 0 !important; margin-top: 0 !important; }.widget.nolabel { padding-top: 0; }.widget.nolabel > .label { display: none; }.widget .label { z-index: 1; 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: 10rem; }.widget input:focus { color: #528bff; }.widget input[disabled] { color: #aaa; }.ui-resizable-handle { position: absolute; bottom: 5rem; right: 5rem; width: 15rem; height: 15rem; border: 2rem solid transparent; border-right: 2rem solid #528bff; border-bottom: 2rem solid #528bff; z-index: 100000; cursor: se-resize; }.ui-helper { border: 1rem dashed #528bff; background: rgba(82, 139, 255, 0.25); min-width: 30rem !important; min-height: 30rem !important; z-index: 99999999999 !important; }.ui-draggable-handle { position: absolute; position: absolute; top: 5rem; left: 5rem; z-index: 100000; cursor: -webkit-grab; width: 15rem; height: 15rem; border: 2rem solid #528bff; }.ui-draggable-handle:active { cursor: -webkit-grabbing; }/* STRIP (contains any widgets) */.strip-container { padding-top: 35rem; width: 100rem; height: 100%; overflow: visible; background: none; box-shadow: none; }.strip-container > .label { background: #2f343d; 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; }.strip-container.vertical .strip > .widget { margin-left: 0; margin-top: -1rem; }.strip-container.horizontal { padding-top: 0; padding-left: 35rem; width: 100%; height: auto; display: block; margin-left: 0; margin-top: -1rem; }.strip-container.horizontal:first-child { margin-top: 0; }.strip-container.horizontal .strip { flex-direction: row; }.strip-container.horizontal .strip > .widget { flex-shrink: initial; width: 100%; height: 100%; }.strip-container.horizontal .strip > .widget:first-child { margin-left: -1rem; }.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 { position: absolute; z-index: 2; }.panel-container ::-webkit-scrollbar-thumb, .panel-container ::-webkit-scrollbar-track-piece { border: 1rem solid #22252c; }.panel-container .panel { height: 100%; overflow: auto; position: relative; }.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; padding: 29rem 10rem 26rem; line-height: 1rem; 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; z-index: 1; }.toggle .light { position: absolute; left: 4rem; right: 4rem; top: 4rem; height: 4rem; background: #1c1f25; border-radius: 3rem; }.toggle.on .light { background: #528bff; }.push.on .light { animation: none; background: #528bff; }.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: #2f343d; color: #fff; 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: 300rem; flex-shrink: 0; }.xy-wrapper { overflow: hidden; padding-bottom: 60rem; }.xy-wrapper.manual-height { height: 100%; }.xy-wrapper.manual-height .xy { padding-top: 0; height: 100%; }.xy-wrapper .value { width: 100%; position: absolute; bottom: 0; border-top: 1rem solid #22252c; }.xy-wrapper input { width: 50%; float: left; padding: 2rem; text-align: center; position: relative; }.xy { position: relative; width: auto; padding-top: 90%; 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; height: 0rem; width: 0rem; bottom: 0; left: 0; max-height: 100%; max-width: 100%; z-index: 2; pointer-events: none; }.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 { 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: #fff; border: none !important; border-radius: 100% !important; box-shadow: 0 0 0 6rem rgba(255, 255, 255, 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(255, 255, 255, 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; height: 100%; max-width: 100%; width: 0; z-index: 2; left: 0; bottom: 0; pointer-events: none; }.hue .handle:before { content: ""; position: absolute; top: 50%; margin-top: -4rem; right: -4rem; height: 8rem; width: 8rem; border: none !important; border-radius: 100% !important; box-shadow: none; background: #fff; }.fader-container { width: 100rem; 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: 0rem; max-height: 100%; max-width: 100%; background: #528bff; z-index: 1; }.fader-container .fader-wrapper .fader .handle: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: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(#fff, 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: #fff; }.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: 35rem; 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: 0; }.fader-container.horizontal .fader-wrapper-outer .fader .handle:before { top: -2rem; right: -4rem; left: auto; }.fader-container.horizontal .fader-wrapper-outer .fader .handle: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, #fff, 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; padding-top: 15rem; }.knob-container.nolabel .knob-wrapper-outer { top: 0; }.knob-container .knob-wrapper-outer { width: 100%; top: 30rem; bottom: 0; padding-bottom: 30rem; overflow: hidden; height: 100%; display: flex; align-items: center; }.knob-container .knob-wrapper-outer input { bottom: 0; position: absolute; z-index: 1; left: 0; }.knob-container .knob-wrapper-outer .knob-wrapper { padding: 20rem; margin: 0 auto; width: 95rem; 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: 100%; padding-bottom: 100%; border-radius: 100%; pointer-events: none; position: relative; box-shadow: 0 0 0 4rem #1c1f25 inset; }.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: 1; }.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: transparent; 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: transparent; 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: #2f343d; z-index: 1; }.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; }.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 transparent; 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; z-index: 2; }.knob-container .knob-wrapper-outer .knob-wrapper .handle:before { content: ""; position: absolute; bottom: 6rem; left: 5rem; 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; bottom: 0rem; left: -1rem; 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: #fff; pointer-events: none; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.min { bottom: 6rem; left: 0; right: 50%; width: 50%; text-align: center; }.knob-container .knob-wrapper-outer .knob-wrapper .pip.max { bottom: 6rem; 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/app/browser/js/app/init.js b/app/browser/js/app/init.js index 3160785d..7b577ea7 100644 --- a/app/browser/js/app/init.js +++ b/app/browser/js/app/init.js @@ -14,7 +14,7 @@ init = function(session,callback) { }, { html: ` -
+
 Snapshot
Store @@ -30,7 +30,7 @@ init = function(session,callback) { ` }, { - html:`
+ html:`
 Session editor
On diff --git a/app/browser/js/app/widgets.js b/app/browser/js/app/widgets.js index 44dbe4fb..5036c847 100644 --- a/app/browser/js/app/widgets.js +++ b/app/browser/js/app/widgets.js @@ -596,9 +596,11 @@ createWidget.rgb = function(widgetData) { var widget = $(`
+
+
@@ -610,6 +612,7 @@ createWidget.rgb = function(widgetData) { hueHandle = widget.find('.hue .handle'), pad = widget.find('.xy'), huePad = widget.find('.hue'), + rgbBg = pad.find('.bg')[0], value = {r:widget.find('input.r'),g:widget.find('input.g'),b:widget.find('input.b')}, absolute = widgetData.absolute, split = widgetData.split? @@ -683,7 +686,7 @@ createWidget.rgb = function(widgetData) { rgb = hsbToRgb({h:h,s:100,b:100}), v = widget.getValue() - pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') + rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') @@ -711,7 +714,7 @@ createWidget.rgb = function(widgetData) { rgb = hsbToRgb({h:h,s:100,b:100}), v = widget.getValue() - pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') + rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') widget.sendValue(v) widget.showValue(v) @@ -754,7 +757,7 @@ createWidget.rgb = function(widgetData) { var rgb = hsbToRgb({h:hsb.h,s:100,b:100}) - pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') + rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')') widget.showValue(v) diff --git a/app/browser/scss/style.scss b/app/browser/scss/style.scss index d73c0668..a71f316c 100644 --- a/app/browser/scss/style.scss +++ b/app/browser/scss/style.scss @@ -3,37 +3,39 @@ $theme: 'dark'; @if $theme == 'dark' { - $color-text-base: white; + $color-text:#fff; + $color-text-fade:#aaa; + + $color-fg:#282c34; // primary + $color-bg:#22252c; // secondary + $color-raised:lighten(#2b2f37,2%); // raised + $color-raised-top:lighten(#2b2f37,5%); // raised + $color-border:darken($color-bg,5%); + $color-track: lighten(#1a1d22,1%); // widgets unfilled value + + $color-accent:#528bff; } + @if $theme == 'light' { - $color-text-base: black; + $color-text:#222; + $color-text-fade:#888; + + $color-fg:#eee; // primary + $color-bg:#ddd; // secondary + $color-raised:#fafafa; // raised + $color-raised-top:#fcfcfc; // raised + $color-border:#aaa; + $color-track: #bbb; // widgets unfilled value + + $color-accent:#528bff; } -$color-base: black; - -$color-text:mix($color-text-base,$color-base,80); -$color-text-fade:mix($color-text-base,$color-base,60); - - - -$color-fg:#282c34; -$color-bg:mix($color-fg,$color-base,85); -$color-widget:mix($color-fg,$color-text-base,96); - -$color-accent:#528bff; -$color-border:mix($color-fg,$color-base,65); - - -$gutter:6rem; - - $nav-height:60rem; -$bg-3d:linear-gradient(mix($color-text,$color-fg,3), mix($color-text,$color-fg,2) 15rem); -$bg-3d-off:linear-gradient(mix($color-text,$color-bg,3), mix($color-text,$color-bg,2) 15rem); -$bg-3d-hover:linear-gradient(mix($color-text,$color-fg,6), mix($color-text,$color-fg,3)); -$bg-3d-on:linear-gradient(mix($color-text,$color-bg,0), mix($color-text,$color-bg,5)); + + + $sidepanel-size:300rem; @@ -75,7 +77,7 @@ $scrollbar-margin:1rem; } ::-webkit-scrollbar-track-piece { - background: $color-border; + background: $color-bg; &:vertical { border-left:$scrollbar-margin solid $color-border; } @@ -87,7 +89,7 @@ $scrollbar-margin:1rem; background: transparent; } ::-webkit-scrollbar-thumb { - background:$bg-3d; + background:$color-raised; &:vertical { border-left:$scrollbar-margin solid $color-border; } @@ -104,6 +106,7 @@ $scrollbar-margin:1rem; input:focus::selection{ background:$color-accent; + color:$color-text; } input { cursor: text; @@ -140,7 +143,7 @@ body { .btn { - background: $bg-3d; + background: $color-raised; display: block; box-shadow: 0 0 0 1rem $color-border; padding:15rem; @@ -155,17 +158,12 @@ body { &.disabled { pointer-events: none; color:$color-text-fade; - background: $bg-3d-off; } &.align-center { text-align: center } } -a.btn { - &:hover { - background-image: $bg-3d-hover; - } -} + @@ -194,7 +192,7 @@ a.btn { } .header { - background: $bg-3d; + background: $color-raised; padding:20rem; font-weight:bold; box-shadow: 0 0 0 1rem $color-border inset; @@ -214,9 +212,6 @@ a.btn { top:0rem; padding:15rem; color:$color-text-fade; - &:hover { - color:$color-text - } } } } @@ -261,7 +256,7 @@ a.btn { right:0; bottom:0; margin-right:-$sidepanel-size; - background:$color-fg; + background:$color-bg; border-left:1rem solid $color-border; //box-shadow: 0 0 10rem 0 $color-border; transition:right .2s; @@ -278,13 +273,12 @@ a.btn { right:0;bottom:0; padding:5rem; list-style:none; - background:$color-fg; li { display:block; margin-bottom:5rem; - background:$bg-3d; position: relative; + background:$color-fg; &:last-child { margin-bottom: 0 } @@ -313,15 +307,16 @@ a.btn { } } } - > .btn + span { + .btn + span { position: absolute; right:0rem; top:0rem; padding:5rem; color:$color-text-fade; - &:hover { - color:$color-text - } + } + > div { + box-shadow: 0 0 0 1rem $color-border; + padding:15rem; } } @@ -334,11 +329,11 @@ a.btn { .editing { z-index: 99999999!important; } -.editing:before { +.widget.editing:after, a.editing:before { content:""; z-index: 999; position: absolute; - top:0;left:0; + top:1rem;left:0; right:0; bottom:0; border:1px dashed $color-accent; @@ -357,21 +352,37 @@ a { top:0; left:0; right:0; - z-index:1; font-size:14rem; background: $color-bg; - border-bottom: 1rem solid $color-border; - border-top: 1rem solid $color-fg; height:$nav-height; + ::first-letter { text-transform: uppercase; } - + &:before { + content:""; + position: absolute; + top:1px; + left:0; + width:100%; + height: 1px; + background: $color-fg; + z-index: 3; + } + &:after { + content:""; + position: absolute; + bottom:-1px; + left:0; + width:100%; + height: 1px; + background: $color-border; + z-index: 3; + } &.main { padding-right:55rem; right:0; - // background: linear-gradient($color-border,$color-bg); } ul { @@ -411,7 +422,7 @@ a { } color:$color-text-fade; &.on { - background:$color-fg; + background:$color-raised; border:1rem solid $color-border; color:$color-text; @@ -451,6 +462,7 @@ a { right:0; bottom:0; background:$color-fg; + z-index: 1; .content { top:$nav-height; @@ -501,12 +513,12 @@ a { right:0; bottom:0; padding:10%; - background:rgba($color-base,.5); + background:rgba($color-text,.5); z-index:1000000; .popup-title { position: relative; padding:15rem; - background:$bg-3d; + background:$color-raised; .closer { position:absolute; right:0rem; @@ -514,9 +526,6 @@ a { padding:15rem; color:$color-text-fade; cursor: pointer; - &:hover { - color:$color-text; - } } } .popup-wrapper { @@ -550,7 +559,7 @@ a { } input, .input { display:block; - background:$color-bg; + background:$color-raised; font:inherit; color:$color-text; border:1rem solid $color-border; @@ -561,15 +570,16 @@ a { box-shadow: 0 0 0 1rem rgba(red,.3)!important; } &:focus { - box-shadow: 0 0 0 1rem $color-accent; + border-color:$color-accent; + } + .btn { + background:$color-raised-top; + box-shadow: 0 0 0 1rem $color-bg; } } .checkbox { - background:$bg-3d; + background:$color-raised; cursor: pointer; - &:hover { - background:$bg-3d-hover; - } } .select-wrapper { position: relative; @@ -634,11 +644,6 @@ a { display:none; overflow: auto; position: relative; - // padding-top:$gutter; - // padding-left:$gutter; - > .widget { - // margin-right:$gutter; - } &.on { display: block; height:100%; @@ -651,10 +656,6 @@ a { // WIDGETS .widget { - // border:$gutter solid transparent; - // &:not(:first-child) { - // margin-left:-$gutter; - // } display:inline-block; height:auto; min-width: 100rem; @@ -664,13 +665,34 @@ a { padding:35rem 0 0; vertical-align:top; box-shadow: 0 0 0 1rem $color-bg inset; - background:$bg-3d; + background:$color-raised; background-clip:padding-box; -webkit-tap-highlight-color:transparent; + margin-left:-1rem; + + &:first-child { + margin-left:0; + } + + + &:before { + content:""; + position: absolute; + top:1rem; + left:0; + right:0; + // bottom:0; + height:4rem; + box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06); + z-index: 3; + pointer-events: none; + } &.absolute-position { position: absolute; - z-index: 10 + z-index: 10; + margin-left:0!important; + margin-top:0!important; } &.nolabel { @@ -696,14 +718,17 @@ a { } input { width:100%; - height:35rem; + height:30rem; border:0; - background:$color-bg; - color:inherit; + background:transparent; + color:$color-text-fade; + // color:inherit; display:block; + // text-align: center; padding:10rem; &:focus { - box-shadow:0 0 0 1rem $color-accent inset!important; + color:$color-accent; + } &[disabled] { color:$color-text-fade; @@ -759,7 +784,7 @@ a { background: none; box-shadow:none; > .label { - background:$bg-3d; + background:$color-raised; box-shadow: 0 0 0 1rem $color-bg inset; } &.nolabel { @@ -776,29 +801,35 @@ a { } } &.vertical { - padding-top: 35rem;// + $gutter; - // border-bottom:0; - .strip { - > .widget { - // border-bottom:$gutter solid transparent; - } + padding-top: 35rem; + .strip > .widget { + margin-left: 0; + margin-top:-1rem; + // &:first-child { + // margin-top:0; + // } } - } &.horizontal { padding-top:0; - padding-left: 35rem;// + $gutter; + padding-left: 35rem; width:100%; height:auto; display: block; - // border-right:0; + margin-left:0; + margin-top:-1rem; + &:first-child { + margin-top:0; + } .strip { flex-direction: row; > .widget { flex-shrink: initial; width: 100%; - // border-bottom:0; - // border-right:$gutter solid transparent; + height:100%; + &:first-child { + margin-left:-1rem; + } } } > .label { @@ -826,7 +857,6 @@ a { .panel-container { position: absolute; - // border:$gutter solid transparent; z-index: 2; ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track-piece { @@ -836,11 +866,6 @@ a { height:100%; overflow: auto; position: relative; - // padding-top:$gutter; - // padding-left:$gutter; - > .widget { - // margin-right:$gutter; - } &.stretch { display:flex; justify-content: space-between; @@ -848,12 +873,21 @@ a { width:100%; } } + > .navigation:before { + display:none; + } } .navigation { border-top: 0; background: transparent; - border-bottom: 1rem solid $color-bg; + &:after { + background: $color-bg; + } + a.on { + border-color: $color-bg; + } } + .content { background: transparent; } @@ -885,11 +919,7 @@ a { justify-content: center; align-items: center; } - &:hover { - background-image: $bg-3d-hover; - } - // box-shadow: 0 0 0 1rem $color-bg inset; cursor: pointer; } @@ -907,7 +937,7 @@ a { right:4rem; top:4rem; height:4rem; - background: $color-border; + background: $color-track; border-radius: 3rem; } &.on .light { @@ -932,6 +962,9 @@ a { // height: 100%; width:100rem; flex-shrink: 0; + &.nolabel .value:first-child { + border-top:0!important; + } .switch { height:100%; width:100%; @@ -962,8 +995,8 @@ a { } } .value { - background:$bg-3d; - color:$color-text-fade; + background:$color-raised; + color:$color-text; width:100%; height:100%; position: relative; @@ -973,15 +1006,11 @@ a { text-align: left; word-break: break-all; overflow: hidden; - &:hover { - background: $bg-3d-hover; - } + &:last-child { margin-bottom:0; } - &:first-child { - border-top:0; - } + &:before { content:""; position: absolute; @@ -990,7 +1019,7 @@ a { width:8rem; height:8rem; margin-top: -4rem; - background: $color-border; + background: $color-track; border-radius: 8rem; } &.on:before { @@ -1034,11 +1063,12 @@ a { } } overflow: hidden; - padding-bottom: 70rem; + padding-bottom: 60rem; .value { width:100%; position: absolute; bottom:0; + border-top: 1rem solid $color-bg; } input { width:50%; @@ -1046,11 +1076,6 @@ a { padding: 2rem; text-align: center; position: relative; - box-shadow: 0 0 0 1rem $color-border; - &:focus { - box-shadow:0 0 0 1rem $color-border, 0 0 0 1rem $color-accent inset!important; - z-index: 1 - } } } .xy { @@ -1059,8 +1084,9 @@ a { padding-top:90%; margin:0 1rem; overflow: hidden; - background: rgba($color-base,.5); cursor: -webkit-grab; + border-top: 1rem solid $color-bg; + background:rgba($color-bg,.5); &:active { cursor: -webkit-grabbing; .handle:after,.handle:before { @@ -1108,48 +1134,80 @@ a { .rgb-wrapper { - padding-bottom: 100rem; + padding-bottom: 90rem; input { width:33.33%; } } .rgb { - background-color: red; - &:before, &:after { - content:""; - position: absolute; - left:0; - top:0; - width: 100%; - height: 100%; - } - &:before { - background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); - } - &:after { - background:linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); - } + .bg { + position: absolute; + top:0; + left:0; + right:0; + bottom:0; + background-color: red; + opacity: .75; + &:before, &:after { + content:""; + position: absolute; + left:0; + top:0; + width: 100%; + height: 100%; + } + &:before { + background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); + } + &:after { + background:linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); + } + } .handle { &:before { - box-shadow: none; + content:""; + position: absolute; + top:-4rem; + right:-4rem; + height:8rem; + width:8rem; background:$color-text; + border:none!important; + border-radius: 100%!important; + box-shadow: 0 0 0 6rem transparentize($color-text,.8) } &:after { - box-shadow: 0 0 0 2000rem rgba($color-base,.5); + content:""; + position: absolute; + top:-10rem; + right:-10rem; + height:20rem; + width:20rem; + border:none!important; + border-radius: 100%!important; + box-shadow: 0 0 0 1rem transparentize($color-text,.8) inset; } } } .hue { width:auto; height:29rem; - background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%; overflow: hidden; position: absolute; - bottom:71rem; + bottom:61rem; left:1rem; right:1rem; cursor: -webkit-grab; + .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%; + } &:active { cursor: -webkit-grabbing; .handle:after { @@ -1177,17 +1235,6 @@ a { box-shadow: none; background:$color-text; } - &:after { - content:""; - position: absolute; - top:50%;margin-top:-10rem; - right:-10rem; - height:20rem; - width:20rem; - border:none!important; - border-radius: 100%!important; - box-shadow: 0 0 0 2000rem rgba($color-base,.5); - } } } @@ -1232,7 +1279,7 @@ a { .fader { height:100%; width:4rem; - background:$color-border; + background:$color-track; position: relative; margin:0 auto; left:-25rem; @@ -1287,7 +1334,7 @@ a { .pip { height:1%; width:4rem; - background: linear-gradient(white,transparent 1px); + background: linear-gradient($color-text,transparent 1px); &.val { width:10rem; @@ -1415,14 +1462,14 @@ a { border-radius:100%; pointer-events: none; position: relative; - box-shadow: 0 0 0 4rem $color-border inset; + box-shadow: 0 0 0 4rem $color-track inset; &:before { position:absolute; top:0;left:0; right:0; bottom:0; border-radius:100%; - border:4rem solid $color-border; + border:4rem solid $color-track; box-shadow: 0 0 0 1rem mix($color-text,$color-fg,2),0 0 0 1rem mix($color-text,$color-fg,2) inset,0 0 1rem 1rem mix($color-text,$color-fg,2),0 0 1rem 1rem mix($color-text,$color-fg,2) inset; transform: rotate(45deg); z-index:1; @@ -1460,7 +1507,7 @@ a { bottom:-2rem; border-radius:100%; border:12rem solid transparent; - border-bottom-color: mix($color-text,$color-fg,2); + border-bottom-color: $color-raised; z-index:1; } } @@ -1472,7 +1519,7 @@ a { right:18rem; bottom:18rem; border-radius:100%; - background:$bg-3d-hover; + background:$color-raised-top; box-shadow: 0 0 0 1rem $color-bg; }