_common.css 1.19 KB
@use postcss-clearfix ;

.clearfix {
    clear: fix;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
    width: 100%;
    font-size: 24px;
    font-family: Helvetica, Roboto, "Heiti SC", "黑体", Arial;
    line-height: 1.4;
}

a {
    outline: none;
    color: #000;
    text-decoration: none;
}

input {
    border: 0;
}

ol,
ul {
    list-style: none;
}

*:focus {
    outline: none;
}

.main-wrap {
    position: relative;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    max-width: 750px;
}

.text-center {
    text-align: center;
}

.hide {
    display: none;
}

.overflow-hidden {
    overflow: hidden;
    height: 100%;
}

.right {
    float: right;
}

.left {
    float: right;
}

.hide {
    display: none;
}

.mr50 {
    margin-right: 50px;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@define-mixin line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

@for $i from 1 to 3 {
    .line-clamp-$i {
        -webkit-line-clamp: $(i);
        @mixin line-clamp;
    }
}