switchers: layout fixes

This commit is contained in:
jean-emmanuel 2017-07-21 23:11:43 +02:00
parent e1ad9b5cd7
commit 823e870ea1
2 changed files with 37 additions and 31 deletions

View file

@ -1,19 +1,16 @@
.switch-container, .switcher-container {
--color-border:var(--color-bg);
.switch-container, .switcher-container, .crossfader-container {
z-index: 1;
width:100rem;
.label {
border-bottom: 1rem solid var(--color-bg);
}
padding:1rem;
&.nolabel {
.switch .value:first-child {
// box-shadow: none!important;
}
.switch.horizontal .value {
box-shadow: none;
--color-border:var(--color-bg);
padding: 0;
.switch, .switcher {
border: 0;
}
}
.switch, .switcher {
.switch {
height:100%;
width:100%;
cursor: pointer;
@ -23,7 +20,7 @@
flex:1;
z-index: 1;
background:var(--color-bg);
border: 1rem solid var(--color-bg);
&.horizontal {
flex-direction:row;
@ -112,13 +109,18 @@
flex:1;
width:auto;
display:flex;
margin: 1rem;
border: 1rem solid var(--color-bg);
padding: 2rem;
.switch {
flex:2;
height: auto;
border: 1rem solid var(--color-bg) !important;
}
&.horizontal {
flex-direction: column;
.switch {
border-bottom: 1rem solid var(--color-bg);
border-right: 0;
flex:2;
height: auto;
}
.fader-container {
width: 100%;
@ -126,11 +128,6 @@
}
}
}
.switch {
height: auto;
flex:2;
border-right: 1rem solid var(--color-bg);
}
.fader-container {
height: 100%;
flex:3;
@ -139,18 +136,19 @@
}
}
}
.panel:not(.tab) > .crossfader-container {
--color-border:var(--color-fg);
.switcher {
border:0!important;
}
}
.dropdown-container {
--color-border:var(--color-bg);
z-index: 1;
width:100rem;
height: 60rem;
> .label {
border-bottom:1rem solid var(--color-bg);
}
padding:1rem;
&.noselect .select:before {
content:"...";
position: absolute;
@ -162,15 +160,23 @@
line-height: 20rem;
pointer-events: none;
}
&.nolabel {
--color-border:var(--color-bg);
padding: 0;
.select {
border: 0;
}
}
.select {
flex:1;
position: relative;
overflow: hidden;
cursor: pointer;
box-shadow: 0 0 0 1rem var(--color-light) inset;
border: 1rem solid var(--color-bg);
select {
box-shadow: 0 0 0 1rem var(--color-light) inset,
0 1rem 0 0 var(--color-light) inset;
display: block;
width: 100%;
height: 100%;
@ -197,7 +203,7 @@
line-height: 20rem;
pointer-events: none;
}
option {
}
}
}