* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
@import '../custom.less';
@import './vars.less';
@user-head-prefix-cls: ~'@{css-prefix}user-head';
.@{user-head-prefix-cls} {
.inject-UserHead-vars();
display: inline-block;
position: relative;
&__portrait {
overflow: hidden;
width: var(--tv-UserHead-head-normal-size);
height: var(--tv-UserHead-head-normal-size);
line-height: var(--tv-UserHead-head-normal-size);
text-align: center;
border-radius: var(--tv-UserHead-head-border-radius);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
background-color: var(--tv-UserHead-head-bg-color, #bbbbbb);
&.round {
border-radius: 50%;
}
&.min {
width: var(--tv-UserHead-head-small-size);
height: var(--tv-UserHead-head-small-size);
line-height: var(--tv-UserHead-head-small-size);
}
&.icon {
font-size: var(--tv-UserHead-head-icon-size-normal);
&.min {
font-size: var(--tv-UserHead-head-icon-small-size);
}
svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
&.label {
> span {
overflow: hidden;
width: calc(~'100% - 6px');
display: block;
margin: 0 3px;
}
}
}
&__message {
position: absolute;
top: -9px;
left: 63px;
height: 18px;
line-height: 16px;
min-width: 18px;
width: auto;
border-radius: 9px;
background: red;
color: #fff;
text-align: center;
padding: 0 2px;
border: 2px solid #fff;
font-size: var(--tv-UserHead-head-font-size);
word-break: initial;
&.round {
top: 0;
left: 54px;
}
&.min {
top: -9px;
left: 21px;
}
&.basic {
top: -4px;
left: 68px;
height: 8px;
width: 8px;
min-width: 8px;
line-height: 0;
border-radius: 4px;
&.round {
top: 10px;
left: 64px;
}
&.min {
top: -4px;
left: 26px;
&.round {
top: 0;
}
}
}
}
}