
.tn-flex {
    display: -webkit-flex;
    display: flex;
}

/* 换行 */
.tn-flex-wrap {
    flex-wrap: wrap;
}

/* 不换行 */
.tn-flex-nowrap {
    flex-wrap: nowrap;
}


/* 垂直布局 */
.tn-flex-direction-column {
    flex-direction: column;
}

/* 水平布局 */
.tn-flex-direction-row {
    flex-direction: row;
}

/* 反向垂直布局 */
.tn-flex-direction-column-reverse {
    flex-direction: column-reverse;
}

/* 反向水平布局 */
.tn-flex-direction-row-reverse {
    flex-direction: row-reverse;
}


.tn-flex-center {
    align-self: center;
}

.tn-flex-top {
    align-self: flex-start;
}

.tn-flex-end {
    align-self: flex-end;
}

.tn-flex-stretch {
    align-self: stretch;
}

.tn-flex-col-center {
    align-items: center;
}

.tn-flex-col-top {
    align-items: flex-start;
}

.tn-flex-col-bottom {
    align-items: flex-end;
}

.tn-flex-row-center {
    justify-content: center;
}

.tn-flex-row-left {
    justify-content: flex-start;
}

.tn-flex-row-right {
    justify-content: flex-end;
}

.tn-flex-row-between {
    justify-content: space-between;
}

.tn-flex-row-around {
    justify-content: space-around;
}

.tn-flex-1 {
    flex: 1
}

.tn-flex-2 {
    flex: 2
}

.tn-flex-3 {
    flex: 3
}

.tn-flex-4 {
    flex: 4
}

.tn-flex-5 {
    flex: 5
}

.tn-flex-6 {
    flex: 6
}

.tn-flex-7 {
    flex: 7
}

.tn-flex-8 {
    flex: 8
}

.tn-flex-9 {
    flex: 9
}

.tn-flex-10 {
    flex: 10
}

.tn-flex-11 {
    flex: 11
}

.tn-flex-12 {
    flex: 12
}

.tn-flex-basic-xs {
    flex-basis: 20%;
}

.tn-flex-basic-sm {
    flex-basis: 40%;
}

.tn-flex-basic-md {
    flex-basis: 50%;
}

.tn-flex-basic-lg {
    flex-basis: 60%;
}

.tn-flex-basic-xl {
    flex-basis: 80%;
}

.tn-flex-basic-full {
    flex-basis: 100%;
}



/* 显示一行 */
.tn-text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* 显示一行 */
.tn-text-ellipsis-1 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 显示两行 */
.tn-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;
}

/* 显示三行 */
.tn-text-ellipsis-3 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.tn-text-ellipsis-4 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.tn-text-ellipsis-5 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.tn-text-ellipsis-6 {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal !important;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}