editor: fade the grid in

This commit is contained in:
jean-emmanuel 2016-12-12 06:43:17 +01:00
parent 6209b67a1e
commit 720c49331b

View file

@ -294,6 +294,18 @@
.editor-enabled {
.tab:not(.has-tabs), .panel {
&:after {
content:"";
position: absolute;;
top:0;
left: 0;
bottom:0;
right:0;
background: var(--color-bg);
z-index: -1;
opacity: 1;
animation: fade .25s normal forwards;
}
background-image: linear-gradient(to bottom, var(--color-grid) 1rem, transparent 1rem),
linear-gradient(to right, var(--color-grid) 1rem, transparent 1rem);
--size: calc(var(--grid-width) * calc(var(--grid-width) - 1) / calc(var(--grid-width) - 1) * 1rem);
@ -303,3 +315,7 @@
}
}
@keyframes fade {
from {opacity: 1;}
to {opacity: 0;}
}