Add a loading indicator component

This will let us design a page which tells the user they need to wait.
This commit is contained in:
Chris Hill-Scott
2019-05-15 15:29:47 +01:00
parent e4b1759b3b
commit 5b4edc92fd
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
@keyframes ellipsis {
to {
width: 1.25em;
}
}
.loading-indicator {
&:after {
overflow: hidden;
display: inline-block;
vertical-align: bottom;
animation: ellipsis steps(4,end) 1.5s infinite;
content: "\2026"; // ellipsis
width: 0;
position: relative;
left: -0.15em;
}
}

View File

@@ -66,6 +66,7 @@ $path: '/static/images/';
@import 'components/preview-pane';
@import 'components/task-list';
@import 'components/vendor/govuk-back-link';
@import 'components/loading-indicator';
@import 'views/dashboard';
@import 'views/users';