Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commitaf7a627fecae62f1487af53fa819766efcbda327 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-08 16:20:20 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-08 16:20:20 +0800
Files6b46c036287d9ca17c4e6a2b95af0d23ad5390bc /dist/spectre.css
Spectre-Dark-Gruvbox-af7a627fecae62f1487af53fa819766efcbda327.tar
Spectre-Dark-Gruvbox-af7a627fecae62f1487af53fa819766efcbda327.tar.gz
Spectre-Dark-Gruvbox-af7a627fecae62f1487af53fa819766efcbda327.zip
Parentdcbdb5b1449161b258dba62c1ff5fc3632cbfbee (diff)
add responsive to ban-group
1 files changed, 68 insertions, 35 deletions
-rw-r--r--dist/spectre.css103
diff --git a/dist/spectre.css b/dist/spectre.css
index e25f173..b3db894 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -872,42 +872,75 @@ pre code {
margin-left: -0.1rem;
margin-top: -0.5rem;
}
-.btn-group {
- display: -webkit-inline-box;
- display: -webkit-inline-flex;
- display: -ms-inline-flexbox;
- display: inline-flex;
-}
-.btn-group .btn {
- -webkit-box-flex: 1;
- -webkit-flex: 1 0 auto;
- -ms-flex: 1 0 auto;
- flex: 1 0 auto;
-}
-.btn-group .btn:first-child:not(:last-child) {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
-}
-.btn-group .btn:not(:first-child):not(:last-child) {
- margin-left: -0.1rem;
- border-radius: 0;
- z-index: 49;
-}
-.btn-group .btn:last-child:not(:first-child) {
- margin-left: -0.1rem;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- z-index: 99;
-}
-.btn-group .btn:hover,
-.btn-group .btn:focus {
- z-index: 99;
+@media screen and (min-width: 481px) {
+ .btn-group {
+ display: -webkit-inline-box;
+ display: -webkit-inline-flex;
+ display: -ms-inline-flexbox;
+ display: inline-flex;
+ -webkit-flex-wrap: wrap;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ }
+ .btn-group .btn {
+ -webkit-box-flex: 1;
+ -webkit-flex: 1 0 auto;
+ -ms-flex: 1 0 auto;
+ flex: 1 0 auto;
+ }
+ .btn-group .btn:first-child:not(:last-child) {
+ border-top-right-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ .btn-group .btn:not(:first-child):not(:last-child) {
+ margin-left: -0.1rem;
+ border-radius: 0;
+ }
+ .btn-group .btn:last-child:not(:first-child) {
+ margin-left: -0.1rem;
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ }
+ .btn-group .btn:hover,
+ .btn-group .btn:focus {
+ z-index: 99;
+ }
+ .btn-group.btn-group-block {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ }
}
-.btn-group.btn-group-block {
- display: -webkit-box;
- display: -webkit-flex;
- display: -ms-flexbox;
- display: flex;
+@media screen and (max-width: 480px) {
+ .btn-group {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-flex-wrap: wrap;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ }
+ .btn-group .btn {
+ -webkit-box-flex: 1;
+ -webkit-flex: 1 0 100%;
+ -ms-flex: 1 0 100%;
+ flex: 1 0 100%;
+ }
+ .btn-group .btn:first-child:not(:last-child) {
+ border-bottom-left-radius: 0;
+ border-bottom-right-radius: 0;
+ }
+ .btn-group .btn:not(:first-child):not(:last-child) {
+ margin-top: -0.1rem;
+ border-radius: 0;
+ }
+ .btn-group .btn:last-child:not(:first-child) {
+ margin-top: -0.1rem;
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ }
}
.form-group:not(:last-child) {
margin-bottom: 1rem;