mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:18:24 -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%;
|
$iso-paper-ratio: 141.42135624%;
|
||||||
|
|
||||||
|
@keyframes ellipsis {
|
||||||
|
to {
|
||||||
|
width: 1.25em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.letter {
|
.letter {
|
||||||
|
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -8,6 +13,21 @@ $iso-paper-ratio: 141.42135624%;
|
|||||||
position: relative;
|
position: relative;
|
||||||
background: $panel-colour;
|
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 {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user