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

46 lines
1.2 KiB
Plaintext
Raw Normal View History

@import (reference) "./tools.less";
2018-07-14 13:15:23 +00:00
.avatar_main(@width) {
--LessLoader_require: LessLoader_currentFile();
2017-09-25 09:48:42 +00:00
2018-07-14 13:15:23 +00:00
--avatar-width: @width;
--avatar-font-size: @width / 1.2;
}
& {
2017-09-04 13:09:54 +00:00
&.cp-avatar {
overflow: hidden;
2018-07-14 13:15:23 +00:00
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
}
2017-09-04 13:09:54 +00:00
}
}
}