multifader: don't rotate horizontal labels

This commit is contained in:
jean-emmanuel 2017-07-21 20:17:40 +02:00
parent 8ba3c87a31
commit 2342471ac5
3 changed files with 7 additions and 16 deletions

View file

@ -38,13 +38,12 @@
text-align:center;
height:30rem;
max-height:30rem;
line-height: 30rem;
padding:0 6rem;
width: 100%;
// background: var(--color-raised);
flex-shrink: 0;
display: flex;
justify-content: space-around;
align-items: center;
&.accent {
color:var(--color-accent);
}

View file

@ -48,19 +48,9 @@
width:100%;
}
.label {
width:35rem;
width:30rem;
height:auto;
max-height: initial;
span {
transform: rotate(180deg);
display: block;
position: relative;
overflow: hidden;
text-overflow: ellipsis;
-webkit-writing-mode:vertical-lr;
writing-mode:vertical-lr;
text-align: center;
}
}
}

View file

@ -121,18 +121,20 @@
--color-gauge:transparent;
--color-knob:var(--color-white);
margin-top: -1rem;
height: calc(2.5 * var(--pointSize));
height: calc(2 * var(--pointSize) + 8rem);
.wrapper {
&:after {
content:"";
display: block;
position: absolute;
top:var(--pointSize);
top:50%;
margin-top: -2rem;
left:var(--pointSize);
right:var(--pointSize);
bottom:var(--pointSize);
height: 4rem;
background: linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
box-shadow: 0 0 0 4rem var(--color-track);
z-index: 1;
}
background:var(--color-track);
}