|
|
|
@ -1,10 +1,23 @@
|
|
|
|
|
.bi-flex-horizontal-layout { |
|
|
|
|
.flex() { |
|
|
|
|
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ |
|
|
|
|
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ |
|
|
|
|
display: -ms-flexbox; /* TWEENER - IE 10 */ |
|
|
|
|
display: -webkit-flex; /* NEW - Chrome */ |
|
|
|
|
display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.vertical() { |
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-orient: vertical; |
|
|
|
|
/* 12版 */ |
|
|
|
|
-webkit-flex-direction: column; |
|
|
|
|
-moz-flex-direction: column; |
|
|
|
|
-ms-flex-direction: column; |
|
|
|
|
-o-flex-direction: column; |
|
|
|
|
flex-direction: column; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.horizontal() { |
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-orient: horizontal; |
|
|
|
|
/* 12版 */ |
|
|
|
@ -13,6 +26,12 @@
|
|
|
|
|
-ms-flex-direction: row; |
|
|
|
|
-o-flex-direction: row; |
|
|
|
|
flex-direction: row; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.bi-flex-horizontal-layout { |
|
|
|
|
.flex(); |
|
|
|
|
|
|
|
|
|
.horizontal(); |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-pack: flex-start; |
|
|
|
@ -20,12 +39,12 @@
|
|
|
|
|
-webkit-justify-content: flex-start; |
|
|
|
|
-moz-justify-content: flex-start; |
|
|
|
|
-ms-justify-content: flex-start; |
|
|
|
|
-o-justify-content: flex-start; |
|
|
|
|
-ms-flex-pack: start; |
|
|
|
|
-o-justify-content: flex-start; |
|
|
|
|
justify-content: flex-start; |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-align: start; |
|
|
|
|
-webkit-box-align: flex-start; |
|
|
|
|
/* 12版 */ |
|
|
|
|
-webkit-align-items: flex-start; |
|
|
|
|
-moz-align-items: flex-start; |
|
|
|
@ -101,14 +120,17 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.h-stretch { |
|
|
|
|
.vertical(); |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-orient: vertical; |
|
|
|
|
-webkit-box-align: stretch; |
|
|
|
|
/* 12版 */ |
|
|
|
|
-webkit-flex-direction: column; |
|
|
|
|
-moz-flex-direction: column; |
|
|
|
|
-ms-flex-direction: column; |
|
|
|
|
-o-flex-direction: column; |
|
|
|
|
flex-direction: column; |
|
|
|
|
-webkit-align-items: stretch; |
|
|
|
|
-moz-align-items: stretch; |
|
|
|
|
-ms-align-items: stretch; |
|
|
|
|
-ms-flex-align: stretch; |
|
|
|
|
-o-align-items: stretch; |
|
|
|
|
align-items: stretch; |
|
|
|
|
|
|
|
|
|
&.v-middle { |
|
|
|
|
/* 09版 */ |
|
|
|
@ -133,18 +155,5 @@
|
|
|
|
|
-ms-flex-pack: flex-end; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.v-stretch { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-align: stretch; |
|
|
|
|
/* 12版 */ |
|
|
|
|
-webkit-align-items: stretch; |
|
|
|
|
-moz-align-items: stretch; |
|
|
|
|
-ms-align-items: stretch; |
|
|
|
|
-ms-flex-align: stretch; |
|
|
|
|
-o-align-items: stretch; |
|
|
|
|
align-items: stretch; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|