_detail.scss 3.37 KB
.detail-title {
    margin: (15rem / $remNum) 0;
    padding: 0 0 0 (14rem / $remNum);
    .title {
        line-height: 24rem / $remNum;
        font-size: 20rem / $remNum;
        font-weight: bold;
    }
    .subtitle {
        margin: (5rem / $remNum) 0 0 0;
        font-size: 12rem / $remNum;
        line-height: 15rem / $remNum;
        color: #a5a5a5;
    }
}

.detail-slide {
    .slide-box {
        height: 206rem / $remNum;
        .slide-wrap .box img {
            height: 206rem / $remNum;
        }
    }
}

.brand-title {
    margin: (8rem / $remNum) 0;
    .title {
        font-size: 16rem / $remNum;
        text-align: center;
    }
}

.detail-article {
    margin: (15rem / $remNum) (15rem / $remNum) 0;
    font-size: 14rem / $remNum;
    line-height: 24rem / $remNum;
    img {
        margin-left: -15rem / $remNum;
        width: 320rem / $remNum; 
    }
    p {
        margin: (10rem / $remNum) 0;
        font-size: 14rem / $remNum;
        line-height: 24rem / $remNum;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}

.related-post {
    margin: (28rem / $remNum) (17rem / $remNum) 0 (17rem / $remNum);
    h2 {
        font-weight: bold;
        font-size: 16rem / $remNum;
        line-height: 18rem / $remNum;
    }
    ul {
        margin: (4rem / $remNum) 0 0 0;
        li {
            margin: (16rem / $remNum) 0 0 0;
            padding: (16rem / $remNum) 0 0 0;
            border-top: 1px solid #e5e5e5;
            a {
                display: block;
            }
            .image-box {
                float: left;
                width: 96rem / $remNum;
                height: 61rem / $remNum;
                vertical-align: middle;
                text-align: center;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    vertical-align: middle;
                }
            }
            .content {
                float: left;
                width: 182rem / $remNum;
                margin: (8rem / $remNum) 0 0 (8rem / $remNum);
                font-size: 14rem / $remNum;
                line-height: 22rem / $remNum;
                color: #000;
            }
            &:first-child {
                border-top: none; 
            }
        }
    }
}

.share {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0), #ffffff);
    text-align: center;
    ul {
        display: inline-block;
    }
    li {
        float: left;
        margin-left: 41rem / $remNum;
        a {
            display: block;
            width: 46px;
            height: 48px;
            background-image: image-url("share.png");
            background-size: 100% auto;
        }
        &:first-child {
            margin-left: 0;
        }
    }
    .yohoo-share-button-sina {
        a {
            background-position: 0 -151px;
        }
    }
    .yohoo-share-button-qq {
        a {
            background-position: 0 -50px;
        }
    }
}

.enter-store {
    display: block;
    width: 94rem / $remNum;
    height: 33rem / $remNum;
    margin: (15rem / $remNum) auto 0;
    padding-left: 34px;
    line-height: 35rem / $remNum;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    background: url("../images/yohood/enter-store.png") no-repeat 10px center;
    text-decoration: none !important;
}