template.scss 4.1 KB
@import "common/common", "common/brands", "common/good-info";

body {
    background-color: #f0f0f0;
}

.template-container .tpl-block:first-child {
    border-top: none;
}

.tpl-block {
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 30rem / $pxConvertRem;
    background-color: #fff;
}

.intro .img-container {
    width: 100%;
    height: 304rem / $pxConvertRem;

    .img {
        width: 100%;
        height: 100%;
    }
}

.intro .text {
    padding: 20rem / $pxConvertRem 30rem / $pxConvertRem;
    padding-bottom: 0;
    line-height: 46rem / $pxConvertRem;
    font-size: 28rem / $pxConvertRem;
    color: #444;
}

.reco .reco-good-info {
    float: left;
    width: 212rem / $pxConvertRem;
    border-left: 1px solid #e0e0e0;

    .thumb {
        width: 100%;
        height: 285rem / $pxConvertRem;
    }
}

.reco .reco-good-info:first-child {
    border-left: none;
}

.reco .reco-good-info .text-container {
    padding: 10rem / $pxConvertRem 15rem / $pxConvertRem;
}

.reco .reco-good-info .name {
    display: block;
    line-height: 28rem / $pxConvertRem;
    text-decoration: none;
    font-size: 22rem / $pxConvertRem;
    color: #444;
    margin-bottom: 10rem / $pxConvertRem;
}

.reco .reco-good-info .price {
    line-height: 22rem / $pxConvertRem;
    font-size: 22rem / $pxConvertRem;
    color: #b0b0b0;
    text-decoration: line-through;
}

.reco .reco-good-info .sale-price {
    line-height: 22rem / $pxConvertRem;
    font-size: 22rem / $pxConvertRem;
    color: #d62927;
}

.goods .goods-nav {
    width: 100%;
    padding: 20rem / $pxConvertRem 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-item {
    position: relative;
    display: inline-block;
    color: #c0c0c0;
    text-align: center;
    width: 140rem / $pxConvertRem;
    border-left: 1px solid #e0e0e0;
    font-size: 35rem / $pxConvertRem;

    &:first-child {
        border-left: none;
    }

    &.focus {
        color: #444;

        .iconfont {
            color: #c0c0c0;
        }
        
        .iconfont.cur {
            color: #444;
        }
    }
}

.sort {
    position: absolute;
    right: 0;
    top: -14rem / $pxConvertRem;
    width: 12px;
    overflow: hidden;
    vertical-align: top;

    i {
        font-size: 10px;
        position: relative;

        &.down {
            top: -18rem / $pxConvertRem;
        }
    }
}

.goods .goods-container {
    padding: 0 14rem / $pxConvertRem;

    .goods-content {
        position: relative;
        padding-top: 30rem / $pxConvertRem;
        min-height: 500rem / $pxConvertRem;
    }
}

.c-item {
    vertical-align: top;

    .chosed {
        display: inline-block;
        max-width: 168rem / $pxConvertRem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

.screen-mask, .screen-content{
    position: absolute;
    margin: 0 -14rem / $pxConvertRem;
    left: 0;
    right: 0;
    top: 1px;
}

.screen-mask {
    height: 100%;
    background-color: #000;
    opacity: 0.1;
    filter: Alpha(opacity=10);
}

.screen-content {
    z-index: 100;
    background-color: #fff;
    font-size: 28rem / $pxConvertRem;
    color: #000;
    height: 500rem / $pxConvertRem;

    .classify, .sub-classify-container {
        float: left;
        width: 50%;
        height: 100%;
    }

    .classify {
        background-color: #f8f8f8;

        li {
            height: 60rem / $pxConvertRem;
            line-height: 60rem / $pxConvertRem;
            padding: 0 30rem / $pxConvertRem 0 20rem / $pxConvertRem;

            &.active {
                background-color: #fff;
            }
        }
    }

    .classify .default {
        color: #999;
    }

    .sub-classify-container {
        overflow: auto;

        .sub-classify {
            padding-left: 15rem / $pxConvertRem;

            li {
                height: 60rem / $pxConvertRem;
                line-height: 60rem / $pxConvertRem;
                border-bottom: 1px solid #e6e6e6;
            }
        }
    }
}

.sub-classify .chosed-icon {
    display: none;
    margin-left: 10rem / $pxConvertRem;
}

.sub-classify li.chosed .chosed-icon {
    display: inline-block;
}