select-giftcard.page.scss 3.23 KB
@use postcss-clearfix;

@mixin padding-30 {
    padding: 30px 30px 0;
}

$title-bg-color: #d0021b;
$title-font-color: #fff;
$couponRadius: 8px;
$fontColor: #444;
$fontGrayLight: #e0e0e0;
$border-radius: 25px;
$card-info-line-height: 44px;
$card-title-height: 88px;

.select-giftcard-page {
    @include 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: $card-title-height;
            line-height: $card-title-height;
            background-color: $title-bg-color;
            color: $title-font-color;
            border-top-left-radius: $border-radius;
            border-top-right-radius: $border-radius;

            .balance {
                height: $card-title-height;
            }

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

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

            .logo {
                height: $card-title-height;
                margin-right: 27px;

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

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

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

            > .content > .content-li {
                line-height: $card-info-line-height;

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

                .tip {
                    color: #d0021b;
                }
            }

            > .checkbox {
                width: 40px;
                padding-top: $card-info-line-height;
            }

            > .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 {
        @include 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;
            background-color: $fontGrayLight;

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

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