Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commitba375ed5bdd8e98ed5a335117a17b30afd51172c (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-10-08 00:55:04 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-10-08 00:55:04 +0800
Filesfa3c81bcf8c8d28a5b34bd372c5673ecf8370e38 /dist/spectre.css
Spectre-Dark-Gruvbox-ba375ed5bdd8e98ed5a335117a17b30afd51172c.tar
Spectre-Dark-Gruvbox-ba375ed5bdd8e98ed5a335117a17b30afd51172c.tar.gz
Spectre-Dark-Gruvbox-ba375ed5bdd8e98ed5a335117a17b30afd51172c.zip
Parent324d2584157d0fb0ef807664ea2ca2325a191b45 (diff)
Update button groups and tabs style
1 files changed, 24 insertions, 22 deletions
-rw-r--r--dist/spectre.css46
diff --git a/dist/spectre.css b/dist/spectre.css
index 89ea1ad..336e9b8 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -660,9 +660,11 @@ pre code {
display: inline-flex;
display: -ms-inline-flexbox;
display: -webkit-inline-flex;
- -webkit-flex-wrap: wrap;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
+ -webkit-flex-wrap: nowrap;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ max-width: 100%;
+ overflow-x: auto;
}
.btn-group .btn {
-webkit-flex: 1 0 auto;
@@ -688,13 +690,6 @@ pre code {
.btn-group .btn.active {
z-index: 99;
}
-.btn-group.is-scrollable {
- -webkit-flex-wrap: nowrap;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap;
- max-width: 100%;
- overflow-x: auto;
-}
.btn-group.btn-group-block {
display: flex;
display: -ms-flexbox;
@@ -1882,44 +1877,51 @@ textarea.form-input {
padding: 0 .4rem;
}
.tab {
- border-bottom: .1rem solid #c5c5c5;
display: flex;
display: -ms-flexbox;
display: -webkit-flex;
+ -webkit-flex-wrap: nowrap;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ max-width: 100%;
+ overflow-x: auto;
}
.tab .tab-item {
- margin-bottom: -.1rem;
+ border-bottom: .1rem solid #c5c5c5;
margin-top: 0;
}
.tab .tab-item a {
border-bottom: .2rem solid transparent;
color: #333;
display: block;
- padding: .5rem 1.2rem;
+ margin-bottom: -.1rem;
+ margin-top: 0;
+ padding: .8rem 1.4rem;
text-decoration: none;
}
.tab .tab-item a:focus,
.tab .tab-item a:hover {
color: #5764c6;
}
-.tab .tab-item.active a {
+.tab .tab-item.active a,
+.tab .tab-item a.active {
border-bottom-color: #3b49af;
color: #3b49af;
}
+.tab .tab-item .badge[data-badge]::after {
+ position: absolute;
+ right: -1.4rem;
+ top: 1rem;
+ -webkit-transform: translate(-50%, -1rem);
+ -ms-transform: translate(-50%, -1rem);
+ transform: translate(-50%, -1rem);
+}
.tab.tab-block .tab-item {
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
text-align: center;
}
-.tab.tab-block .tab-item .badge[data-badge]::after {
- position: absolute;
- right: 1.5rem;
- top: .6rem;
- -webkit-transform: translate(50%, -.8rem);
- -ms-transform: translate(50%, -.8rem);
- transform: translate(50%, -.8rem);
-}
.pagination {
display: inline-block;
padding: 1.2rem;