Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commite0b8c0453aa5f5ac70558ae6ccf626c6182052f6 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-05-04 17:47:23 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-05-04 17:47:23 +0800
Filesdae2dd1b724268572294164aa379851538b87a16 /dist/spectre.css
Spectre-Dark-Gruvbox-e0b8c0453aa5f5ac70558ae6ccf626c6182052f6.tar
Spectre-Dark-Gruvbox-e0b8c0453aa5f5ac70558ae6ccf626c6182052f6.tar.gz
Spectre-Dark-Gruvbox-e0b8c0453aa5f5ac70558ae6ccf626c6182052f6.zip
Parent85669b236fdcaacaa2af0436bae1f1ef21a0fd6c (diff)
Parent8599d4ab9eebc58a7396e23703246d9eba32199e (diff)
Merge pull request #35 from picturepan2/hotfix/badge-on-tabs
Hotfix/badge on tabs
1 files changed, 16 insertions, 5 deletions
-rw-r--r--dist/spectre.css21
diff --git a/dist/spectre.css b/dist/spectre.css
index 58dee17..89ae1d7 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -1117,6 +1117,7 @@ textarea.form-input {
padding: 0;
position: absolute;
top: .5rem;
+ transition: all .15s ease;
vertical-align: top;
width: 1.4rem;
}
@@ -1133,6 +1134,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 +1173,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 +1404,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 +1769,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;