_header.css 4.76 KB
@define-extend nav {
    position: absolute;
    top: 0;
    display: block;
    width: 90px;
    height: 90px;
    outline: none;
    color: #fff;
    text-align: center;
    font-size: 20PX;
    line-height: 90px;
}

.width750 {
    .yoho-header {
        height: 105px;
        line-height: 105px;

        .nav-back {
            left: 0;
            width: 105px;
            height: 105px;
            line-height: 105px;
        }

        .nav-home {
            right: 0;
            width: 105px;
            height: 105px;
            line-height: 105px;
        }

        .nav-btn {
            right: 12px;
            width: 105px;
            height: 105px;
            line-height: 105px;
        }

        .nav-sub-right {
            @extend nav;

            width: 120px;
            height: 105px;
            line-height: 105px;
        }

        .nav-title {
            margin-right: 117px;
            margin-left: 117px;
            font-size: 42px;
            font-weight: normal;
        }

        .my-reward {
            font-size: 28px;
            width: auto;
        }

        .save {
            font-size: 28px;
        }
    }
}

.yoho-header {
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 90px;
    background-color: #000;
    background-image: linear-gradient(#323232, #414141);
    color: #fff;
    line-height: 90px;

    &.boys {
        background-image: linear-gradient(#323232, #414141);
    }

    &.girls {
        background: #ff88ae;
    }

    &.kids {
        background: #7ad9f9;
    }

    &.life-style {
        background: #4f4138;
    }

    a.highlight {
        background: rgba(200, 200, 200, 0.1);
    }

    .nav-back {
        @extend nav;

        left: 10px;
    }

    .nav-home {
        @extend nav;

        right: 10px;
    }

    .nav-btn {
        @extend nav;

        right: 10px;
        font-size: 14PX;
    }

    .nav-sub-right {
        @extend nav;

        right: 100px;
    }

    .nav-title {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        overflow: hidden;
        margin-right: 100px;
        margin-left: 100px;
        height: 100%;
        color: #fff;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: bold;
        font-size: 36px;
    }
}

.width750 {
    .system-update {
        height: 105px;
        line-height: 105px;

        .system-header {
            font-size: 70px;
        }

        span {
            font-size: 94px;
        }
    }
}

.system-update {
    display: none;
    overflow: hidden;
    width: 100%;
    height: 90px;
    background-image: linear-gradient(#323232, #414141);
    line-height: 90px;

    .system-header {
        float: left;
        overflow: hidden;
        width: 85%;
        height: 100%;
        color: #fff;
        text-align: center;
        font-size: 60px;
    }

    span {
        float: left;
        overflow: hidden;
        width: 14%;
        height: 100%;
        color: #fff;
        text-align: center;
        font-weight: bold;
        font-size: 80px;
    }
}

.width750 {
    .homebuttom {
        height: 355px;
        top: 105px;
    }
}

.homebuttom {
    width: 280px;
    height: 355px;
    position: absolute;
    top: 90px;
    right: 12px;
    z-index: 2;
    overflow: hidden;
    color: #fff;
    background-size: 100% 100%;
    padding-top: 17px;

    &.boys {
        background-image: resolve("common/homebuttom-bg.png");

        li {
            span {
                border-bottom: solid 1px #444;
            }
        }
    }

    &.girls {
        background-image: resolve("common/homebuttom-bg-1.png");
    }

    &.kids {
        background-image: resolve("common/homebuttom-bg-2.png");
    }

    &.life-style {
        background-image: resolve("common/homebuttom-bg-3.png");
    }

    ul {
        overflow: hidden;
        width: 100%;
        height: 338px;
        padding: 1px 0;

        li {
            float: left;
            overflow: hidden;
            width: 100%;
            height: 84px;
            line-height: 84px;
            padding-left: 40px;

            i {
                display: block;
                float: left;
                font-size: 30px;
                color: #fff;
                width: 70px;
            }

            span {
                display: block;
                float: left;
                font-size: 28px;
                color: #fff;
                width: 170px;
                height: 84px;
                border-bottom: solid 1px #fff;
                padding-left: 20px;
            }
        }

        li:last-child {
            span {
                border-bottom: 0;
            }
        }
    }
}

.is-mars-app {
    .yoho-header {
        display: none;
    }
}