hubl/src/styles/hubl-framework/commons/user-thumb.scss

99 lines
1.8 KiB
SCSS

.user-thumb {
display: block;
position: relative;
box-sizing: border-box;
div {
display: flex;
align-items: center;
.user-thumb-avatar {
background: #E4E8ED;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
height: 50px;
width: 50px;
margin-right: 15px;
border-radius: 50%;
overflow: hidden;
&.user-thumb-avatar__size {
height: 44px;
width: 44px;
}
>img,
object {
object-fit: cover;
object-position: center;
}
>img {
max-height: 100%;
max-width: 100%;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
}
>object {
max-height: 40%;
max-width: 40%;
}
}
.user-thumb-content {
flex: 1 1 auto;
.user-thumb-content__name-and-icon {
display: flex;
justify-content: flex-start;
align-items: center;
.name {
font-size: 14px;
font-weight: 600;
flex: 0 1 auto;
letter-spacing: 0.38px;
}
.icon {
margin-left: 10px;
cursor: pointer;
&::before {
font-size: 15px;
}
&.top-align::before {
vertical-align: super;
margin-top: -10px;
margin-right: 5px;
}
}
.tag {
margin-top: -19px;
}
}
.user-thumb-content__sub-text{
display: flex;
&.username {
font-size: 12px;
&::before {
content: "@";
}
}
&.community {
.icon::before {
font-size: 15px;
margin-top: 1px;
}
}
}
}
}
}