Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
diff options
context:
space:
mode:
1 files changed, 10 insertions, 10 deletions
-rw-r--r--src/badges.less20
diff --git a/src/badges.less b/src/badges.less
index cd4a70d..c18757b 100644
--- a/src/badges.less
+++ b/src/badges.less
@@ -1,21 +1,21 @@
// Badges
.badge {
position: relative;
-
+
&::after {
- content: attr(data-badge);
+ background-color: @core-color;
+ border: .1rem solid #fff;
+ border-radius: 1rem;
color: #fff;
+ content: attr(data-badge);
+ display: inline-block;
font-size: 1.2rem;
- text-align: center;
+ height: 2rem;
line-height: 1.4rem;
- background-color: @core-color;
- display: inline-block;
min-width: 2rem;
- height: 2rem;
padding: .2rem .5rem;
- border: .1rem solid #fff;
- border-radius: 1rem;
- white-space: nowrap;
+ text-align: center;
transform: translate(-.2rem, -.8rem);
+ white-space: nowrap;
}
-} \ No newline at end of file
+}