Summary Files Commits Branches @commit @diff @stats
path: root / src / tabs.less
diff options
context:
space:
mode:
1 files changed, 14 insertions, 7 deletions
-rw-r--r--src/tabs.less21
diff --git a/src/tabs.less b/src/tabs.less
index ea38709..e2d5ad2 100644
--- a/src/tabs.less
+++ b/src/tabs.less
@@ -19,15 +19,12 @@
display: block;
margin-bottom: -.1rem;
margin-top: 0;
- padding: .6rem .8rem;
+ padding: .6rem 1.2rem;
text-decoration: none;
&:focus,
&:hover {
color: @core-link-color;
}
- &.badge {
- padding-right: 0;
- }
}
&.active a,
a.active {
@@ -44,11 +41,21 @@
.badge {
&[data-badge]::after {
position: absolute;
- right: -1.4rem;
- top: 1rem;
- transform: translate(-50%, -1rem);
+ right: -.4rem;
+ top: -.4rem;
+ transform: translate(0, 0);
}
}
}
}
+
+ &:not(.tab-block) {
+ a.badge {
+ padding-right: 0;
+ &::after {
+ position: static;
+ transform: translate(-.2rem, -1rem);
+ }
+ }
+ }
}