aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/channel/avatar.component.scss
blob: 77b90c5790c13180aa1ddcba3978b7ea033991a3 (plain) (blame)
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
@import '_mixins';

.wrapper {
  $avatar-size: 35px;

  width: $avatar-size;
  height: $avatar-size;
  position: relative;
  margin-right: 5px;

  &.avatar-sm {
    width: 28px;
    height: 28px;
  }

  a {
    @include disable-outline;
  }

  a img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    top:50%;
    left:50%;
    border-radius: 50%;
    transform: translate(-50%,-50%)
  }

  a:nth-of-type(2) img {
    height: 60%;
    width: 60%;
    border: 2px solid var(--mainBackgroundColor);
    transform: translateX(15%);
    position: relative;
    background-color: var(--mainBackgroundColor);
  }
}