toggle: style: precise targetting target and put label text above color layer

This commit is contained in:
jean-emmanuel 2016-12-05 17:23:17 +01:00
parent db2754fcde
commit 9ae0e5000a

View file

@ -5,7 +5,7 @@
padding:0!important;
background: var(--color-raised);
.label {
> .label {
position: absolute;
top:1rem;
left:0;
@ -20,11 +20,12 @@
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
cursor: pointer;
.light {
> .light {
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
flex:1;