From 33508d2823fba4fc8715bfa935121491fa512562 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 4 Apr 2016 15:40:54 +0800 Subject: update avatars code and add avatar child style --- src/avatars.less | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src') diff --git a/src/avatars.less b/src/avatars.less index 1576698..fc9ce12 100644 --- a/src/avatars.less +++ b/src/avatars.less @@ -9,6 +9,7 @@ border-radius: 50%; vertical-align: middle; position: relative; + overflow: hidden; &::after { content: attr(data-initial); @@ -39,4 +40,28 @@ height: 6.4rem; font-size: 2.6rem; } +} +.avatar-container { + display: inline-block; + position: relative; + + .avatar-icon { + width: 46%; + height: 46%; + padding: 3%; + background-color: #fff; + position: absolute; + right: -6%; + bottom: -6%; + } +} +.avatar-status { + &::after { + content: ''; + display: block; + width: 1rem; + height: 1rem; + border-radius: 50%; + background-color: @control-color-success; + } } \ No newline at end of file -- cgit v1.3.1-23-gd82d