.GroupDialogAvatar { position: relative; height: 40px; width: 40px; .grouped { position: absolute; &:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); } &:nth-child(2) { bottom: 0; left: 0; } &:nth-child(3) { bottom: 0; right: 0; } } .counter { width: 24px; height: 24px; position: absolute; bottom: 0; right: 0; text-align: center; line-height: 21px; background: #fff; border: 2px solid #fff; box-shadow: inset 0 0 0 2px #000; border-radius: 50%; box-sizing: border-box; font-size: 12px; font-weight: 600; &.hundred { font-size: 7px; line-height: 20px; } } }