guy
6 years ago
43 changed files with 4412 additions and 1207 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,54 @@
|
||||
/** |
||||
* Created by GUY on 2016/12/2. |
||||
* |
||||
* @class BI.FlexHorizontalCenter |
||||
* @extends BI.Layout |
||||
*/ |
||||
BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { |
||||
props: function () { |
||||
return BI.extend(BI.FlexHorizontalCenter.superclass.props.apply(this, arguments), { |
||||
baseCls: "bi-flex-horizontal-center-adapt-layout", |
||||
verticalAlign: BI.VerticalAlign.Top, |
||||
rowSize: [], |
||||
scrolly: false, |
||||
hgap: 0, |
||||
vgap: 0, |
||||
lgap: 0, |
||||
rgap: 0, |
||||
tgap: 0, |
||||
bgap: 0 |
||||
}); |
||||
}, |
||||
render: function () { |
||||
var self = this, o = this.options; |
||||
return { |
||||
type: "bi.flex_vertical", |
||||
ref: function (_ref) { |
||||
self.wrapper = _ref; |
||||
}, |
||||
horizontalAlign: BI.HorizontalAlign.Center, |
||||
verticalAlign: o.verticalAlign, |
||||
rowSize: o.rowSize, |
||||
scrollx: o.scrollx, |
||||
scrolly: o.scrolly, |
||||
scrollable: o.scrollable, |
||||
hgap: o.hgap, |
||||
vgap: o.vgap, |
||||
lgap: o.lgap, |
||||
rgap: o.rgap, |
||||
tgap: o.tgap, |
||||
bgap: o.bgap, |
||||
items: o.items |
||||
}; |
||||
}, |
||||
|
||||
resize: function () { |
||||
// console.log("flex_vertical_center_adapt布局不需要resize");
|
||||
}, |
||||
|
||||
populate: function (items) { |
||||
self.populate(items); |
||||
} |
||||
}); |
||||
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); |
||||
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); |
@ -0,0 +1,75 @@
|
||||
/** |
||||
* Created by GUY on 2016/12/2. |
||||
* |
||||
* @class BI.FlexVerticalLayout |
||||
* @extends BI.Layout |
||||
*/ |
||||
BI.FlexVerticalLayout = BI.inherit(BI.Layout, { |
||||
props: function () { |
||||
return BI.extend(BI.FlexVerticalLayout.superclass.props.apply(this, arguments), { |
||||
baseCls: "bi-flex-vertical-layout", |
||||
horizontalAlign: BI.HorizontalAlign.Left, |
||||
verticalAlign: BI.VerticalAlign.Top, |
||||
rowSize: [], |
||||
scrolly: true, |
||||
hgap: 0, |
||||
vgap: 0, |
||||
lgap: 0, |
||||
rgap: 0, |
||||
tgap: 0, |
||||
bgap: 0 |
||||
}); |
||||
}, |
||||
render: function () { |
||||
BI.FlexVerticalLayout.superclass.render.apply(this, arguments); |
||||
var o = this.options; |
||||
this.element.addClass("h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign); |
||||
this.populate(this.options.items); |
||||
}, |
||||
|
||||
_addElement: function (i, item) { |
||||
var w = BI.FlexVerticalLayout.superclass._addElement.apply(this, arguments); |
||||
var o = this.options; |
||||
w.element.css({ |
||||
position: "relative", |
||||
"flex-shrink": "0" |
||||
}); |
||||
if (o.rowSize[i] > 0) { |
||||
w.element.height(o.rowSize[i]); |
||||
} |
||||
if (o.rowSize[i] === "fill") { |
||||
w.element.css("flex", "1"); |
||||
} |
||||
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-top": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px" |
||||
}); |
||||
} |
||||
return w; |
||||
}, |
||||
|
||||
resize: function () { |
||||
// console.log("flex_vertical布局不需要resize");
|
||||
}, |
||||
|
||||
populate: function (items) { |
||||
BI.FlexVerticalLayout.superclass.populate.apply(this, arguments); |
||||
this._mount(); |
||||
} |
||||
}); |
||||
BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout); |
@ -0,0 +1,52 @@
|
||||
/** |
||||
*自适应水平和垂直方向都居中容器 |
||||
* Created by GUY on 2016/12/2. |
||||
* |
||||
* @class BI.FlexVerticalCenter |
||||
* @extends BI.Layout |
||||
*/ |
||||
BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { |
||||
props: function () { |
||||
return BI.extend(BI.FlexWrapperHorizontalCenter.superclass.props.apply(this, arguments), { |
||||
baseCls: "bi-flex-wrapper-vertical-center-adapt-layout clearfix", |
||||
verticalAlign: BI.VerticalAlign.Top, |
||||
rowSize: [], |
||||
scrollable: null, |
||||
scrolly: true, |
||||
hgap: 0, |
||||
vgap: 0, |
||||
lgap: 0, |
||||
rgap: 0, |
||||
tgap: 0, |
||||
bgap: 0 |
||||
}); |
||||
}, |
||||
render: function () { |
||||
var self = this, o = this.options; |
||||
return { |
||||
type: "bi.flex_wrapper_vertical", |
||||
ref: function (_ref) { |
||||
self.wrapper = _ref; |
||||
}, |
||||
horizontalAlign: BI.HorizontalAlign.Center, |
||||
verticalAlign: o.verticalAlign, |
||||
rowSize: o.rowSize, |
||||
scrollx: o.scrollx, |
||||
scrolly: o.scrolly, |
||||
scrollable: o.scrollable, |
||||
hgap: o.hgap, |
||||
vgap: o.vgap, |
||||
lgap: o.lgap, |
||||
rgap: o.rgap, |
||||
tgap: o.tgap, |
||||
bgap: o.bgap, |
||||
items: o.items |
||||
}; |
||||
}, |
||||
|
||||
populate: function (items) { |
||||
this.wrapper.populate(items); |
||||
} |
||||
}); |
||||
BI.shortcut("bi.flex_wrapper_horizontal_adapt", BI.FlexWrapperHorizontalCenter); |
||||
BI.shortcut("bi.flex_wrapper_horizontal_center_adapt", BI.FlexWrapperHorizontalCenter); |
@ -0,0 +1,83 @@
|
||||
/** |
||||
*自适应水平和垂直方向都居中容器 |
||||
* Created by GUY on 2016/12/2. |
||||
* |
||||
* @class BI.FlexWrapperVerticalLayout |
||||
* @extends BI.Layout |
||||
*/ |
||||
BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, { |
||||
props: function () { |
||||
return BI.extend(BI.FlexWrapperVerticalLayout.superclass.props.apply(this, arguments), { |
||||
baseCls: "bi-flex-wrapper-vertical-layout clearfix", |
||||
horizontalAlign: BI.HorizontalAlign.Left, |
||||
verticalAlign: BI.VerticalAlign.Top, |
||||
rowSize: [], |
||||
scrollable: null, |
||||
scrolly: true, |
||||
hgap: 0, |
||||
vgap: 0, |
||||
lgap: 0, |
||||
rgap: 0, |
||||
tgap: 0, |
||||
bgap: 0 |
||||
}); |
||||
}, |
||||
render: function () { |
||||
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments); |
||||
var o = this.options; |
||||
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-wrapper-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign); |
||||
this.populate(this.options.items); |
||||
}, |
||||
|
||||
_addElement: function (i, item) { |
||||
var o = this.options; |
||||
var w = BI.FlexWrapperVerticalLayout.superclass._addElement.apply(this, arguments); |
||||
w.element.css({position: "relative"}); |
||||
if (o.rowSize[i] > 0) { |
||||
w.element.height(o.rowSize[i]); |
||||
} |
||||
if (o.rowSize[i] === "fill") { |
||||
w.element.css("flex", "1"); |
||||
} |
||||
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-top": (i === 0 ? o.vgap : 0) + o.tgap + (item.tgap || 0) + (item.vgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-left": o.hgap + o.lgap + (item.lgap || 0) + (item.hgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-right": o.hgap + o.rgap + (item.rgap || 0) + (item.hgap || 0) + "px" |
||||
}); |
||||
} |
||||
if (o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) !== 0) { |
||||
w.element.css({ |
||||
"margin-bottom": o.vgap + o.bgap + (item.bgap || 0) + (item.vgap || 0) + "px" |
||||
}); |
||||
} |
||||
return w; |
||||
}, |
||||
|
||||
appendFragment: function (frag) { |
||||
this.$wrapper.append(frag); |
||||
this.element.append(this.$wrapper); |
||||
}, |
||||
|
||||
_getWrapper: function () { |
||||
return this.$wrapper; |
||||
}, |
||||
|
||||
resize: function () { |
||||
// console.log("flex_wrapper_vertical布局不需要resize");
|
||||
}, |
||||
|
||||
populate: function (items) { |
||||
BI.FlexWrapperVerticalLayout.superclass.populate.apply(this, arguments); |
||||
this._mount(); |
||||
} |
||||
}); |
||||
BI.shortcut("bi.flex_wrapper_vertical", BI.FlexWrapperVerticalLayout); |
@ -1,76 +0,0 @@
|
||||
.bi-flex-vertical-center { |
||||
display: box; /* OLD - Android 4.4- */ |
||||
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; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: flex-start; |
||||
/* 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; |
||||
justify-content: flex-start; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-align: center; |
||||
/* 12版 */ |
||||
-webkit-align-items: center; |
||||
-moz-align-items: center; |
||||
-ms-align-items: center; |
||||
-ms-flex-align: center; |
||||
-o-align-items: center; |
||||
align-items: center; |
||||
|
||||
/* 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; |
||||
|
||||
&.stretch { |
||||
/* 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; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: center; |
||||
/* 12版 */ |
||||
-webkit-justify-content: center; |
||||
-moz-justify-content: center; |
||||
-ms-justify-content: center; |
||||
-ms-flex-pack: center; |
||||
-o-justify-content: center; |
||||
justify-content: center; |
||||
/* 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; |
||||
} |
||||
} |
@ -0,0 +1,110 @@
|
||||
.bi-flex-vertical-layout { |
||||
display: box; /* OLD - Android 4.4- */ |
||||
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: vertical; |
||||
/* 12版 */ |
||||
-webkit-flex-direction: column; |
||||
-moz-flex-direction: column; |
||||
-ms-flex-direction: column; |
||||
-o-flex-direction: column; |
||||
flex-direction: column; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: flex-start; |
||||
/* 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; |
||||
justify-content: flex-start; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-align: 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 { |
||||
/* 09版 */ |
||||
-webkit-box-align: center; |
||||
/* 12版 */ |
||||
-webkit-align-items: center; |
||||
-moz-align-items: center; |
||||
-ms-align-items: center; |
||||
-ms-flex-align: center; |
||||
-o-align-items: center; |
||||
align-items: center; |
||||
} |
||||
&.h-right { |
||||
/* 09版 */ |
||||
-webkit-box-align: flex-end; |
||||
/* 12版 */ |
||||
-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; |
||||
} |
||||
&.h-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; |
||||
} |
||||
|
||||
&.v-stretch { |
||||
/* 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; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: center; |
||||
/* 12版 */ |
||||
-webkit-justify-content: center; |
||||
-moz-justify-content: center; |
||||
-ms-justify-content: center; |
||||
-ms-flex-pack: center; |
||||
-o-justify-content: center; |
||||
justify-content: center; |
||||
/* 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; |
||||
} |
||||
} |
@ -1,80 +0,0 @@
|
||||
.bi-flex-wrapper-vertical-center { |
||||
& .flex-wrapper-vertical-center-wrapper { |
||||
display: box; /* OLD - Android 4.4- */ |
||||
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; |
||||
|
||||
/* 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: center; |
||||
/* 12版 */ |
||||
-webkit-align-items: center; |
||||
-moz-align-items: center; |
||||
-ms-align-items: center; |
||||
-ms-flex-align: center; |
||||
-o-align-items: center; |
||||
align-items: center; |
||||
|
||||
/* 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; |
||||
|
||||
min-height: 100%; |
||||
float: left; |
||||
|
||||
&.stretch { |
||||
width: 100%; |
||||
/* 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; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: center; |
||||
/* 12版 */ |
||||
-webkit-justify-content: center; |
||||
-moz-justify-content: center; |
||||
-ms-justify-content: center; |
||||
-o-justify-content: center; |
||||
justify-content: center; |
||||
/* 09版 */ |
||||
-webkit-box-align: stretch; |
||||
/* 12版 */ |
||||
-webkit-align-items: stretch; |
||||
-moz-align-items: stretch; |
||||
-ms-align-items: stretch; |
||||
-o-align-items: stretch; |
||||
align-items: stretch; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,113 @@
|
||||
.bi-flex-wrapper-vertical-layout { |
||||
& .flex-wrapper-vertical-layout-wrapper { |
||||
display: box; /* OLD - Android 4.4- */ |
||||
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: vertical; |
||||
/* 12版 */ |
||||
-webkit-flex-direction: column; |
||||
-moz-flex-direction: column; |
||||
-ms-flex-direction: column; |
||||
-o-flex-direction: column; |
||||
flex-direction: column; |
||||
|
||||
/* 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; |
||||
|
||||
min-width: 100%; |
||||
|
||||
&.h-center { |
||||
/* 09版 */ |
||||
-webkit-box-align: center; |
||||
/* 12版 */ |
||||
-webkit-align-items: center; |
||||
-moz-align-items: center; |
||||
-ms-align-items: center; |
||||
-ms-flex-align: center; |
||||
-o-align-items: center; |
||||
align-items: center; |
||||
} |
||||
&.h-right { |
||||
/* 09版 */ |
||||
-webkit-box-align: flex-end; |
||||
/* 12版 */ |
||||
-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; |
||||
} |
||||
&.h-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; |
||||
} |
||||
|
||||
&.v-stretch { |
||||
/* 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; |
||||
|
||||
/* 09版 */ |
||||
-webkit-box-pack: center; |
||||
/* 12版 */ |
||||
-webkit-justify-content: center; |
||||
-moz-justify-content: center; |
||||
-ms-justify-content: center; |
||||
-ms-flex-pack: center; |
||||
-o-justify-content: center; |
||||
justify-content: center; |
||||
/* 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; |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue