index.scss 2.12 KB
.size-area {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
}

.mask {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
}

.select-size {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: #fff;
    max-height: 1000px;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;

    .title {
        font-family: PingFang-SC-Medium;
        font-size: 32px;
        color: #000;
    }

    .size-list {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 20px;
        border-left: 1px solid #ddd;

        .size-item {
            border-top: 1rpx solid #ddd;
            border-right: 1px solid #ddd;
            border-bottom: 1px solid #ddd;
            box-sizing: border-box;
            text-align: center;
            width: 20%;
            height: 130px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            &.top-border {
                border-top: 1px solid #ddd;
            }

            .size {
                width: 100%;
                font-family: DINAlternate-Bold;
                font-size: 40px;
                color: #000;
            }

            .price {
                font-family: SFProText-Regular;
                font-size: 22px;
                color: #ccc;
                width: 100%;
            }

            &.actived {
                background: #08304B;

                .size {
                    color: #fff;
                }
            }

            .gray {
                color: #ccc;
            }
        }
    }

    .buy-btn {
        width: 670px;
        border-radius: 0 !important;
        background: #08304B;
        color: #fff;
        height: 120px;
        line-height: 120px;
        margin-top: 40px;

        &:after {
            border-radius: 0;
            border: none;
        }

        &.disabled {
            background: #ddd;
        }

        .price {
            color: #64AD88;
        }
    }
}