cryptpad/customize.dist/src/less2/include/avatar.less

41 lines
933 B
Plaintext
Raw Normal View History

@import (reference) "./tools.less";
2017-09-25 09:48:42 +00:00
2017-09-04 13:09:54 +00:00
.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 {
2017-09-25 09:48:42 +00:00
.tools_unselectable();
2017-09-04 13:09:54 +00:00
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
}
}
}
}