userAvatar.styl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. object-fit: cover;
  28. object-position: center;
  29. height: 100%
  30. width: @height
  31. .member-presence-status
  32. background-color: #b3b3b3
  33. border: 1px solid #fff
  34. border-radius: 50%
  35. height: 7px
  36. width: @height
  37. position: absolute
  38. right: -1px
  39. bottom: -1px
  40. border: 1px solid white
  41. z-index: 15
  42. &.active
  43. background: #64c464
  44. border-color: #daf1da
  45. &.idle
  46. background: #e4e467
  47. border-color: #f7f7d4
  48. &.disconnected
  49. background: #bdbdbd
  50. border-color: #ededed
  51. &.pending
  52. background: #e44242
  53. border-color: #f1dada
  54. .edit-avatar
  55. position: absolute
  56. top: 0
  57. height: 100%
  58. width: 100%
  59. border-radius: avatar-radius
  60. background: black
  61. display: flex
  62. align-items: center
  63. justify-content: center
  64. opacity: 0
  65. &:hover
  66. opacity: 0.6
  67. i.fa-pencil
  68. color: white
  69. &.add-member
  70. display: flex
  71. align-items: center
  72. justify-content: center
  73. box-shadow: 0 0 0 2px darken(white, 25%) inset
  74. &:hover, &.is-active
  75. box-shadow: 0 0 0 2px darken(white, 60%) inset
  76. .atMention
  77. background: #dbdbdb
  78. border-radius: 3px
  79. padding: 1px 4px
  80. margin: -1px 0
  81. display: inline-block
  82. &.me
  83. background: #cfdfe8
  84. .mini-profile-info
  85. margin-top: 10px
  86. .info
  87. padding-top: 5px
  88. h3, p
  89. margin-bottom: 0
  90. padding-left: 0
  91. p
  92. padding-top: 0
  93. .member
  94. width: 50px
  95. height: @width
  96. margin-right: 10px