/* flex start */

.f-flex {
    display: -webkit-flex;
    display: flex;
}

/* flex伸缩基准值 */
.f-flex-basic-xs {
    flex-basis: 20%;
}

.f-flex-basic-sm {
    flex-basis: 40%;
}

.f-flex-basic-md {
    flex-basis: 50%;
}

.f-flex-basic-lg {
    flex-basis: 60%;
}

.f-flex-basic-xl {
    flex-basis: 80%;
}

.f-flex-basic-full {
    flex-basis: 100%;
}

/* flex布局的方向 */
.f-flex-direction-column {
    flex-direction: column;
}

.f-flex-direction-row {
    flex-direction: row;
}

.f-flex-direction-column-reverse {
    flex-direction: column-reverse;
}

.f-flex-direction-row-reverse {
    flex-direction: row-reverse;
}

/* flex容器设置换行 */
.f-flex-wrap {
    flex-wrap: wrap;
}

.f-flex-nowrap {
    flex-wrap: nowrap;
}

/* flex容器自身垂直方向对齐方式 */
.f-flex-center {
    align-self: center;
}

.f-flex-top {
    align-self: flex-start;
}

.f-flex-end {
    align-self: flex-end;
}

.f-flex-stretch {
    align-self: stretch;
}

/* flex子元素垂直方向对齐方式 */
.f-flex-col-center {
    align-items: center;
}

.f-flex-col-top {
    align-items: flex-start;
}

.f-flex-col-bottom {
    align-items: flex-end;
}

/* flex子元素水平方向对齐方式 */
.f-flex-row-center {
    justify-content: center;
}

.f-flex-row-left {
    justify-content: flex-start;
}

.f-flex-row-right {
    justify-content: flex-end;
}

.f-flex-row-between {
    justify-content: space-between;
}

.f-flex-row-around {
    justify-content: space-around;
}

/* flex end */
/* 布局 */
.f-float-left {
    float: left;
}

.f-float-right {
    float: right;
}

/* 文本 start */
.f-text-10 {
    font-size: 10px;
}

.f-text-12 {
    font-size: 12px;
}

.f-text-14 {
    font-size: 14px;
}

.f-text-16 {
    font-size: 16px;
}

.f-text-18 {
    font-size: 18px;
}

.f-text-20 {
    font-size: 20px;
}

.f-text-22 {
    font-size: 22px;
}

.f-text-24 {
    font-size: 24px;
}

.f-text-bold {
    font-weight: bold;
}

.f-text-center {
    text-align: center;
}

.f-text-left {
    text-align: left;
}

.f-text-right {
    text-align: right;
}

.f-text-justify {
    text-align: justify;
}

.f-text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.f-text-ellipsis-2 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 文本 end */
