Summary Files Commits Branches @commit @diff @stats
path: root / src / tabs.less
diff options
context:
space:
mode:
Commitcae547e62d611b68b7054d0e20d0abd6974fafb4 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-27 15:59:33 +0800
Committer
 GitHub <noreply@github.com>
2017-02-27 15:59:33 +0800
Filesc934074200f923006f1ca5df36368ed527a39bdf /src/tabs.less
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.tar
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.tar.gz
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.zip
Parentad9056c4a9df16a778886a3bfb41b0e973d65e1b (diff)
Parentf2aec69fc002a7730bae77691747b558cef1e40a (diff)
Merge pull request #144 from picturepan2/hotfix/a-number-of-fixes
Hotfix/a number of fixes
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);
+ }
+ }
+ }
}