userAvatar.styl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @import 'nib'
  2. avatar-radius = 50%
  3. .member
  4. border-radius: 3px
  5. display: block
  6. position: relative
  7. float: left
  8. height: 30px
  9. width: @height
  10. margin: 0 4px 4px 0
  11. cursor: pointer
  12. user-select: none
  13. z-index: 1
  14. text-decoration: none
  15. border-radius: avatar-radius
  16. .avatar
  17. overflow: hidden
  18. border-radius: avatar-radius
  19. &.avatar-initials
  20. height: 70%
  21. width: @height
  22. padding: 15%
  23. background-color: #dbdbdb
  24. color: #444444
  25. position: absolute
  26. &.avatar-image
  27. height: 100%
  28. width: @height
  29. .member-presence-status
  30. background-color: #b3b3b3
  31. border: 1px solid #fff
  32. border-radius: 50%
  33. height: 7px
  34. width: @height
  35. position: absolute
  36. right: -1px
  37. bottom: -1px
  38. border: 1px solid white
  39. z-index: 15
  40. &.active
  41. background: #64c464
  42. border-color: #daf1da
  43. &.idle
  44. background: #e4e467
  45. border-color: #f7f7d4
  46. &.disconnected
  47. background: #bdbdbd
  48. border-color: #ededed
  49. .edit-avatar
  50. position: absolute
  51. top: 0
  52. height: 100%
  53. width: 100%
  54. border-radius: avatar-radius
  55. background: black
  56. display: flex
  57. align-items: center
  58. justify-content: center
  59. opacity: 0
  60. &:hover
  61. opacity: 0.6
  62. i.fa-pencil
  63. color: white
  64. &.add-member
  65. display: flex
  66. align-items: center
  67. justify-content: center
  68. box-shadow: 0 0 0 2px darken(white, 25%) inset
  69. &:hover, &.is-active
  70. box-shadow: 0 0 0 2px darken(white, 60%) inset
  71. .atMention
  72. background: #dbdbdb
  73. border-radius: 3px
  74. padding: 1px 4px
  75. margin: -1px 0
  76. display: inline-block
  77. &.me
  78. background: #cfdfe8
  79. .mini-profile-info
  80. margin-top: 10px
  81. .info
  82. padding-top: 5px
  83. h3, p
  84. margin-bottom: 0
  85. padding-left: 0
  86. p
  87. padding-top: 0
  88. .member
  89. width: 50px
  90. height: @width
  91. margin-right: 10px