feat: show spinner when loading sidebar, complements 8ebc7dcc1d

main
Julian Lam 6 years ago
parent 1f5dce7d52
commit 3b6e6db02f

@ -467,3 +467,24 @@ html[data-dir="rtl"] {
text-align: right;
}
}
#mobile-menu:focus i.fa-bars {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
&::before {
font-family: "FontAwesome";
content: "\f110";
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}

@ -1,7 +1,7 @@
<div class="navbar-header">
<button type="button" class="navbar-toggle pull-left" id="mobile-menu">
<span component="notifications/icon" class="notification-icon fa fa-fw fa-bell-o unread-count" data-content="{unreadCount.notification}"></span>
<i class="fa fa-lg fa-bars"></i>
<i class="fa fa-lg fa-fw fa-bars"></i>
</button>
<button type="button" class="navbar-toggle hidden" id="mobile-chats">
<span component="chat/icon" class="notification-icon fa fa-fw fa-comments unread-count" data-content="{unreadCount.chat}"></span>

Loading…
Cancel
Save