Add a loading indicator to the letter preview

Letter previews take a few seconds to load.

Good to let the user know that something is happening and that they
should wait.
This commit is contained in:
Chris Hill-Scott
2017-03-16 17:09:46 +00:00
parent 846f9913fa
commit cf4a19e979

View File

@@ -1,6 +1,11 @@
$iso-paper-ratio: 141.42135624%;
@keyframes ellipsis {
to {
width: 1.25em;
}
}
.letter {
padding: 0;
@@ -8,6 +13,21 @@ $iso-paper-ratio: 141.42135624%;
position: relative;
background: $panel-colour;
&:before {
position: absolute;
top: 10%;
left: 50%;
margin-left: -0.5em;
font-size: 96px;
color: $white;
overflow: hidden;
display: block;
vertical-align: bottom;
animation: ellipsis steps(4,end) 1.3s infinite;
content: "\2026"; // ellipsis
width: 0px;
}
a {
display: block;
overflow: hidden;