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