Animate the user notification and make it red
This commit is contained in:
parent
4b25d2458b
commit
a8ebdc79c4
2 changed files with 44 additions and 2 deletions
|
@ -2,6 +2,48 @@
|
||||||
font-family: 'Droid Sans', sans-serif;
|
font-family: 'Droid Sans', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-notification {
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-notification.notification-animated {
|
||||||
|
width: 21px;
|
||||||
|
|
||||||
|
transform: scale(0);
|
||||||
|
-moz-transform: scale(0);
|
||||||
|
-webkit-transform: scale(0);
|
||||||
|
|
||||||
|
animation: scaleup 500ms 1;
|
||||||
|
animation-timing-function: ease-in-out;
|
||||||
|
animation-fill-mode: forwards;
|
||||||
|
|
||||||
|
-moz-animation: scaleup 500ms 1;
|
||||||
|
-moz-animation-timing-function: ease-in-out;
|
||||||
|
-moz-animation-fill-mode: forwards;
|
||||||
|
|
||||||
|
-webkit-animation: scaleup 500ms 1;
|
||||||
|
-webkit-animation-timing-function: ease-in-out;
|
||||||
|
-webkit-animation-fill-mode: forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-moz-keyframes scaleup {
|
||||||
|
0% { -moz-transform: scale(0); }
|
||||||
|
100% { -moz-transform: scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes scaleup {
|
||||||
|
0% { -webkit-transform: scale(0); }
|
||||||
|
100% { -webkit-transform: scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes scaleup {
|
||||||
|
0% { transform: scale(0); }
|
||||||
|
100% { transform: scale(1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.repo-circle {
|
.repo-circle {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
|
|
|
@ -33,14 +33,14 @@
|
||||||
<a href="javascript:void(0)" class="dropdown-toggle user-dropdown" data-toggle="dropdown">
|
<a href="javascript:void(0)" class="dropdown-toggle user-dropdown" data-toggle="dropdown">
|
||||||
<img src="//www.gravatar.com/avatar/{{ user.gravatar }}?s=32&d=identicon" />
|
<img src="//www.gravatar.com/avatar/{{ user.gravatar }}?s=32&d=identicon" />
|
||||||
{{ user.username }}
|
{{ user.username }}
|
||||||
<span class="badge" ng-show="user.askForPassword">1</span>
|
<span class="badge user-notification notification-animated" ng-show="user.askForPassword">1</span>
|
||||||
<b class="caret"></b>
|
<b class="caret"></b>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li>
|
<li>
|
||||||
<a href="/user/">
|
<a href="/user/">
|
||||||
Account Settings
|
Account Settings
|
||||||
<span class="badge" ng-show="user.askForPassword">1</span>
|
<span class="badge user-notification" ng-show="user.askForPassword">1</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="javascript:void(0)" ng-click="signout()">Sign out</a></li>
|
<li><a href="javascript:void(0)" ng-click="signout()">Sign out</a></li>
|
||||||
|
|
Reference in a new issue