mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-13 09:50:08 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user