]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+videos/+video-watch/video-avatar-channel.component.scss
Refactor actor avatar display
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-watch / video-avatar-channel.component.scss
CommitLineData
dd4f25ee
RK
1@import '_mixins';
2
3.wrapper {
c2caa99b
RK
4 $avatar-size: 35px;
5
6 width: $avatar-size;
7 height: $avatar-size;
dd4f25ee
RK
8 position: relative;
9 margin-right: 5px;
adcf9212 10 margin-bottom: 5px;
dd4f25ee 11
c2caa99b
RK
12 &.avatar-sm {
13 width: 28px;
14 height: 28px;
adcf9212 15 margin-bottom: 3px;
c2caa99b
RK
16 }
17
dd4f25ee
RK
18 a {
19 @include disable-outline;
20 }
21
22 a img {
23 height: 100%;
24 object-fit: cover;
25 position: absolute;
26 top:50%;
27 left:50%;
deb8b9cd 28 transform: translate(-50%,-50%);
733dbc53 29 border-radius: 5px;
deb8b9cd
C
30
31 &:not(.channel-avatar) {
32 border-radius: 50%;
33 }
dd4f25ee
RK
34 }
35
36 a:nth-of-type(2) img {
37 height: 60%;
38 width: 60%;
e66883b3 39 border: 2px solid pvar(--mainBackgroundColor);
dd4f25ee
RK
40 transform: translateX(15%);
41 position: relative;
e66883b3 42 background-color: pvar(--mainBackgroundColor);
dd4f25ee
RK
43 }
44}