style: (wip) cleaning the style: no more pure greys, better distinction between what clickable or not

This commit is contained in:
jean-emmanuel 2017-01-10 11:08:05 +01:00
parent 3cd5018120
commit 1927218c30
15 changed files with 136 additions and 44 deletions

View file

@ -16,7 +16,7 @@
margin-bottom:0;
}
label {
background: var(--color-raised);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
flex-shrink: 0;
padding: 6rem 7rem 4rem;
// border:1rem solid var(--color-bg);
@ -58,7 +58,7 @@
color:var(--color-text);
width:100%;
.btn {
background:var(--color-raised);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
box-shadow: 0 0 0 1rem var(--color-bg);
}
}
@ -147,7 +147,7 @@
.context-menu {
position:fixed;
z-index: 999999999;
background: var(--color-raised);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
box-shadow: 0 0 4rem 0;
color:var(--color-track);
.item {
@ -183,7 +183,17 @@
pointer-events: auto;
opacity: 1;
}
background:var(--color-accent);
&:after {
content:"";
position: absolute;
left:0;
top:0;
width: 100%;
height:100%;
background:var(--color-accent);
opacity: 0.3;
z-index: -1;
}
}
&.has-sub:before {
content:"\f105";

View file

@ -88,7 +88,8 @@ body {
}
}
a {
background: var(--color-fg);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
// background: var(--color-fg);
pointer-events: none;
padding: 5rem;
height:100%;
@ -97,6 +98,7 @@ body {
overflow:hidden;
text-align:center;
position:relative;
box-shadow: 0 1rem 0 0 var(--color-light) inset;
span {
display:block;
width:100%;
@ -117,7 +119,6 @@ body {
}
&.on a, .sidepanel-open {
position: relative;
background: var(--color-raised);
z-index: 0;
&:after {
opacity:0.3;

View file

@ -1,3 +1,6 @@
$base: #528bff;
:root {
--color-text:rgba(white,.8);
@ -16,6 +19,21 @@
--color-accent:$base;
--color-custom:var(--color-accent);
--color-fg: darken(desaturate($base,82%),45%);
--color-bg: darken(desaturate($base,82%),53%);
--color-track: var(--color-bg);
--color-light:rgba(lighten($base,10%),.1);
--color-raised:var(--color-light);
--color-faded: darken(desaturate($base,78%),48%);
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:30rem;

View file

@ -5,16 +5,16 @@
overflow: hidden;
position:relative;
vertical-align:top;
box-shadow: -0.5rem -0.5rem 0 0.5rem;
box-shadow: -0.5rem -0.5rem 0 0.5rem var(--color-bg), 0 1rem 0 0 var(--color-light) inset;
color:var(--color-bg);
border-right:1rem solid var(--color-bg);
border-bottom:1rem solid var(--color-bg);
background:var(--color-fg);
-webkit-tap-highlight-color:transparent;
min-height:30rem;
min-width:30rem;
display: inline-flex;
flex-direction: column;
background: var(--color-fg);
> * {
color:var(--color-text)
@ -40,8 +40,7 @@
line-height: 30rem;
padding:0 6rem;
width: 100%;
background: var(--color-raised);
border-bottom:1rem solid var(--color-bg);
// background: var(--color-raised);
flex-shrink: 0;
display: flex;
justify-content: space-around;

View file

@ -54,7 +54,7 @@ i {
.btn {
background: var(--color-raised);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
display: block;
padding:15rem;
position: relative;
@ -374,6 +374,8 @@ i {
position: relative;
padding:15rem;
background:var(--color-raised);
border-bottom: 1rem solid var(--color-bg);
&.closable {
padding-right: 50rem;
}

View file

@ -2,6 +2,8 @@
--color-pips: var(--color-text-fade);
--color-gauge: var(--color-custom);
--color-knob: var(--color-custom);
--color-track: var(--color-bg);
width:100rem;
height:100%;
&.horizontal {

View file

@ -2,6 +2,7 @@
--color-pips: var(--color-text-fade);
--color-gauge: var(--color-custom);
--color-knob: var(--color-custom);
--color-track: var(--color-bg);
width: 100rem;
height: 120rem;
@ -27,6 +28,7 @@
canvas {
width: 100%;
position: relative;
}
}
&.compact {

View file

@ -5,6 +5,9 @@
&.nolabel .matrix {
top:0;
}
> .label {
border-bottom:1rem solid var(--color-bg);
}
}
.matrix {
flex:1;
@ -13,7 +16,7 @@
display: flex;
flex-wrap: wrap;
flex-direction: row;
margin-right:-1rem;
margin-right:-2rem;
margin-bottom: -1rem;
> .widget {
@ -80,25 +83,26 @@
--color-white: #ccc;
height:90rem;
width:240rem;
.label {
border-bottom: 1rem solid var(--color-bg);
}
.matrix {
position: relative;
overflow: hidden;
.white {
--color-raised: var(--color-white);
.light.active {
opacity: .25;
--color-light: var(--color-white);
.light.active:before {
opacity: .5;
}
}
.black {
--color-raised: var(--color-black);
--color-light: var(--color-black);
position: absolute;
z-index: 1;
top:0;
height: 65%;
.light.active {
opacity: .5;
box-shadow: none;
.light.active:before {
opacity: .25;
}
}
}

View file

@ -22,7 +22,16 @@
position: relative;
height: 100%;
width: 100%;
background:var(--color-faded);
background:linear-gradient(to right, var(--color-faded), var(--color-fg) 300%);
&:after {
content:"";
position: absolute;
box-shadow: 0 10rem 10rem -12rem var(--color-bg) inset, 0 -10rem 10rem -12rem var(--color-bg) inset;
height: 100%;
width: 100%;
pointer-events: none;
z-index: 2;
}
> canvas {
width:100%;
height:100%;
@ -61,7 +70,7 @@
--color-knob:transparent;
--color-gauge:transparent;
}
&:before, &:after {
&:before {
content:"";
position: absolute;
left:0;
@ -70,10 +79,7 @@
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%);
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%), linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
}
> .hue-wrapper {
@ -111,8 +117,20 @@
.multixy-container {
> .pad {
--point-size:10rem;
&:after {
content:"";
position: absolute;
box-shadow: 0 10rem 10rem -12rem var(--color-bg) inset, 0 -10rem 10rem -12rem var(--color-bg) inset;
height: 100%;
width: 100%;
pointer-events: none;
z-index: 2;
}
> .wrapper {
padding: calc(var(--point-size) + 1rem);
&:after {
content:none;
}
> canvas {
top:0;
left:0;
@ -126,6 +144,9 @@
}
.wrapper {
background: transparent;
&:after {
content:none;
}
}
.row {
display: none;

View file

@ -3,6 +3,9 @@
&.nolabel .panel {
top:0;
}
> .label {
border-bottom:1rem solid var(--color-bg);
}
.panel {
overflow: auto;
@ -141,7 +144,7 @@
opacity: 1;
position: relative;
margin-right: 1rem;
box-shadow: -1rem 0 0 0 var(--color-bg);
box-shadow: -1rem 0 0 0 var(--color-bg), 0 1rem 0 0 var(--color-light) inset;
}
> .light:before {
transition:all .2s;

View file

@ -46,6 +46,15 @@
flex-direction: row;
flex:1;
position: relative;
background:linear-gradient(to right, var(--color-faded), var(--color-fg) 300%);
&:after {
content:"";
position: absolute;
box-shadow: 0 10rem 10rem -12rem var(--color-bg) inset, 0 -10rem 10rem -12rem var(--color-bg) inset;
height: 100%;
width: 100%;
z-index: 2;
}
}
canvas {
position: absolute;

View file

@ -4,7 +4,7 @@
top:0;
}
.active {
background: var(--color-fg);
background: var(--color-light);
}
.light:after{
display: none;

View file

@ -27,7 +27,9 @@
width:auto;
margin:0;
border-color: transparent;
box-shadow: none;
&:not(:first-child) {
// box-shadow: none;
}
.label {
background-image: none;
}
@ -41,9 +43,9 @@
width: 100%;
max-width: 100%;
// margin-right:1rem;
&:not(:first-child) > .label {
border-top:1rem solid var(--color-bg);
}
// &:not(:first-child) > .label {
// border-top:1rem solid var(--color-bg);
// }
}
&::before {
border-right: 1rem solid var(--color-bg);

View file

@ -1,6 +1,17 @@
.switch-container {
width:100rem;
flex-shrink: 0;
.label {
border-bottom: 1rem solid var(--color-bg);
}
&.nolabel {
.switch .value:first-child {
box-shadow: none!important;
}
.switch.horizontal .value {
box-shadow: none;
}
}
.switch {
height:100%;
width:100%;
@ -29,7 +40,7 @@
}
}
.value {
background:var(--color-raised);
background:var(--color-light);
padding:6rem;
color:var(--color-text);
width:100%;
@ -43,11 +54,12 @@
display: flex;
flex-direction: column;
justify-content: center;
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
box-shadow: 0 1rem 0 0 var(--color-light) inset;
&:first-child {
border-top:0;
}
&:last-child {
margin-bottom:0;
}
@ -65,8 +77,6 @@
}
&.on:before {
opacity: .3;
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
}
i {
width: auto;
@ -78,6 +88,9 @@
.switcher-container, .crossfader-container {
.label {
border-bottom: 1rem solid var(--color-bg);
}
.switcher {
width: 100%;
flex:1;
@ -89,6 +102,10 @@
display:flex;
&.horizontal {
flex-direction: column;
.switch {
border-bottom: 1rem solid var(--color-bg);
border-right: 0;
}
.fader-container {
width: 100%;
height: auto
@ -98,6 +115,7 @@
.switch {
height: auto;
flex:1;
border-right: 1rem solid var(--color-bg);
}
.fader-container {
min-height: 60%;

View file

@ -3,7 +3,7 @@
min-height: 60rem;
flex-shrink: 0;
padding:0!important;
background: var(--color-raised);
background: linear-gradient(var(--color-light),var(--color-light)), var(--color-fg);
> .label {
position: absolute;
@ -26,15 +26,18 @@
cursor: pointer;
> .light {
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
flex:1;
&:after {
content:"";
border-top: 4rem solid var(--color-text-fade);
opacity: .1;
opacity: 1;
position: absolute;
display: block;
top:2rem;
left:2rem;
right:2rem;
border-top: 2rem solid var(--color-light);
z-index: 1;
}
&:before {
@ -46,14 +49,12 @@
opacity: 0;
}
&.on {
box-shadow: 0 0 1rem 0 var(--color-custom) inset;
&:before {
opacity: .3;
}
&:after {
border-top-color: var(--color-custom);
opacity: 0.3;
opacity: .7;
}
}