From 765b0168eaaeb28550dfb698de0b6cec9f9c2113 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 10 Jun 2015 17:10:32 +0200 Subject: (Re-)implement default avatar using user initials We use a embedded svg to scale the initials text to its container size. The user is free to overwrite its initials in the profile form. --- client/components/users/userAvatar.styl | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'client/components/users/userAvatar.styl') diff --git a/client/components/users/userAvatar.styl b/client/components/users/userAvatar.styl index 1f249fcd..ed583288 100644 --- a/client/components/users/userAvatar.styl +++ b/client/components/users/userAvatar.styl @@ -5,11 +5,11 @@ avatar-radius = 50% .member border-radius: 3px display: block + position: relative float: left height: 30px width: @height margin: 0 4px 4px 0 - position: relative cursor: pointer user-select: none z-index: 1 @@ -17,26 +17,20 @@ avatar-radius = 50% border-radius: avatar-radius .avatar - height: 100% - width: @height - display: flex - align-items: center - justify-content: center overflow: hidden border-radius: avatar-radius - .avatar-initials - font-weight: bold - max-width: 100% - max-height: 100% - font-size: 14px - line-height: 200% + &.avatar-initials + height: 70% + width: @height + padding: 15% background-color: #dbdbdb color: #444444 + position: absolute - .avatar-image - max-width: 100% - max-height: 100% + &.avatar-image + height: 100% + width: @height .member-presence-status background-color: #b3b3b3 -- cgit v1.2.3-1-g7c22