UNPKG

ygd

Version:

An enterprise-class UI design language and React-based implementation

72 lines (71 loc) 1.4 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ .yg-avatar { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline-block; overflow: hidden; color: #fff; white-space: nowrap; text-align: center; vertical-align: middle; background: #ccc; width: 32px; height: 32px; line-height: 32px; border-radius: 50%; } .yg-avatar-image { background: transparent; } .yg-avatar-string { position: absolute; left: 50%; transform-origin: 0 center; } .yg-avatar.yg-avatar-icon { font-size: 18px; } .yg-avatar-lg { width: 40px; height: 40px; line-height: 40px; border-radius: 50%; } .yg-avatar-lg-string { position: absolute; left: 50%; transform-origin: 0 center; } .yg-avatar-lg.yg-avatar-icon { font-size: 24px; } .yg-avatar-sm { width: 24px; height: 24px; line-height: 24px; border-radius: 50%; } .yg-avatar-sm-string { position: absolute; left: 50%; transform-origin: 0 center; } .yg-avatar-sm.yg-avatar-icon { font-size: 14px; } .yg-avatar-square { border-radius: 2px; } .yg-avatar > img { display: block; width: 100%; height: 100%; }