_common.css 1.62 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 {
    height: 100%;
    width: 100%;
    overflow: hidden;

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

/* stylelint-disable */
.app::-webkit-scrollbar {
    display: none;
}
/* stylelint-enable */

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 100ms;
}

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);
    }
}