Added fallbacks for avatar.less

pull/1/head
Caleb James DeLisle 6 years ago
parent 38a1e5e39f
commit 83ec00d948

@ -21,8 +21,13 @@
align-items: center; align-items: center;
.cp-avatar-default, media-tag { .cp-avatar-default, media-tag {
display: inline-flex; display: inline-flex;
width: @avatar-width;
width: var(--avatar-width); width: var(--avatar-width);
height: @avatar-height;
height: var(--avatar-width); height: var(--avatar-width);
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 4px; border-radius: 4px;
@ -33,12 +38,20 @@
.tools_unselectable(); .tools_unselectable();
background: white; background: white;
color: black; color: black;
font-size: @avatar-font-size;
font-size: var(--avatar-font-size); font-size: var(--avatar-font-size);
} }
media-tag { media-tag {
min-height: @avatar-width;
min-height: var(--avatar-width); min-height: var(--avatar-width);
min-width: @avatar-width;
min-width: var(--avatar-width); min-width: var(--avatar-width);
max-height: @avatar-width;
max-height: var(--avatar-width); max-height: var(--avatar-width);
max-width: @avatar-width;
max-width: var(--avatar-width); max-width: var(--avatar-width);
img { img {
min-width: 100%; min-width: 100%;

Loading…
Cancel
Save