UNPKG

zarm

Version:

基于 React 的移动端UI库

42 lines (39 loc) 928 B
.za-image { --background: var(--za-image-background, #fafafa); --text-color: var(--za-image-text-color, var(--za-color-text)); --font-size: var(--za-image-font-size, 12px); --radius: var(--za-image-radius, var(--za-radius-lg)); --width: var(--za-image-width, 100%); --height: var(--za-image-height, 100%); position: relative; display: inline-block; width: var(--width); height: var(--height); overflow: hidden; } .za-image--radius { border-radius: var(--radius); } .za-image--circle { border-radius: 50%; } .za-image__img { display: block; width: 100%; height: 100%; } .za-image__loading, .za-image__fallback { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; background: var(--background); color: var(--text-color); font-size: var(--font-size); }