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

html,
body {
    height: 100%;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

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

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

.top-downloadbar {
    position: absolute !important;
    z-index: 30;
}

.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;
        // justify-content: center;
        // position: relative;
        // box-sizing: border-box;
        // // padding-bottom: 134px;
        overflow: hidden;

        .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-gradient {
        width: 100%;
        height: 60%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%,);
    }

    .magazine-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 40px;
        padding-right: 2px;
    }

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

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

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

        .m-buy-info {
            color: #fff;
            font-size: 24px;
            font-weight: bold;
        }

        .m-order {
            color: #fff;
            display: flex;
            align-items: center;
            font-weight: bold;

            &:before {
                content: "";
                width: 28px;
                height: 28px;
                margin-right: 10px;
                background-image: url("img/magazine/help-tip@2x.png");
                background-size: 100% 100%;
                background-repeat: no-repeat;
                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: 100PX;
    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;
        overflow-y: scroll;
    }

    .content {
        padding: 34px;
    }
}