Browse Source

优化布局

master
guy 4 years ago
parent
commit
1b5901b8c3
  1. 35
      src/less/core/wrapper/flex.wrapper.horizontal.less
  2. 29
      src/less/core/wrapper/flex.wrapper.vertical.less

35
src/less/core/wrapper/flex.wrapper.horizontal.less

@ -31,6 +31,37 @@
.bi-f-s-h, .bi-flex-scrollable-horizontal-layout {
.flex();
.horizontal();
/* 09版 */
-webkit-box-pack: flex-start;
/* 12版 */
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
-ms-flex-pack: start;
-o-justify-content: flex-start;
justify-content: flex-start;
/* 09版 */
-webkit-box-align: flex-start;
/* 12版 */
-webkit-align-items: flex-start;
-moz-align-items: flex-start;
-ms-align-items: flex-start;
-ms-flex-align: start;
-o-align-items: flex-start;
align-items: flex-start;
/* 09版 */
/*-webkit-box-lines: multiple;*/
/* 12版 */
-webkit-flex-wrap: nowrap;
-moz-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
&.h-center {
> .f-s-h-w {
margin-left: auto !important;
@ -41,7 +72,7 @@
&.v-middle {
> .f-s-h-w {
margin-top: auto !important;
margin-right: auto !important;
margin-bottom: auto !important;
}
}
@ -103,7 +134,7 @@
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
//min-height: 100%;
&.v-middle {
///* 09版 */

29
src/less/core/wrapper/flex.wrapper.vertical.less

@ -32,6 +32,35 @@
.flex();
.vertical();
/* 09版 */
-webkit-box-pack: flex-start;
/* 12版 */
-webkit-justify-content: flex-start;
-moz-justify-content: flex-start;
-ms-justify-content: flex-start;
-ms-flex-pack: start;
-o-justify-content: flex-start;
justify-content: flex-start;
/* 09版 */
-webkit-box-align: flex-start;
/* 12版 */
-webkit-align-items: flex-start;
-moz-align-items: flex-start;
-ms-align-items: flex-start;
-ms-flex-align: start;
-o-align-items: flex-start;
align-items: flex-start;
/* 09版 */
/*-webkit-box-lines: multiple;*/
/* 12版 */
-webkit-flex-wrap: nowrap;
-moz-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
&.h-center {
> .f-s-v-w {
margin-left: auto !important;

Loading…
Cancel
Save