_detail.scss 5.52 KB
.detail-title {
    margin: 48px 0 28px;
    width: 644px;
    font-size: 28px;
    h2, h3 {
        line-height: 40px;
        font-weight: bold;
    }
    .time {
        font-size: 12px;
        color: #b2b2b2;
        line-height: 24px;
    }
}

.detail-body {
    float: left;
    width: 644px;
    img {
        max-width: 100%;
    }
}

.detail-slide {
    margin-bottom: 20px;
}

.detail-slide-body {
    position: relative;
    width: 100%;
    height: 415px;
    overflow: hidden;
    .detail-slide-piclist {
        height: 415px;
        overflow: hidden;
        position: relative;
        .box {
            float: left;
            width: 644px;
            height: 415px;
            line-height: 415px;
            position: relative;
            background: #000;
            text-align: center;
            img {
                max-width: 100%;
                vertical-align: middle;
            }
        }
    }
}

.slide-shadow {
    a {
        position: absolute;
        width: 322px;
        top: 0;
        bottom: 0;
        &:focus {
            outline: none;
        }
    }
    .slide-shadow-prev {
        left: 0;
    }
    .slide-shadow-next {
        right: 0;
    }
}

.detail-slide-big-ctrl {
    a {
        display: none;
        position: absolute;
        font-size: 40px;
        top: 50%;
        color: #fff;
        margin-top: -30px;
        z-index: 20;
        &:focus {
            outline: none;
        }
    }
    .slide-big-ctrl-prev {
        left: 5px;
    }
    .slide-big-ctrl-next {
        right: 5px;
    }
}

.detail-slide-ctrl {
    padding: 15px 0 0 0;
    width: 100%;
    height: 65px;
    overflow: hidden;
    position: relative;
    .detail-slide-ctrl-prev, .detail-slide-ctrl-next {
        display: none;
        position: absolute;
        top: 15px;
        width: 30px;
        height: 65px;
        line-height: 65px;
        background: rgba(230, 230, 230, 0.9);
        font-size: 18px;
        text-align: center;
        color: #000;
        background: #fff\9;
        filter: alpha(opacity = 90);
    }
    .detail-slide-ctrl-prev {
        left: 0;
    }
    .detail-slide-ctrl-next {
        right: 0;
    }
}

.detail-slide-ctrl-tabs {
    position: relative;
    left: 0;
    top: 0;
    li {
        position: relative;
        float: left;
        padding: 0 0 0 9px;
        img {
            display: block;
            width: 100px;
            height: 65px;
        }
    }
    li:first-child {
        padding: 0;
    }
    li:first-child.current, li:first-child.swiper-slide-active {
        .border {
            left: 0px;
        }
    }
    li.current, li.swiper-slide-active {
        .border {
            position: absolute;
            left: 7px;
            right: 0px;
            top: 0px;
            bottom: 0px;
            border: 2px solid #000;
        }
        .arrow {
            position: absolute;
            top: -9px;
            left: 50%;
            margin: 0 0 0 -9px;
            width: 0;
            height: 0;
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-bottom: 9px solid black;
        }
    }
}

.text-body {
    margin: 0 0 25px 0;
    font-size: 14px;
    line-height: 28px;
    color: #000;
    p {
        margin: 0 0 25px;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
}

.detail-related-post {
    h3 {
        font-weight: bold;
    }
}

.detail-side {
    width: 280px;
    float: right;
    padding-bottom: 62px;
}

.detail-ad {
    margin-bottom: 28px;
    li {
        margin-bottom: 15px;
        img {
            display: block;
        }
    }
}

.app-download {
    width: 278px;
    height: 158px;
    border: 1px solid #000;
    .qr {
        float: left;
        margin: 22px 0 0 18px;
        width: 114px;
        height: 114px;
        img {
            display: block;
            width: 100%;
        }
    }
    .download-text {
        float: left;
        margin: 20px 0 38px 12px;
        width: 108px;
        img {
            display: block;
            width: 50px;
        }
        p {
            font-size: 12px;
            color: #666;
        }
        .yoho-name {
            font-size: 18px;
            color: #000;
            font-weight: bold;
        }
    }
}

.side-related-post.fix {
    position: fixed;
    top: 0px;
    left: 50%;
    width: 280px;
    margin-left: 210px;
}

.side-related-tab {
    border-bottom: 1px solid #000;
    a {
        float: left;
        width: 140px;
        text-align: center;
        font-size: 18px;
        line-height: 38px;
        color: #000;
        font-weight: bold;
    }
    a.current {
        border-bottom: 2px solid #000;
    }
}

.side-related-list {
    display: none;
    &.current {
        display: block;
    }
    .layout-item {
        float: none;
        margin: 20px 0 0 0;
        .image-box {
            float: left;
            width: 82px;
            height: 53px;
            overflow: hidden;
            img {
                display: block;
                width: 100%;
                height: 100%;
            }
            .play-icon {
                width: 20px;
                height: 20px;
                margin: -10px 0 0 -10px;
            }
        }
        .content {
            float: left;
            margin-left: 16px;
            width: 182px;
            h2 {
                margin: 0;
                a {
                    font-size: 14px;
                    font-weight: normal;
                    line-height: 20px;
                }
            }
        }
    }
}