 /* 需要一些基础处理的函数 处理样式*/

@import './reset.css';
/* 1px 的处理 */
.border {
    position: relative;
}

.border::after {
    content: "";
    pointer-events: none;
    position: absolute;
    right: 0; /* 默认是0, 可动态设置 */
    left: 0; /* 默认是0, 可动态设置 */
    transform-origin: 0 0;
    background-color: #e6e6e6; /* 默认是1px, 可动态设置 */
    height: 1px; /* 默认是1px， 可动态设置 */
    transform: scaleY(.5);
}

.border-top::after {
    top: 0;
}
.border-bottom::after {
    bottom: 0;
}

.border.android-patch::after {
    transform: unset;
    background-color: #f5f5f5;
}

/* icon和按钮类型要求 50%透明 */

.btn-hover-feedback {
    opacity: .5;
}

/* 列表类型要求 5% 加暗，透明防止盖住border */

.list-hover-feedback {
    background-color: rgba(0, 0, 0, .05);
}

/* 文本截断的处理 */
.line-clamp2,
.line-clamp3,
.line-clamp4,
.line-clamp5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px; /*需要转单位*/
    white-space: normal;
}

.line-clamp2 {
    -webkit-line-clamp: 2;
}

/* 清除浮动 */
.clearfix {
    zoom: 1;
}
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

.show {
    display: block;
}
.hide {
    display: none;
}

