vue-ant-patterns
Version:
vue-ant-patterns
123 lines (99 loc) • 1.8 kB
text/less
/*
命名规则, 三部分 className
.flex-侧轴
.flex-主轴
.flex-侧轴-主轴
*/
.flex-start-start () {
align-items: flex-start;
justify-content: flex-start;
}
.flex-start-center () {
align-items: flex-start;
justify-content: flex-center;
}
.flex-start-end () {
align-items: flex-start;
justify-content: flex-end;
}
.flex-start-between () {
justify-content: space-between;
align-items: flex-start;
}
.flex-center-start () {
align-items: center;
justify-content: flex-start;
}
.flex-center-center () {
align-items: center;
justify-content: center;
}
.flex-center-end () {
align-items: center;
justify-content: flex-end;
}
.flex-center-between () {
justify-content: space-between;
align-items: center;
}
.flex-end-start () {
align-items: flex-end;
justify-content: flex-start;
}
.flex-end-center () {
align-items: flex-end;
justify-content: center;
}
.flex-end-end () {
align-items: flex-end;
justify-content: flex-end;
}
.flex-end-between () {
justify-content: space-between;
align-items: flex-end;
}
.flex-align-start () {
align-items: flex-start;
}
.flex-align-center () {
align-items: center;
}
.flex-align-end () {
align-items: flex-end;
}
.flex-justify-start () {
justify-content: flex-start;
}
.flex-justify-center () {
justify-content: center;
}
.flex-justify-end () {
justify-content: flex-end;
}
.flex-justify-between () {
justify-content: space-between;
}
.flex-center () {
align-items: center;
justify-content: center;
}
.flex () {
display: flex;
}
.flex-wrap-reverse () {
flex-wrap: wrap-reverse;
}
.flex-wrap () {
flex-wrap: wrap;
}
.flex-col () {
flex-direction: column;
}
.flex-row () {
flex-direction: row;
}
.flex-grow () {
flex-grow: 1;
flex-shrink: 0;
flex-basis: 0px;
}