- js code rewriting (widget parsing made more extensible)

- xy pad (todo: duplicate pads sync, input sync
- rgb pad
- some style improvements...
This commit is contained in:
jean-emmanuel 2015-08-17 19:31:14 +02:00 • committed by bordun
parent a35ab74b6a
commit a83f17c1e7
10 changed files with 709 additions and 263 deletions

View file

@ -65,7 +65,7 @@
}
.noUi-handle {
border-radius:100%!important;
background:#528bff!important;
background:$color-accent!important;
box-shadow:0 0 10px 0px #aaa inset,0 0 1px 1px rgba(0,0,0,.5),0 0 0 3px rgba(255,255,255,.2)!important
}
.noUi-horizontal .noUi-handle {
@ -278,7 +278,7 @@
}
.noUi-connect {
background:#528bff;
background:$color-accent;
border:0;
border-radius:0;
}

View file

@ -31,7 +31,9 @@ $nav-height:50px;
* ::selection{
background:rgba(0,0,0,0);
}
.inspector *::selection{
background:$color-accent!important;
}
input:focus::selection{
background:$color-accent;
}
@ -88,33 +90,32 @@ $sidepanel-size:300px;
.open-toggle {
position:absolute;
top:7px;
left:-47px;
left:-53px;
width:47px;
height:40px;
background:$color-fg;
padding:10px 10px;
border:1px solid $color-border;
border-right:0;
padding:11px 9px;
border:1px solid transparent;
border-bottom:0;
//box-shadow: 0 0 10px 0 $color-border;
border-radius:3px 0 0 3px;
border-radius:3px 3px 0 0;
.bars {
display:block;
position: relative;
width:100%;
height:3px;
background: $color-border;
height:2px;
background: $color-text;
&:after, &:before {
content:"";
position: absolute;
width: 100%;
height:100%;
top:8px;
top:7px;
left:0;
background: $color-border;
background: $color-text;
}
&::after {
top:16px;
top:14px;
}
&, &:after, &:before {
//transition:all .3s;
@ -139,20 +140,34 @@ $sidepanel-size:300px;
}
#options {
position:absolute;
left:0;top:3px;
left:0;top:2px;
right:0;bottom:0;
padding:5px;
list-style:none;
background:$color-fg;
li {
display:block;
margin-bottom:5px;
margin-bottom:15px;
background:$color-title;
border:1px solid $color-border;
div {
> div {
padding:10px;
}
}
.inspector {
.result {
background: $color-border;
border-radius: 3px;
margin-top: 10px;
padding:10px;
color:$color-text-fade;
white-space: pre;
word-wrap: break-word;
width:100%;
}
}
}
}
@ -185,32 +200,55 @@ a {
text-transform: uppercase;
}
&.sub {
padding-top:2px
padding-top:2px;
ul {
padding:0;
}
li {
border-image: linear-gradient($color-fg, $color-border 20px) 0 0 0 1 stretch;
}
}
.main {
top:0;
position:fixed;
z-index:3;
white-space:nowrap;
border-bottom:0;
overflow:hidden
&.main {
right:80px;
}
ul {
list-style:none;
display: flex;
padding-left:5px;
li.on + li {border:0;}
li {
display:inline-block;
margin:0 5px;
display:block;
max-width:250px;
flex: 1;
border-width:0 0 0 1px;
border-image: linear-gradient($color-bg, $color-border 20px) 0 0 0 1 stretch;
&:first-child, &.on {
border:0;
}
a {
display:block;
padding: 5px 10px;
line-height: ($nav-height - 22px);
border-radius:3px 3px 0 0;
overflow:hidden;
text-align:center;
border:1px solid transparent;
position:relative;
span {
display:block;
width:100%;
-webkit-mask: linear-gradient(to left, rgba(0, 0, 0, 0), #000000 10px) no-repeat;
}
&.on {
background:#282c34;
border:1px solid $color-border;
border-bottom-color:$color-fg;
position:relative;
&:after {
content:"";
@ -239,6 +277,7 @@ a {
bottom:0;
padding:5px;
border-top:1px solid $color-border;
.tab {
height:100%;
font-size:0;
@ -270,10 +309,11 @@ a {
height:100%;
position:relative;
font-size:13px;
border:1px solid $color-border;
padding:35px 0;
width:100px;
// box-shadow: 0 0 0 1px $color-border;
padding-top:35px;
vertical-align:top;
overflow: hidden;
margin-right: 10px;
.title {
border-bottom:1px solid $color-border;
border-left:0;
@ -287,26 +327,18 @@ a {
text-overflow:ellipsis;
overflow:hidden;
height:35px;
border-radius:2px 2px 0 0 ;
}
input {
width:100%;
height:35px;
border:0;
border-left:0;
border-right:0;
background:$color-bg;
color:inherit;
border-top: 1px solid $color-border;
display:block;
margin:0 auto;
padding:10px;
position:absolute;
bottom:0;
left:0;
right:0;
border-top
&:focus {
box-shadow: 0 0 0 1px $color-accent inset;
box-shadow:0 0 0 1px $color-accent inset!important;
}
&[disabled] {
color:$color-text-fade;
@ -334,6 +366,10 @@ $button-size:20px;
width:100%;
height:100%;
position:relative;
outline:1px solid $color-bg;
outline-offset: -10px;
background: $color-title;
border: 10px solid $color-fg;
&:after{
content:"";
position:absolute;
@ -350,6 +386,10 @@ $button-size:20px;
box-shadow:0 0 0 4px rgba(255,255,255,0.1);
}
}
input {
position:absolute;
bottom:0;
}
}
@ -357,7 +397,7 @@ $button-size:20px;
/* STACK (contains any widgets) */
.stack {
width:400px;
width:400px;
height:auto;
padding-bottom:0;
border-bottom: 0;
@ -381,10 +421,16 @@ $button-size:20px;
display:block;
padding:0;
border-top:0;
border-right:0;
border-left:0;
margin-top: 10px;
}
.stack .fader {
width:100%;
}
.stack .fader-wrapper-outer {
padding:0;
}
.stack .fader-wrapper {
padding:20px 20px;
float:right;
@ -397,7 +443,7 @@ $button-size:20px;
.stack .widget .title {
width:30%;
height:50%;
border-right:1px solid $color-border;
//border-right:1px solid $color-border;
}
.stack .widget input {
width:30%;
@ -405,16 +451,179 @@ $button-size:20px;
left:0;
right:auto;
border-top:0;
border-right:1px solid $color-border;
//border-right:1px solid $color-border;
}
/* STRIP (vertical fader) */
.fader-wrapper-outer {
padding-bottom:30px;
overflow:hidden;
height:100%;
width:100%;
position: relative;
input {
position:absolute;
bottom:0;
}
}
.fader-wrapper {
padding:20px 15px;
overflow:hidden;
height:100%;
width:95px;
position: relative;
}
.fader{
height:100%;
}
/* XY */
.xy-wrapper {
width:400px;
padding: 10px;
height:100%;
overflow: hidden;
}
.xy {
position:relative;
width:100%;
height: 400px;
border:1px solid $color-border;
background: $color-bg;
overflow: hidden;
.handle {
position:absolute;
height:0;
width:0;
z-index:2;
&:after {
content:"";
position:absolute;
top:-.5px;
left:-1px;
box-shadow:0 0 10px 0px #aaa inset,0 0 1px 1px rgba(0,0,0,.5),0 0 0 3px rgba(255,255,255,.2)!important;
border-radius:100%!important;
background:$color-accent!important;
width: 11px;
height: 11px;
margin:-5px 0 0 -5px;
}
span {
position:absolute;
top:-.5px;
left:-1px;
width:2000px;
height:2000px;
margin:-1000px 0 0 -1000px;
opacity:.5;
&:after {
content:"";
position: absolute;
width:100%;
height:1px;
top:50%;
background: $color-accent
}
&:before {
content:"";
position: absolute;
height:100%;
width:1px;
top:0;
left:50%;
background: $color-accent
}
}
}
}
.rgb-wrapper {
.value {
margin-top:30px;
width:100%;
}
input {
width:33.33%;
float:left;
padding-left: 20px;
position: relative;
left:0px;
right:0px;
&.r:after {
content:"Rzd";
display:block;
position: absolute;;
left:0;
}
}
}
.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%); /* W3C */
}
}
.hue {
width:100%;
height:30px;
border:1px solid $color-border;
margin-top:10px;
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
.handle {
position:absolute;
height:100%;
width:1px;
z-index:2;
&:after {
content:"";
position:absolute;
top:100%;
left:-1px;
box-shadow:0 0 10px 0px #aaa inset,0 0 1px 1px rgba(0,0,0,.5),0 0 0 3px rgba(255,255,255,.2)!important;
border-radius:100%!important;
background:$color-accent!important;
width: 11px;
height: 11px;
margin:4px 0 0 -5px;
}
&:before {
content:"";
position:absolute;
top:0;
bottom:0;
left:0;
width:1px;
background:$color-accent;
}
span {
position:absolute;
top:0;
left:0;
width:2000px;
height:100%;
margin-left:-1000px;
opacity:.5;
}
}
}