featuretip.css 2.32 KB
.featuretip {
    &.tip-wrap {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        background: rgba(0, 0, 0, .5);
    }

    .tip {
        position: fixed;
        left: 50%;
        top: 50%;
        margin-left: -140px;
        margin-top: -140px;
        width: 280px;
        background: #fff;
        border-top: 40px solid #000;
        text-align: center;
        line-height: 1.25;
        z-index: 10;
    }

    .tip .title {
        margin: 25px auto 30px;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
    }

    .tip .highlight {
        font-size: 18px;
    }

    .tip .content {
        font-size: 14px;
        color: #444;
        text-align: center;
        line-height: 20px;
    }

    .tip .button {
        display: block;
        margin: 20px auto;
        width: 150px;
        height: 30px;
        font-size: 14px;
        line-height: 30px;
        text-align: center;
        color: #fff;
        background: #000;
        text-decoration: none;
    }

    .tip.coupon-tip {
        border-top: 0;
        background: url('//img11.static.yhbimg.com/sns/2018/10/16/19/0172232208d89e64d308dae5c4f5d5ac79.png') no-repeat;
        background-size: 100%;
        width: 200px;
        margin-left: -100px;
        padding-top: 100px;

        &:after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;
            bottom: 0;
            z-index: -1;
            background-color: #ce1230;
        }

        .title {
            font-size: 20px;
            color: #fff;
        }

        .content {
            font-size: 12px;
            color: #fff;
        }

        .button {
            background: none;
            color: #fff;
            border: 1px solid #fff;
        }
    }
}

.feature-toast {
    width: 100%;
    position: fixed;
    bottom: 10%;
    z-index: 9999;
    display: none;
    text-align: center;

    .feature-toast-content {
        max-width: 50%;
        font-size: 12px;
        background-color: #333;
        padding: 6px 10px;
        border-radius: 3px;
        color: #fff;
        opacity: 0.8;
        -webkit-opacity: 0.8;
        word-break: break-all;
        text-align: center;
        display: inline-block;
    }
}