mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 04:28:07 +01:00
(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.
This commit is contained in:
parent
0b6c229b6c
commit
765b0168ea
6 changed files with 91 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue