variables.less
405 Bytes
@txt: #333;
@desc: #505052;
@bg: rgba(251, 255, 239, 0.5);
// 多行溢出省略号
.ntextHidden(@n){
overflow: hidden;
display: -webkit-box;
word-break: break-all;
-webkit-line-clamp: @n;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
// flex布局
.disflex(@align:center,@justify:inherit){
display: flex;
align-items: @align;
justify-content: @justify;
}