Merge pull request #97 from ammendonca/KEYCLOAK-146

KEYCLOAK-146: Added Loading screen while waiting for data.
This commit is contained in:
stianst 2013-11-11 07:18:10 -08:00
commit 70f3ffa40c
4 changed files with 39 additions and 8 deletions

View file

@ -55,9 +55,19 @@ body {
color: #fff;
font-weight: bold;
}
.loading-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1031;
background-color: #FFFFFF;
opacity: 0.75;
}
.loading {
position: fixed;
z-index: 1000;
z-index: 1032;
top: 50%;
left: 50%;
width: 6em;
@ -75,10 +85,14 @@ body {
border-radius: 0.4em;
}
.loading span {
font-size: 1.1em;
background: url(img/loader.gif) no-repeat center top;
font-size: 1.2em;
color: #666;
display: inline-block;
padding-top: 0.36363636363636em;
margin-top: -2.27272727272727em;
margin-left: -2.27272727272727em;
padding-top: 2.90909090909091em;
}
/* Header */
.header.rcue {

View file

@ -74,9 +74,20 @@ body {
}
}
.loading-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1031;
background-color: #FFFFFF;
opacity: 0.75;
}
.loading {
position: fixed;
z-index: 1000;
z-index: 1032;
top: 50%;
left: 50%;
width: 6em;
@ -95,10 +106,14 @@ body {
}
span {
font-size: 1.1em;
background: url(img/loader.gif) no-repeat center top;
font-size: 1.2em;
color: #666;
display: inline-block;
padding-top: 0.36363636363636em;
margin-top: -2.27272727272727em;
margin-left: -2.27272727272727em;
padding-top: 2.90909090909091em;
}
}

View file

@ -73,8 +73,10 @@
</button>
</div>
<div id="loading">
<i class="icon-spinner icon-spin"></i> Loading...
<div id="loading" class="loading-backdrop">
<div class="loading">
<span>Loading...</span>
</div>
</div>
</div>

View file

@ -1,5 +1,5 @@
<ul data-ng-hide="createRealm">
<li data-ng-class="(!path[2] || path[1] == 'role' || path[2] == 'roles' || path[2] == 'token-settings' || path[2] == 'social-settings' || path[2] == 'required-credentials') && 'active'"><a href="#/realms/{{realm.id}}">Settings</a></li>
<li data-ng-class="(!path[2] || path[1] == 'role' || path[2] == 'roles' || path[2] == 'token-settings' || path[2] == 'social-settings' || path[2] == 'required-credentials' || path[2] == 'smtp-settings') && 'active'"><a href="#/realms/{{realm.id}}">Settings</a></li>
<li data-ng-class="(path[2] == 'users' || path[1] == 'user') && 'active'"><a href="#/realms/{{realm.id}}/users">Users</a>
</li>
<li data-ng-class="(path[2] == 'applications' || path[1] == 'application') && 'active'"><a href="#/realms/{{realm.id}}/applications">Applications</a></li>