_fav.scss 2 KB
$fav: sprite-map("me/fav/*.png",$spacing: 5px);

.yoho-favorite-page {
    width: 100%;
    height: auto;

    // 选项卡切换
    .fav-tab {
        width: 100%;
        height: pxToRem(88px);
        line-height: pxToRem(88px);
        border-bottom: 1px solid #e0e0e0;
        color: #b0b0b0;
        font-size: pxToRem(26px);

        li {
            width: 50%;
            height: 100%;
            float: left;
            text-align: center;

            &.active {
                color: #444;
            }

            &:nth-last-of-type(1) {
                float: right;
                position: relative;

                &:after {
                    content: '';
                    display: block;
                    width: 1px;
                    height: pxToRem(44px);
                    position: absolute;
                    left: 0;
                    top: pxToRem(22px);
                    background: #b0b0b0;
                }
            }
        }
    }

    //收藏主体
    .fav-content {
        padding: 0 pxToRem(30px);

        .fav-null {
            font-size: pxToRem(22px);
            color: #444;
            display: block;
            margin-top: pxToRem(100px);
            text-align: center;

            &:before {
                content: '';
                display: block;
                @include rem-sprite($fav, fav-null);
                width: pxToRem(image_width(sprite-file($fav, fav-null)));
                height: pxToRem(image_height(sprite-file($fav, fav-null)));

                margin: 0 auto pxToRem(45px) auto;
            }
        }

        .go-shopping {
            width: pxToRem(472px);
            height: pxToRem(88px);
            line-height: pxToRem(88px);
            margin: pxToRem(125px) auto 0 auto;
            background: #444;
            text-align: center;
            color: #fff;
            display: block;
            font-size: pxToRem(26px);
        }
    }
}