summaryrefslogtreecommitdiffstats
path: root/client/components/users/userAvatar.styl
blob: 010311b63e97c572f36fabb6e84192902f0ede13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import 'nib'

avatar-radius = 50%

.member
  border-radius: 3px
  display: block
  position: relative
  float: left
  height: 30px
  width: @height
  margin: 0 4px 4px 0
  cursor: pointer
  user-select: none
  z-index: 1
  text-decoration: none
  border-radius: avatar-radius

  .avatar
    overflow: hidden
    border-radius: avatar-radius

    &.avatar-initials
      height: 70%
      width: @height
      padding: 15%
      background-color: #dbdbdb
      color: #444444
      position: absolute

    &.avatar-image
      height: 100%
      width: @height

  .member-presence-status
    background-color: #b3b3b3
    border: 1px solid #fff
    border-radius: 50%
    height: 7px
    width: @height
    position: absolute
    right: -1px
    bottom: -1px
    border: 1px solid white
    z-index: 15

    &.active
      background: #64c464
      border-color: #daf1da

    &.idle
      background: #e4e467
      border-color: #f7f7d4

    &.disconnected
      background: #bdbdbd
      border-color: #ededed

  &.extra-small
    .avatar-initials
      font-size: 9px
      width: 18px
      height: 18px
      line-height: 18px

    .avatar-image
      width: 18px
      height: 18px

  &.small
    width: 30px
    height: 30px

    .avatar-initials
      font-size: 12px
      line-height: 30px

  &.large
    height: 85px
    line-height: 85px
    width: 85px

    .avatar
      width: 85px
      height: 85px

      .avatar-initials
        font-size: 16px
        font-weight: 700
        line-height: 85px
        width: 85px

  &.add-member
    display: flex
    align-items: center
    justify-content: center
    box-shadow: 0 0 0 2px darken(white, 25%) inset

.atMention
  background: #dbdbdb
  border-radius: 3px
  padding: 1px 4px
  margin: -1px 0
  display: inline-block

  &.me
    background: #cfdfe8