UNPKG

@innovaccer/design-system

Version:

React components library project for Innovaccer Design System

140 lines (115 loc) 2.33 kB
/* Avatar */ .Avatar { display: flex; flex-grow: 0; flex-shrink: 0; justify-content: center; align-items: center; overflow: hidden; text-transform: uppercase; border-radius: var(--border-radius-full); cursor: default; position: relative; } .Avatar--default:focus, .Avatar--default:focus-visible { outline: 3px solid var(--primary-shadow); outline-offset: 3px; } .Avatar-wrapper--square { padding: var(--spacing-2-5); box-sizing: border-box; } .Avatar--square { width: 100%; height: 100%; border-radius: var(--border-radius-10); } .Avatar--regular { height: var(--spacing-80); width: var(--spacing-80); } .Avatar--tiny { height: var(--spacing-60); width: var(--spacing-60); } .Avatar--noInitials { cursor: default; } .Avatar--disabled { cursor: not-allowed; } .Avatar--disabled::after { opacity: var(--opacity-20); top: 0; right: 0; bottom: 0; left: 0; position: absolute; pointer-events: none; content: ''; background-color: var(--white); } .Avatar--primary { background: var(--primary); } .Avatar--secondary { background: var(--secondary-light); } .Avatar--success { background: var(--success); } .Avatar--alert { background: var(--alert); } .Avatar--warning { background: var(--warning); } .Avatar--accent1 { background: var(--accent1); } .Avatar--accent2 { background: var(--accent2); } .Avatar--accent3 { background: var(--accent3); } .Avatar--accent4 { background: var(--accent4); } .Avatar-content--tiny { line-height: var(--font-height-s) !important; font-size: 10px !important; } .Avatar-content { color: var(--inverse) !important; opacity: var(--opacity-20); mix-blend-mode: multiply; } .Avatar-presence { position: absolute; border-radius: var(--border-radius-full); width: var(--spacing-20); height: var(--spacing-20); right: 0; bottom: 0; } .Avatar-presence--active { background: var(--success); } .Avatar-presence--away { background: var(--secondary-dark); } .Avatar-status { top: calc(-1 * var(--spacing-05)); right: calc(-1 * var(--spacing-05)); width: var(--spacing-30); height: var(--spacing-30); border-radius: var(--border-radius-full); display: flex; align-items: center; justify-content: center; position: absolute; cursor: pointer; overflow: hidden; }