Summary Files Commits Branches @commit @diff @stats
path: root / src / avatars.less
diff options
context:
space:
mode:
Commit33c89ed8fd6535dc21d0132ef61fc560099279f7 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-19 17:55:09 +0800
Committer
 GitHub <noreply@github.com>
2017-03-19 17:55:09 +0800
Filesb854b458761aead1e009db59e503e36e7862110f /src/avatars.less
Spectre-Dark-Gruvbox-0.2.10.tar
Spectre-Dark-Gruvbox-0.2.10.tar.gz
Spectre-Dark-Gruvbox-0.2.10.zip
Parentee309ce40db4bc0fb5b4ccc076a054dd9574ac5f (diff)
Parent1d63c12eebb44b76947726dfeee98919627c9d9b (diff)
Merge pull request #170 from picturepan2/feature/0.2.10 v0.2.10
Feature/0.2.10
1 files changed, 6 insertions, 13 deletions
-rw-r--r--src/avatars.less19
diff --git a/src/avatars.less b/src/avatars.less
index 88933b6..a159573 100644
--- a/src/avatars.less
+++ b/src/avatars.less
@@ -2,9 +2,9 @@
.avatar {
background: @primary-color;
border-radius: 50%;
- color: fade(@light-color, 75%);
+ color: fade(@light-color, 85%);
display: inline-block;
- font-size: 1.4rem;
+ font-size: @font-size;
font-weight: 300;
height: 3.2rem;
line-height: 1;
@@ -14,7 +14,7 @@
width: 3.2rem;
&.avatar-xs {
- font-size: 1.4rem;
+ font-size: .8rem;
height: 1.6rem;
width: 1.6rem;
}
@@ -39,11 +39,11 @@
height: 100%;
position: relative;
width: 100%;
- z-index: 99;
+ z-index: @zindex-1;
}
.avatar-icon {
- background: @light-bg-color;
+ background: @bg-color-light;
bottom: -.2em;
height: 50%;
padding: 5%;
@@ -59,13 +59,6 @@
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
- vertical-align: middle;
- z-index: 1;
- }
-
- &.avatar-xs {
- &[data-initial]::before {
- transform: translate(-50%, -50%) scale(.5);
- }
+ z-index: @zindex-0;
}
}