1
0
Fork 0
peertube/client/src/app/shared/shared-actor-image/actor-avatar.component.scss

87 lines
1.2 KiB
SCSS

@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;
}
}