select-giftcard.page.css 2.93 KB
@use postcss-clearfix;

@define-extend padding-30 {
    padding: 30px 30px 0;
}

$title-bg-color: #d0021b;
$title-font-color: #fff;
$couponRadius: 8px;
$fontColor: #444;
$fontGrayLight: #e0e0e0;

.select-giftcard-page {
    @extend padding-30;

    background-color: #f0f0f0;
    padding-bottom: 88px;

    .hide {
        display: none;
    }

    .active {
        background-color: #444 !important;
    }

    .pull-left {
        float: left;
    }

    .pull-right {
        float: right;
    }

    .clearfix {
        clear: fix;
    }

    .giftcard {
        margin-bottom: 30px;

        > .card-title {
            height: 88px;
            line-height: 88px;
            background-color: $title-bg-color;
            color: $title-font-color;
            border-top-left-radius: 12.5px;
            border-top-right-radius: 12.5px;

            .balance > label {
                margin-left: 80px;
                font-size: 24px;
                font-weight: 400;
            }

            .balance > span {
                font-size: 48px;
            }

            .logo {
                margin-right: 20px;

                .iconfont {
                    font-size: 36px;
                }
            }
        }

        > .card-body {
            padding: 10px 30px;
            height: 188px;
            background-color: #fff;
            border-bottom-left-radius: 12.5px;
            border-bottom-right-radius: 12.5px;
            font-size: 22px;

            > .content {
                width: 590px;
                color: #444;
            }

            > .content > .content-li {
                line-height: 54px;

                > .left-label {
                    width: 90px;
                    font-weight: 600;
                }

                .tip {
                    color: #d0021b;
                }
            }

            > .checkbox {
                width: 40px;
                height: 188px;
                padding-top: 54px;
            }

            > .checkbox > .iconfont {
                font-size: 40px;
                color: #b0b0b0;
            }

            > .checkbox > .checked-icon {
                display: none;
            }
        }
    }

    .checked > .card-body > .checkbox > .checked-icon {
        display: block;
        color: #444;
    }

    .checked > .card-body > .checkbox > .no-checked-icon {
        display: none;
    }

    .use-giftcard-btn-group {
        @extend padding-30;

        width: 100%;
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 2;
        background-color: #fff;
        padding-top: 20px;
        padding-bottom: 20px;

        button {
            color: #fff;
            width: 330px;
            height: 70px;
            border-radius: $couponRadius;

            &.use {
                background-color: $fontColor;
            }

            &.not-use {
                background-color: $fontGrayLight;
            }
        }
    }
}