_header.css 5.36 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;
            font-size: 32px;
        }

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

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

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

.yoho-header {
    position: relative;
    z-index: 999;
    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: 0;
    }

    .nav-home {
        @extend nav;

        right: 0;
    }

    .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: 93px;
    }
}

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

    &.boys {
        ul {
            background-image: linear-gradient(#434343, #171717);

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

        .ul-arr {
            background-color: #434343;
        }
    }

    &.girls {
        ul {
            background-image: linear-gradient(#fc89ad, #e96e94);
        }

        .ul-arr {
            background-color: #fc89ad;
        }
    }

    &.kids {
        ul {
            background-image: linear-gradient(#7ed3f7, #5fc9f6);
        }

        .ul-arr {
            background-color: #7ed3f7;
        }
    }

    &.life-style {
        ul {
            background-image: linear-gradient(#5e4a3c, #4c3727);
        }

        .ul-arr {
            background-color: #5e4a3c;
        }
    }

    .ul-arr {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 4px;
        right: 32px;
        transform: rotate(45deg);
    }

    ul {
        overflow: hidden;
        width: 100%;
        height: 338px;
        padding: 1px 0;
        border-radius: 10px;

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