From 0c0fd3a3bc7b7546c5a1ba37b99de3bb5482eeb1 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 27 Feb 2017 15:00:08 +0800 Subject: CHG: Fixed a number of bugs --- src/avatars.less | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/avatars.less') diff --git a/src/avatars.less b/src/avatars.less index 06c065e..801e1b4 100644 --- a/src/avatars.less +++ b/src/avatars.less @@ -13,12 +13,12 @@ width: 3.2rem; &.avatar-xs { - font-size: .8rem; + font-size: 1.2rem; height: 1.6rem; width: 1.6rem; } &.avatar-sm { - font-size: 1rem; + font-size: 1.2rem; height: 2.4rem; width: 2.4rem; } @@ -28,7 +28,7 @@ width: 4.8rem; } &.avatar-xl { - font-size: 2.6rem; + font-size: 2.8rem; height: 6.4rem; width: 6.4rem; } @@ -51,13 +51,19 @@ width: 50%; } - &[data-initial]::after { + &[data-initial]::before { color: currentColor; content: attr(data-initial); left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); - z-index: 0; + z-index: 1; + } + + &.avatar-xs { + &[data-initial]::before { + transform: translate(-50%, -50%) scale(.65); + } } } -- cgit v1.3.1-26-gb76a