Summary Files Commits Branches @commit @diff @stats
path: root / src / tabs.less
diff options
context:
space:
mode:
Commit0c0fd3a3bc7b7546c5a1ba37b99de3bb5482eeb1 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-27 15:00:08 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-02-27 15:00:08 +0800
Filesf23bb7497363a0c461d6eed1ffd9828d0bc60317 /src/tabs.less
Spectre-Dark-Gruvbox-0c0fd3a3bc7b7546c5a1ba37b99de3bb5482eeb1.tar
Spectre-Dark-Gruvbox-0c0fd3a3bc7b7546c5a1ba37b99de3bb5482eeb1.tar.gz
Spectre-Dark-Gruvbox-0c0fd3a3bc7b7546c5a1ba37b99de3bb5482eeb1.zip
Parent7bbc9dd389da1044930b264ddf688d400b965b0e (diff)
CHG: Fixed a number of bugs
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);
+ }
+ }
+ }
}