modal: fix toggle on state

This commit is contained in:
jean-emmanuel 2017-07-13 09:43:33 +02:00
parent 4f77dab9f1
commit cf4f469cc0
3 changed files with 6 additions and 27 deletions

View file

@ -189,10 +189,10 @@
transform: rotateZ(-45deg);
font-size: 20rem;
display: block;
width:10rem;
height:10rem;
width:8rem;
height:6rem;
right:2rem;
top:2rem;
top:1rem;
left:auto;
line-height: 10rem;
text-align: center;
@ -202,9 +202,7 @@
background: none;
color:var(--color-text-fade);
}
> .label {
top:0;
}
> .panel {
display: none;
}
@ -247,8 +245,7 @@
}
&.on {
z-index: 99999;
@extend .panel-container-base;
.toggle .light:after {
> .toggle .light:after {
color:var(--color-custom);
}
}

View file

@ -30,21 +30,6 @@
border-radius: inherit;
}
&:after {
// content:"";
opacity: 1;
position: absolute;
display: block;
top:3rem;
left:3rem;
right:3rem;
height: 4rem;
background: var(--color-track);
box-shadow: 0 0 0 1rem var(--color-light), 0 0 0 1rem var(--color-bg) inset;
z-index: 1;
border-radius: inherit;
}
}
&.on {
@ -62,9 +47,6 @@
.light:before {
opacity: 0.3;
}
.light:after {
background: var(--color-custom);
}
}