aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-actor-image/actor-avatar.component.scss
blob: 68bf74553c531910946effebdee7617c61b85bc7 (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
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
@use '_variables' as *;
@use '_mixins' as *;

.avatar {
  --avatarSize: 100%;
  --initialFontSize: 22px;

  width: var(--avatarSize);
  height: var(--avatarSize);
  min-width: var(--avatarSize);
  min-height: var(--avatarSize);

  &.account {
    object-fit: cover;
    border-radius: 50%;
  }

  &.channel {
    border-radius: 5px;
  }
}

$sizes: '18', '25', '28', '32', '34', '35', '36', '40', '48', '75', '80', '100', '120';

@each $size in $sizes {
  .avatar-#{$size} {
    --avatarSize: #{$size}px;
  }  
}

.avatar-18 {
  --initialFontSize: 13px;
}

.avatar-100 {
  --initialFontSize: 40px;
}

.avatar-120 {
  --initialFontSize: 46px;
}

a:hover {
  text-decoration: none;
}

.initial {
  background-color: #3C2109;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--initialFontSize);

  &.blue {
    background-color: #009FD4;
  }

  &.green {
    background-color: #00AA55;
  }

  &.purple {
    background-color: #B381B3;
  }

  &.gray {
    background-color: #939393;
  }

  &.yellow {
    background-color: #AA8F00;
  }

  &.orange {
    background-color: #D47500;
  }

  &.red {
    background-color: #E76E3C;
  }

  &.dark-blue {
    background-color: #0A3055;
  }
}