feature: add loader to left-menu > members

This commit is contained in:
gaelle morin 2020-08-26 17:41:14 +02:00
parent 1908e6d049
commit ad88494af8
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 80 additions and 0 deletions

View File

@ -120,9 +120,16 @@ solid-router#navbar-router(default-route='dashboard')
div.menu-icon.icon-envelope-letter
solid-route(name='messages', rdf-type='foaf:user', use-id='', hidden)
div.sub-menu.menu-notification
#loader.loader I am coming...!
div.lds-ellipsis
div
div
div
div
solid-display.nosub.message-tab(
data-src=`${endpoints.users || (endpoints.get && endpoints.get.users)}`
fields='name, chatProfile.jabberID, badge'
loader-id='loader'
search-fields="name"
search-label-name="Rechercher..."
search-widget-name="hubl-search-users"

View File

@ -279,6 +279,79 @@ h5 {
width: 15vw;
}
.loader {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.loader div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #fff;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loader div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.loader div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.loader div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.loader div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
.content-box {
@include window-style-modal();
flex-direction: column;