session-desktop/stylesheets/_avatar.scss

96 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2020-08-26 02:48:35 +02:00
// Module: Avatar
.module-avatar {
position: relative;
vertical-align: middle;
display: inline-block;
border-radius: 50%;
flex-shrink: 0;
2020-08-26 02:48:35 +02:00
img {
object-fit: cover;
border-radius: 50%;
2022-10-11 06:32:34 +02:00
border: 1px solid var(--avatar-border-color);
2020-08-26 02:48:35 +02:00
}
}
.module-avatar__icon-closed .module-avatar--28,
2020-08-26 02:48:35 +02:00
.module-avatar--28 {
height: 28px;
width: 28px;
img {
height: 28px;
width: 28px;
}
}
.module-avatar__icon-closed .module-avatar--36,
2020-08-26 02:48:35 +02:00
.module-avatar--36 {
height: 36px;
width: 36px;
img {
height: 36px;
width: 36px;
}
}
.module-avatar__icon-closed .module-avatar--48,
2020-08-26 02:48:35 +02:00
.module-avatar--48 {
height: 48px;
width: 48px;
img {
height: 48px;
width: 48px;
}
}
.module-avatar__icon-closed .module-avatar--64,
.module-avatar--64 {
height: 64px;
width: 64px;
2020-08-26 02:48:35 +02:00
img {
height: 64px;
width: 64px;
}
2020-08-26 02:48:35 +02:00
}
.module-avatar__icon-closed .module-avatar--80,
2020-08-26 02:48:35 +02:00
.module-avatar--80 {
height: 80px;
width: 80px;
img {
height: 80px;
width: 80px;
}
}
.module-avatar--300 {
height: 300px;
width: 300px;
img {
height: 300px;
width: 300px;
}
}
.module-avatar__icon-closed {
.module-avatar:last-child {
position: absolute;
right: 0px;
bottom: 0px;
2020-08-26 02:48:35 +02:00
}
2020-08-26 08:12:07 +02:00
}
.module-avatar-clickable {
transition: var(--default-duration);
cursor: pointer;
&:hover {
filter: grayscale(0.7);
}
}