Summary Files Commits Branches @commit @diff @stats
path: root / src / badges.less
diff options
context:
space:
mode:
1 files changed, 10 insertions, 8 deletions
-rw-r--r--src/badges.less18
diff --git a/src/badges.less b/src/badges.less
index 7669efe..c9f571e 100644
--- a/src/badges.less
+++ b/src/badges.less
@@ -3,8 +3,7 @@
position: relative;
&[data-badge],
- &:not([data-badge]),
- &[data-badge=''] {
+ &:not([data-badge]) {
&::after {
background: @core-color;
background-clip: padding-box;
@@ -13,16 +12,19 @@
color: @core-light-color;
content: attr(data-badge);
display: inline-block;
- transform: translate(-.2rem, -.8rem);
+ position: absolute;
+ right: 0;
+ top: 0;
+ transform: translate(100%, -50%);
}
}
&[data-badge] {
&::after {
- font-size: 1.1rem;
- height: 1.8rem;
- line-height: 1.2rem;
- min-width: 1.8rem;
- padding: .2rem .4rem;
+ font-size: 1.2rem;
+ height: 2rem;
+ line-height: 1.4rem;
+ min-width: 2rem;
+ padding: .2rem .5rem;
text-align: center;
white-space: nowrap;
}