@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.
145 lines (135 loc) • 2.19 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: rgba(var(--color-sf-primary-container));
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: calc(var(--e-radius) * 0.25);
color: rgba(var(--color-sf-on-primary-container));
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
font-family: var(--e-font-family);
font-size: 20px;
font-weight: 500;
height: 40px;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
position: relative;
width: 40px;
line-height: 20px;
}
.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: 14px;
}
.e-avatar.e-avatar-small {
font-size: 18px;
height: 32px;
width: 32px;
line-height: 18px;
}
.e-avatar.e-avatar-large {
font-size: 26px;
height: 48px;
width: 48px;
line-height: 26px;
}
.e-avatar.e-avatar-xlarge {
font-size: 30px;
height: 56px;
width: 56px;
line-height: 30px;
}