UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

110 lines (91 loc) 1.49 kB
/* mixins & extensions */ @keyframes in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes in-down { 0% { opacity: 0; transform: translate3D(0, -5px, 0); } 100% { opacity: 1; transform: translate3D(0, 0, 0); } } @keyframes in-up { 0% { opacity: 0; transform: translate3D(0, 5px, 0); } 100% { opacity: 1; transform: translate3D(0, 0, 0); } } @keyframes in-scale { 0% { opacity: 0; transform: scale3D(0.95, 0.95, 1); } 100% { opacity: 1; transform: scale3D(1, 1, 1); } } /** * Currently only used in Checkbox. */ :root { --calcite-popper-transition: 150ms ease-in-out; } :host([hidden]) { display: none; } :host { display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; overflow: hidden; } :host([scale=s]) { width: 1.5rem; height: 1.5rem; font-size: var(--calcite-font-size--3); } :host([scale=m]) { width: 2rem; height: 2rem; font-size: var(--calcite-font-size--2); } :host([scale=l]) { width: 2.75rem; height: 2.75rem; font-size: var(--calcite-font-size-0); } .icon { display: flex; } .background { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; } .initials { font-weight: var(--calcite-font-weight-bold); text-transform: uppercase; color: var(--calcite-ui-text-3); } .thumbnail { width: 100%; height: 100%; border-radius: 50%; }