Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commitc1cb2e8330165b94292ce26a2f74327f694822bf (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-05-04 17:01:06 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-05-04 17:01:06 +0800
Files06264da66729fad26f2f94fbb91418a3a4794d65 /dist/spectre.css
Spectre-Dark-Gruvbox-c1cb2e8330165b94292ce26a2f74327f694822bf.tar
Spectre-Dark-Gruvbox-c1cb2e8330165b94292ce26a2f74327f694822bf.tar.gz
Spectre-Dark-Gruvbox-c1cb2e8330165b94292ce26a2f74327f694822bf.zip
Parent85669b236fdcaacaa2af0436bae1f1ef21a0fd6c (diff)
fix badge issue on tabs
1 files changed, 15 insertions, 5 deletions
-rw-r--r--dist/spectre.css20
diff --git a/dist/spectre.css b/dist/spectre.css
index 58dee17..2fb800a 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -1133,6 +1133,7 @@ textarea.form-input {
border-radius: .2rem;
}
.form-checkbox input:checked + .form-icon::after {
+ background-clip: padding-box;
border: .2rem solid #fff;
border-left-width: 0;
border-top-width: 0;
@@ -1171,6 +1172,7 @@ textarea.form-input {
}
.form-switch .form-icon {
background: #c5c5c5;
+ background-clip: padding-box;
border: .1rem solid #c5c5c5;
border-radius: .9rem;
display: inline-block;
@@ -1401,17 +1403,18 @@ textarea.form-input {
.badge {
position: relative;
}
-.badge::after {
+.badge[data-badge]::after {
background: #5764c6;
+ background-clip: padding-box;
border: .1rem solid #fff;
border-radius: 1rem;
color: #fff;
content: attr(data-badge);
display: inline-block;
- font-size: 1.2rem;
- height: 2rem;
- line-height: 1.4rem;
- min-width: 2rem;
+ font-size: 1.1rem;
+ height: 1.8rem;
+ line-height: 1.2rem;
+ min-width: 1.8rem;
padding: .2rem .5rem;
text-align: center;
-webkit-transform: translate(-.2rem, -.8rem);
@@ -1765,6 +1768,13 @@ textarea.form-input {
flex: 1 0 auto;
text-align: center;
}
+.tab.tab-block .tab-item .badge[data-badge]::after {
+ position: absolute;
+ right: 1.5rem;
+ top: .5rem;
+ -webkit-transform: translate(50%, -.8rem);
+ transform: translate(50%, -.8rem);
+}
.pagination {
display: inline-block;
padding: 1.2rem;