better placeholder positioning

This commit is contained in:
Kacper Donat 2018-09-30 16:02:42 +02:00
parent 876ac4d715
commit 82adf1139a

View File

@ -48,13 +48,15 @@ body {
main::after { main::after {
transition: opacity .3s ease-in-out; transition: opacity .3s ease-in-out;
position: absolute; position: absolute;
top: 0; top: 2rem;
bottom: 0; bottom: 2rem;
right: 0; right: 2rem;
left: 0; left: 2rem;
content: ""; content: "";
opacity: 0; opacity: 0;
background: url("../images/logo.png") center center no-repeat; background: url("../images/logo.png") center center no-repeat;
background-size: contain;
display: none;
} }
main.not-ready { main.not-ready {
@ -64,6 +66,7 @@ body {
&::after { &::after {
opacity: 1 !important; opacity: 1 !important;
display: block;
} }
} }