|
|
|
@ -1,18 +1,37 @@
|
|
|
|
|
.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版 */ |
|
|
|
|
-webkit-flex-direction: row; |
|
|
|
|
-moz-flex-direction: row; |
|
|
|
|
-ms-flex-direction: row; |
|
|
|
|
-o-flex-direction: row; |
|
|
|
|
flex-direction: row; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.bi-flex-scrollable-horizontal-layout { |
|
|
|
|
& .flex-scrollable-horizontal-layout-wrapper { |
|
|
|
|
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+ */ |
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-orient: horizontal; |
|
|
|
|
/* 12版 */ |
|
|
|
|
-webkit-flex-direction: row; |
|
|
|
|
-moz-flex-direction: row; |
|
|
|
|
-ms-flex-direction: row; |
|
|
|
|
-o-flex-direction: row; |
|
|
|
|
flex-direction: row; |
|
|
|
|
.flex(); |
|
|
|
|
.horizontal(); |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-pack: flex-start; |
|
|
|
@ -52,6 +71,7 @@
|
|
|
|
|
-webkit-align-items: center; |
|
|
|
|
-moz-align-items: center; |
|
|
|
|
-ms-align-items: center; |
|
|
|
|
-ms-flex-align: center; |
|
|
|
|
-o-align-items: center; |
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
@ -68,6 +88,7 @@
|
|
|
|
|
-webkit-align-items: flex-end; |
|
|
|
|
-moz-align-items: flex-end; |
|
|
|
|
-ms-align-items: flex-end; |
|
|
|
|
-ms-flex-align: end; |
|
|
|
|
-o-align-items: flex-end; |
|
|
|
|
align-items: flex-end; |
|
|
|
|
} |
|
|
|
@ -79,6 +100,7 @@
|
|
|
|
|
-webkit-align-items: stretch; |
|
|
|
|
-moz-align-items: stretch; |
|
|
|
|
-ms-align-items: stretch; |
|
|
|
|
-ms-flex-align: stretch; |
|
|
|
|
-o-align-items: stretch; |
|
|
|
|
align-items: stretch; |
|
|
|
|
} |
|
|
|
@ -90,8 +112,8 @@
|
|
|
|
|
-webkit-justify-content: center; |
|
|
|
|
-moz-justify-content: center; |
|
|
|
|
-ms-justify-content: center; |
|
|
|
|
-o-justify-content: center; |
|
|
|
|
-ms-flex-pack: center; |
|
|
|
|
-o-justify-content: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -105,6 +127,8 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
&.h-stretch { |
|
|
|
|
.vertical(); |
|
|
|
|
|
|
|
|
|
/* 09版 */ |
|
|
|
|
-webkit-box-align: stretch; |
|
|
|
|
/* 12版 */ |
|
|
|
@ -134,7 +158,7 @@
|
|
|
|
|
-webkit-justify-content: flex-end; |
|
|
|
|
-moz-justify-content: flex-end; |
|
|
|
|
-ms-justify-content: flex-end; |
|
|
|
|
-ms-flex-pack: flex-end; |
|
|
|
|
-ms-flex-pack: end; |
|
|
|
|
-o-justify-content: flex-end; |
|
|
|
|
justify-content: flex-end; |
|
|
|
|
} |
|
|
|
|