Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
diff options
context:
space:
mode:
Commitc9e625c9dd8f1628c58b10bb165961eae068002f (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-15 16:30:05 +0800
Committer
 GitHub <noreply@github.com>
2017-08-15 16:30:05 +0800
Files9031e1df36c23e49deecad79df2a272b0d076270 /src/badges.less
Spectre-Dark-Gruvbox-0.2.15.tar
Spectre-Dark-Gruvbox-0.2.15.tar.gz
Spectre-Dark-Gruvbox-0.2.15.zip
Parent846353cb40512404c5b8d27084a6fbe7b4a47d23 (diff)
Parentd6b5a13424cb56db116483f79d6253205e26757c (diff)
Merge pull request #249 from picturepan2/0.2.15 v0.2.15
0.2.15
1 files changed, 12 insertions, 12 deletions
-rw-r--r--src/badges.less24
diff --git a/src/badges.less b/src/badges.less
index 677cc9b..c62df9d 100644
--- a/src/badges.less
+++ b/src/badges.less
@@ -8,21 +8,21 @@
&::after {
background: @primary-color;
background-clip: padding-box;
- border-radius: 1rem;
- box-shadow: 0 0 0 .2rem @bg-color-light;
+ border-radius: .5rem;
+ box-shadow: 0 0 0 .1rem @bg-color-light;
color: @light-color;
content: attr(data-badge);
display: inline-block;
- transform: translate(-.2rem, -1rem);
+ transform: translate(-.1rem, -.5rem);
}
}
&[data-badge] {
&::after {
font-size: @font-size-sm;
- height: 1.8rem;
+ height: 18px;
line-height: 1;
- min-width: 1.8rem;
- padding: .3rem .5rem;
+ min-width: 18px;
+ padding: 3px 5px;
text-align: center;
white-space: nowrap;
}
@@ -30,10 +30,10 @@
&:not([data-badge]),
&[data-badge=''] {
&::after {
- height: .6rem;
- min-width: .6rem;
+ height: 6px;
+ min-width: 6px;
padding: 0;
- width: .6rem;
+ width: 6px;
}
}
@@ -61,10 +61,10 @@
&.avatar-xs {
&::after {
content: "";
- height: .8rem;
- min-width: .8rem;
+ height: @unit-2;
+ min-width: @unit-2;
padding: 0;
- width: .8rem;
+ width: @unit-2;
}
}
}