_header.css 8.17 KB
.yoho-header {
    height: 50px;
    line-height: 50px;
    font-size: 12px;

    .yoho-group-map {
        padding-right: 2px;
        display: inline-block;
        position: relative;

        .iconfont {
            font-size: 18px;
            position: relative;
            top: -1px;
        }

        a {
            vertical-align: top;
        }

        .yoho-group {
            font-size: 14px;
            display: none;
        }

        &:hover {
            height: 50px;
            border-bottom: 2px solid #9a9a9a;

            > * {
                color: #9a9a9a;
            }

            .yoho-group {
                display: block;
            }
        }

        .yoho-group {
            border: 1px solid #eee;
            line-height: 32px;
            padding: 20px 0;
            background: #fff;
            position: absolute;
            z-index: 50;
            top: 50px;

            li {
                width: 170px;
                padding-left: 20px;
                font-weight: bold;
            }

            a:hover {
                color: #9a9a9a;
            }

        }
    }

    .header-tools {
        li {
            float: left;
            padding: 0 2px;
            margin: 0 12px;
        }

        .tag-phone,
        .tag-bag {
            padding-right: 6px;
            margin-right: 8px;
            position: relative;

            &:hover {
                color: #9a9a9a;
                height: 50px;
                border-bottom: 2px solid #9a9a9a;
                cursor: default;
            }

            &:hover > a {
                color: #9a9a9a;
            }

            &:hover .sub-wrapper {
                display: block;
            }
        }

        .tools-icon {
            width: 20px;
            height: 20px;
            display: inline-block;
            vertical-align: middle;
            position: relative;
            top: -1px;
        }

        .icon-phone {
            background-image: url('/layout/phone.png');
        }

        .icon-bag {
            background-image: url('/layout/bag.png');
            line-height: 22px;
            text-align: center;
        }

        .bag-num {
            font-size: 12px;
            font-weight: bold;
            color: #fff;
            display: inline-block;
            transform: scale(0.8, 0.8);
        }

        .down-app-box {
            width: 230px;
            color: #000;
            font-size: 14px;
            padding: 20px 0;
            margin-left: -86px;
            line-height: 1.5;
            border: 1px solid #eee;
            background: #fff;
            position: absolute;
            z-index: 50;
            text-align: center;
            display: none;

            .down-qr {
                display: inline-block;
                width: 138px;
                height: 138px;
                background-image: resolve('layout/qr.png');
            }

            p {
                margin: 20px 0;
            }

            .more-app {
                color: #ccc;
            }
        }

        .mini-bag-box {
            width: 370px;
            padding: 18px;
            border: 1px solid #eee;
            background: #fff;
            position: absolute;
            z-index: 50;
            right: 0;
            display: none;

            .bag-content {
                padding: 280px 0 130px;
                text-align: center;
                color: #1d1d1d;
                background: resolve('layout/bag-bg.png') no-repeat center center;
                display: none;
            }

            .bag-goods {
                background: #fff;
            }

            .go-bag-btn {
                font-size: 20px;
                line-height: 1;
                padding-top: 24px;
                border-top: 1px solid #ddd;
                text-align: center;
            }

            .bag-empty {
                display: none;
            }

            .bag-empty + .bag-content {
                display: block;
            }
        }

        .goods-item {
            line-height: 2;
            padding: 6px 0;
            color: #1d1d1d;
            font-size: 14px;

            & > * {
                float: left;
            }

            .thumb {
                width: 58px;
                height: 64px;
            }

            .info {
                width: 160px;
                padding-left: 10px;
            }

            .price {
                width: 100px;
                text-align: right;
            }
        }
    }
}

.yoho-nav {
    .main-nav {
        height: 80px;

        .main-nav-list {
            li {
                float: left;
                height: 21px;
                margin-top: 38px;
                margin-right: 30px;
                font-weight: bold;
            }

            li > a {
                color: #999;
            }

            .cur {
                border-bottom: 2px solid #1d1d1d;
            }

            .cur > a {
                color: #1d1d1d;
            }
        }

        .main-logo {
            width: 264px;
            height: 40px;
            left: 50%;
            position: absolute;
            margin-left: -132px;
            margin-top: 20px;
            background: resolve('layout/blk-logo.png') no-repeat center center;

            a {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
    }

    .sub-nav {
        height: 50px;
        background: #1d1d1d;

        .sub-nav-list {
            max-width: 94%;
            line-height: 50px;
            display: inline-block;

            li {
                float: left;
                margin-right: 66px;
            }

            li > a {
                color: #fff;
            }

            li:hover > a {
                display: inline-block;
                height: 40px;
                border-bottom: 2px solid #fff;
            }
        }

        .search-entry {
            float: right;
            width: 50px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            position: relative;
            color: #fff;
            cursor: pointer;

            .iconfont {
                font-size: 16px;
            }
        }

        .search-wrapper {
            width: 360px;
            padding: 16px 0 10px;
            font-size: 14px;
            top: 50px;
            right: 0;
            position: absolute;
            background: #1d1d1d;
            text-align: left;
            display: none;
            z-index: 10;
        }

        .search-input {
            font-size: 16px;
            padding: 0 20px;

            .search-key {
                width: 260px;
                height: 30px;
                padding: 0 10px;
                background: none;
                border: none;
                color: #fff;
            }

            .clear-input {
                display: none;
            }
        }

        .search-hint {
            display: none;

            li {
                line-height: 30px;
                padding: 0 20px;
            }

            .cur {
                background: #000;
            }

            a {
                color: #fff;
            }
        }

        .hot-search {
            line-height: 65px;
            margin: 0 20px;
            border-top: 1px solid #fff;

            a {
                color: #fff;
                margin-right: 15px;
            }
        }
    }

    .third-nav-wrapper {
        padding: 30px 0;
        font-size: 14px;
        position: absolute;
        background: #fff;
        width: 100%;
        left: 0;
        display: none;
        z-index: 10;

        dl {
            float: left;
            height: 330px;
            line-height: 1;
            box-sizing: border-box;
            border-left: 1px solid #eee;
            padding: 0 20px;

            &:first-child {
                border-left: 0;
                padding-left: 0;
            }

            > * {
                width: 230px;
                height: 35px;
            }

            a {
                color: #666;
            }
        }

        dt > a {
            color: #000;
            text-decoration: underline;
        }
    }
}