editor: fade the grid in
This commit is contained in:
parent
6209b67a1e
commit
720c49331b
1 changed files with 16 additions and 0 deletions
|
|
@ -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;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue