// .v-flex {
// 	@include vue-flex(row);
// }

// .v-flex-x {
// 	@include vue-flex(row);
// }

// .v-flex-y {
// 	@include vue-flex(column);
// }

// .v-flex-xy-center {
// 	@include vue-flex(row);
// 	justify-content: center;
// 	align-items: center;
// }

// .v-flex-x-center {
// 	@include vue-flex(row);
// 	justify-content: center;
// }

// .v-flex-y-center {
// 	@include vue-flex(column);
// 	justify-content: center;
// }


// flex布局
.v-flex,
.v-flex-row,
.v-flex-x {
	@include flex;
}

.v-flex-y,
.v-flex-column {
	@include flex(column);
}

.v-flex-x-center {
	@include flex;
	justify-content: center;
}

.v-flex-xy-center {
	@include flex;
	justify-content: center;
	align-items: center;
}

.v-flex-y-center {
	@include flex;
	align-items: center;
}

.v-flex-x-left {
	@include flex;
}

.v-flex-x-reverse,
.v-flex-row-reverse {
	flex-direction: row-reverse;
}

.v-flex-y-reverse,
.v-flex-column-reverse {
	flex-direction: column-reverse;
}

/* #ifndef APP-NVUE */
// 此处为vue版本的简写，因为nvue不支持同时作用于两个类名的样式写法
// nvue下只能写成class="v-flex-x v-flex-x-reverse的形式"
.v-flex.v-flex-reverse,
.v-flex-row.v-flex-reverse,
.v-flex-x.v-flex-reverse {
	flex-direction: row-reverse;
}

.v-flex-column.v-flex-reverse,
.v-flex-y.v-flex-reverse {
	flex-direction: column-reverse;
}

// 自动伸缩
.v-flex-fill {
	flex: 1 1 auto
}

// 边界自动伸缩
.v-margin-top-auto,
.v-m-t-auto {
	margin-top: auto !important
}

.v-margin-right-auto,
.v-m-r-auto {
	margin-right: auto !important
}

.v-margin-bottom-auto,
.v-m-b-auto {
	margin-bottom: auto !important
}

.v-margin-left-auto,
.v-m-l-auto {
	margin-left: auto !important
}

.v-margin-center-auto,
.v-m-c-auto {
	margin-left: auto !important;
	margin-right: auto !important
}

.v-margin-middle-auto,
.v-m-m-auto {
	margin-top: auto !important;
	margin-bottom: auto !important
}
/* #endif */

// 换行
.v-flex-wrap {
	flex-wrap: wrap;
}

// 反向换行
.v-flex-wrap-reverse {
	flex-wrap: wrap-reverse;
}

// 主轴起点对齐
.v-flex-start {
	justify-content: flex-start
}

// 主轴中间对齐
.v-flex-center {
	justify-content: center
}

// 主轴终点对齐
.v-flex-end {
	justify-content: flex-end
}

// 主轴等比间距
.v-flex-between {
	justify-content: space-between
}

// 主轴均分间距
.v-flex-around {
	justify-content: space-around
}

// 交叉轴起点对齐
.v-flex-items-start {
	align-items: flex-start
}

// 交叉轴中间对齐
.v-flex-items-center {
	align-items: center
}

// 交叉轴终点对齐
.v-flex-items-end {
	align-items: flex-end
}

// 交叉轴第一行文字基线对齐
.v-flex-items-baseline {
	align-items: baseline
}

// 交叉轴方向拉伸对齐
.v-flex-items-stretch {
	align-items: stretch
}


// 以下属于项目(子元素)的类

// 子元素交叉轴起点对齐
.v-flex-self-start {
	align-self: flex-start
}

// 子元素交叉轴居中对齐
.v-flex-self-center {
	align-self: center
}

// 子元素交叉轴终点对齐
.v-flex-self-end {
	align-self: flex-end
}

// 子元素交叉轴第一行文字基线对齐
.v-flex-self-baseline {
	align-self: baseline
}

// 子元素交叉轴方向拉伸对齐
.v-flex-self-stretch {
	align-self: stretch
}

// 多轴交叉时的对齐方式

// 起点对齐
.v-flex-content-start {
	align-content: flex-start
}

// 居中对齐
.v-flex-content-center {
	align-content: center
}

// 终点对齐
.v-flex-content-end {
	align-content: flex-end
}

// 两端对齐
.v-flex-content-between {
	align-content: space-between
}

// 均分间距
.v-flex-content-around {
	align-content: space-around
}

// 全部居中对齐
.v-flex-middle {
	justify-content: center;
	align-items: center;
	align-self: center;
	align-content: center
}

// 是否可以放大
.v-flex-grow {
	flex-grow: 1
}

// 是否可以缩小
.v-flex-shrink {
	flex-shrink: 1
}

// 定义内外边距，历遍1-80
@for $i from 0 through 80 {
	// 只要双数和能被5除尽的数
	@if $i % 2 == 0 or $i % 5 == 0 {
		// 得出：v-margin-30或者v-m-30
		.v-margin-#{$i}, .v-m-#{$i} {
			margin: $i + rpx!important;
		}
		
		// 得出：v-padding-30或者v-p-30
		.v-padding-#{$i}, .v-p-#{$i} {
			padding: $i + rpx!important;
		}
		
		@each $short, $long in l left, t top, r right, b bottom {
			// 缩写版，结果如： v-m-l-30
			// 定义外边距
			.v-m-#{$short}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			
			// 定义内边距
			.v-p-#{$short}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
			
			// 完整版，结果如：v-margin-left-30
			// 定义外边距
			.v-margin-#{$long}-#{$i} {
				margin-#{$long}: $i + rpx!important;
			}
			
			// 定义内边距
			.v-padding-#{$long}-#{$i} {
				padding-#{$long}: $i + rpx!important;
			}
		}
	}
}
