Merge pull request #470 from travis-ci/lp-ui-fixes

UI fixes
This commit is contained in:
Lisa 2016-03-03 18:47:01 +01:00
commit 09637d5e07
3 changed files with 8 additions and 3 deletions

View File

@ -8,14 +8,14 @@ export default Ember.Component.extend({
userInitials: function() {
var name = this.get('name');
var arr = name.split(' ');
var initials;
var initials = '';
if (arr.length >= 2) {
initials = arr[0].split('')[0] + arr[1].split('')[0];
} else {
initials = arr[0].split('')[0];
}
return initials.toUpperCase();
return initials;
}.property('userInitials')
});

View File

@ -2,6 +2,7 @@
vertical-align: middle
display: flex
flex-flow: row-reverse wrap
position: relative
.button
position: relative
z-index: 2
@ -14,11 +15,14 @@
&:hover
background-color: $oxide-blue
.sync-last
position: relative
position: absolute
left: -15em
top: 0
z-index: -1
transition: transform 150ms ease, opacity 250ms ease
transform: translateX(80%)
opacity: 0
background: white
.button:hover ~ .sync-last
transform: translateX(0)
opacity: 1

View File

@ -30,6 +30,7 @@
text-align: center
font-size: 1.4em
line-height: 1.6
text-transform: uppercase
.real-avatar
+absoluteCenter