widgets: knobs compact mode, default widgets input's height reduced

This commit is contained in:
jean-emmanuel 2016-09-19 11:01:19 +02:00
parent 4def266315
commit 2407e37922
8 changed files with 177 additions and 53 deletions

View file

@ -49,12 +49,12 @@
}
.input {
width:100%;
height:30rem;
height:24rem;
border:0;
background:transparent;
color:var(--color-text-fade);
display:block;
padding:7rem 5rem;
padding:4rem 5rem;
position: relative;
display: var(--display-input);
@ -64,7 +64,7 @@
left:0;
right:0;
bottom:0;
padding:7rem 5rem;
padding:4rem 5rem;
width: 100%;
font: inherit;
text-align:center;

View file

@ -163,6 +163,9 @@
}
}
&.compact {
.wrapper canvas {
background: var(--color-faded)
}
.input {
overflow: hidden;
position: absolute;
@ -173,7 +176,7 @@
margin-left: -50rem;
left:50%;
z-index: 3;
margin-top: -15rem;
margin-top: -12rem;
}
.meter-container {
top: 0;

View file

@ -20,6 +20,13 @@
position: relative;
}
}
&.compact {
.input {
position: absolute;
top:calc(50% - 12rem);
pointer-events: none;
}
}
}
.knob-container {
@ -28,7 +35,7 @@
--color-knob: var(--color-custom);
width: 100rem;
height: 150rem;
height: 120rem;
align-items: center;
flex-shrink: 0;

View file

@ -20,7 +20,7 @@
.input {
width:50%;
float:left;
height: 30rem;
height: 24rem;
text-align: center;
position: relative;
}