Remove pseudo-elements from fadeable
This commit is contained in:
@@ -1,23 +1,8 @@
|
|||||||
.fadable {
|
.fadable {
|
||||||
position: relative;
|
opacity: 1;
|
||||||
|
transition: opacity 0.2s cubic-bezier(0.54, 0, 0.28, 1);
|
||||||
&::after {
|
|
||||||
transition: opacity 0.2s cubic-bezier(0.54, 0, 0.28, 1);
|
|
||||||
content: '';
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
opacity: 0;
|
|
||||||
background: var(--color-gray-dark);
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.is-faded {
|
&.is-faded {
|
||||||
&::after {
|
opacity: 0;
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user