modal: fix toggle on state
This commit is contained in:
parent
4f77dab9f1
commit
cf4f469cc0
3 changed files with 6 additions and 27 deletions
|
|
@ -109,7 +109,7 @@ module.exports = class Modal extends Panel {
|
|||
this.fixScrolling()
|
||||
|
||||
this.popup.toggle(this.value?true:false)
|
||||
this.container.toggleClass('on', this.value?true:false)
|
||||
this.container.add(this.light).toggleClass('on', this.value?true:false)
|
||||
|
||||
|
||||
if (this.value) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue