detail.page.scss 3.47 KB
@import "~scss/layout/swiper";

html,
body {
    height: 100%;
}

.main-wrap {
    min-height: 100%;
}

.yoho-header {
    background-image: none !important;
    background-color: initial !important;
    margin-bottom: -90px;
}

.magazine-cover-container {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #eee;

    .swiper-container {
        height: 100%;
    }

    .swiper-slide {
        display: flex;
        align-items: center;
        position: relative;
        box-sizing: border-box;
        padding-bottom: 134px;

        .filter-bg {
            filter: blur(20px);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: -1;
        }

        .cover-img {
            width: 100%;
            height: auto;
        }
    }

    .swiper-pagination {
        bottom: 580px;
        line-height: 0;

        .swiper-pagination-bullet {
            width: 54px;
            height: 8px;
            border-radius: 0;
            margin: 0;
            opacity: 0.3;
        }

        .swiper-pagination-bullet-active {
            background: #fff;
            opacity: 1;
        }
    }

    .magazine-info-block {
        width: 100%;
        height: 0;
        padding: 0 40px;
        position: absolute;
        z-index: 2;
        bottom: 540px;

        .m-time {
            font-size: 24px;
            color: #ddd;
            line-height: 1.2;
        }

        .m-title {
            height: 100px;
            margin: 10px 0 40px;
            font-size: 40px;
            color: #fff;
            letter-spacing: 1px;
            font-weight: 500;
            line-height: 1.3;
            overflow: hidden;
        }

        .m-order {
            margin-bottom: 40px;
            color: #fff;

            &:before {
                content: "";
                width: 26px;
                height: 21px;
                margin-right: 10px;
                background-image: url("img/magazine/crown.png");
                background-size: 100% 100%;
                display: inline-block;
            }
        }

        .buy-magazine-now {
            width: 100%;
            height: 80px;
            display: block;
            color: #fff;
            background: #292934;
            border-radius: 8px;
        }
    }
}

.magazine-detail-container {
    width: 100%;
    height: 100%;
    background-color: #fff;
    margin-top: -160px;
    padding-bottom: 90px;
    border-radius: 20px;
    position: fixed;
    top: 100%;
    z-index: 3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    .touch-area {
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        &:before {
            content: "";
            width: 80px;
            height: 6px;
            background-color: #eee;
            border-radius: 3px;
            display: block;
        }
    }

    .tab-wrap {
        height: 44px;
        line-height: 42px;
        border-bottom: 2px solid #eee;
        flex-shrink: 0;

        label {
            font-size: 24px;
            color: #000;
            font-weight: 500;
            margin: 0 100px 0 34px;
        }
    }

    .detail-container {
        flex-grow: 1;
    }

    .content {
        padding: 34px;
    }
}