@syncfusion/ej2-layouts
Version:
A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.
149 lines (137 loc) • 2.25 kB
CSS
/* Font Family */
/* Font Sizes */
/* Radius */
/* 1px */
/* 2px */
/* 3px */
/* 4px */
/* 5px */
/* 6px */
/* 7px */
/* 8px */
/* 9px */
/* 10px */
/* 11px */
/* 12px */
/* 13px */
/* 14px */
/* 15px */
/* 16px */
/* 17px */
/* 18px */
/* 19px */
/* 20px */
/* 21px */
/* 22px */
/* 23px */
/* 24px */
/* 25px */
/* 26px */
/* 27px */
/* 28px */
/* 29px */
/* 30px */
/* 31px */
/* 32px */
/* 33px */
/* 34px */
/* 35px */
/* 36px */
/* 37px */
/* 38px */
/* 39px */
/* 40px */
/* 41px */
/* 42px */
/* 43px */
/* 44px */
/* 45px */
/* 46px */
/* 47px */
/* 48px */
/* 49px */
/* 50px */
/* 5em */
/* 65% */
/* border */
/* 0px */
/* 1px */
/* 1.5px */
/* 2px */
/* 3px */
/* 4px */
/* 5px */
/* 6px */
/* 7px */
/* 8px */
/* 9px */
/* 10px */
/* 11px */
/* 12px */
/* 13px */
/* 14px */
/* 15px */
/* 16px */
.e-avatar {
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background-color: var(--color-sf-content-bg-color-alt3);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: calc(var(--e-radius) * 0.25);
color: var(--color-sf-content-text-color-alt2);
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
font-family: var(--e-font-family);
font-size: 14px;
font-weight: 400;
height: 40px;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
position: relative;
width: 40px;
}
.e-avatar:has(:not(img)) {
border: 1px solid var(--color-sf-dialog-border);
}
.e-avatar img {
height: 100%;
width: auto;
}
.e-avatar.e-avatar-circle {
border-radius: 50%;
}
.e-avatar.e-avatar-circle.e-avatar-large, .e-avatar.e-avatar-circle.e-avatar-xlarge {
border-radius: 50%;
}
.e-avatar.e-avatar-xsmall {
font-size: 14px;
height: 24px;
width: 24px;
line-height: 16px;
}
.e-avatar.e-avatar-small {
font-size: 16px;
height: 32px;
width: 32px;
line-height: 18px;
}
.e-avatar.e-avatar-large {
font-size: 20px;
height: 48px;
width: 48px;
line-height: 28px;
}
.e-avatar.e-avatar-xlarge {
font-size: 22px;
height: 56px;
width: 56px;
line-height: 28px;
}