_common.css 1.39 KB
@use postcss-clearfix ;

.clearfix {
    clear: fix;
}

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

html,
body {
    width: 100%;
    font-size: 24px;
    font-family: "PingFang SC", 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;
    max-width: 750px;
    width: 100%;
}

.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;
    text-overflow: ellipsis;
    white-space: nowrap;
}

img[lazy] {
    transition: all 200ms;
}

img[lazy=loading] {
    opacity: 0.2;
}

img[lazy=error] {
    opacity: 0;
}

img[lazy=loaded] {
    opacity: 1;
}

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

@for $i from 1 to 3 {
    .line-clamp-$i { /* stylelint-disable-line */
        @mixin line-clamp ;

        -webkit-line-clamp: $(i);
    }
}