UNPKG

@innovaccer/design-system

Version:

React components library project for Innovaccer Design System

180 lines (145 loc) 3.05 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--micro { height: 20px; width: 20px; } .Avatar--noInitials { cursor: default; } .Avatar--disabled { cursor: not-allowed; } .Avatar--disabled::after { opacity: var(--opacity-16); top: 0; right: 0; bottom: 0; left: 0; position: absolute; pointer-events: none; content: ''; background-color: var(--white); } .Avatar--primary { background: var(--primary-300); } .Avatar--secondary { background: var(--secondary-light); } .Avatar--success { background: var(--success-300); } .Avatar--alert { background: var(--alert-300); } .Avatar--warning { background: var(--warning-300); } .Avatar--accent1 { background: var(--accent1-300); } .Avatar--accent2 { background: var(--accent2-300); } .Avatar--accent3 { background: var(--accent3-300); } .Avatar--accent4 { background: var(--accent4-300); } .Avatar-content--tiny { line-height: var(--font-height-s) !important; font-size: 10px !important; } .Avatar-content--micro { line-height: var(--font-height-s) !important; font-size: 10px !important; } .Avatar-content--primary { color: var(--primary-darker) !important; } .Avatar-content--secondary { color: var(--inverse) !important; } .Avatar-content--success { color: var(--success-darker) !important; } .Avatar-content--alert { color: var(--alert-darker) !important; } .Avatar-content--warning { color: var(--warning-darker) !important; } .Avatar-content--accent1 { color: var(--accent1-darker) !important; } .Avatar-content--accent2 { color: var(--accent2-darker) !important; } .Avatar-content--accent3 { color: var(--accent3-darker) !important; } .Avatar-content--accent4 { color: var(--accent4-darker) !important; } .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; }