You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
45 lines
1.2 KiB
@import (reference) "./tools.less";
|
|
.avatar_main(@width) {
|
|
--LessLoader_require: LessLoader_currentFile();
|
|
|
|
--avatar-width: @width;
|
|
--avatar-font-size: @width / 1.2;
|
|
}
|
|
& {
|
|
&.cp-avatar {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
.cp-avatar-default, media-tag {
|
|
display: inline-flex;
|
|
width: var(--avatar-width);
|
|
height: var(--avatar-width);
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
box-sizing: content-box;
|
|
}
|
|
.cp-avatar-default {
|
|
.tools_unselectable();
|
|
background: white;
|
|
color: black;
|
|
font-size: var(--avatar-font-size);
|
|
}
|
|
media-tag {
|
|
min-height: var(--avatar-width);
|
|
min-width: var(--avatar-width);
|
|
max-height: var(--avatar-width);
|
|
max-width: var(--avatar-width);
|
|
img {
|
|
min-width: 100%;
|
|
min-height: 100%;
|
|
max-width: none;
|
|
max-height: none; // To override 'media-tag img' in slide.less
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|