_table.css 6.16 KB
.table {
    margin-bottom: $space;
    color: $fontColor;

    .bold {
        color: #222;
    }

    .order {
        margin-bottom: $space;
    }

    .table-header {
        margin: $space 0;
    }

    .no-pointer {
        cursor: auto !important;
    }

    .refund-tag {
        width: 55%;
        padding: 5px 0;
        border-radius: 10px;
        margin: 0 auto;
        background-color: orange;
        color: #fff;
    }

    .good-name-text {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        color: #1b1b1b;
    }

    .good-name-text:hover {
        text-decoration: underline;
    }

    .check-detail:hover {
        @extend .blue;
    }

    .change-tag {
        margin: 10px auto 0;
        color: #1b1b1b;

        &:hover {
            background-color: #1b1b1b;
            color: #fff;
        }
    }

    a.disable {
        color: #ccc;
    }

    .badge {
        min-width: 16px;
        line-height: 16px;
        display: inline-block;
        padding: 0 5px;
        position: absolute;
        top: 0;
        right: 14px;
        background-color: $skyBlue;
        color: #fff;
        border-radius: 9px;
        font-size: 12px;
    }

    .header {
        height: $headerHeight;
        line-height: $headerHeight;
        padding-left: 20px;
        font-size: $normalSize;
        background-color: $headerColor;
        border: 1px solid $borderColor;

        li {
            height: 100%;
            float: left;
            text-align: center;
            color: #1b1b1b;

            &.big-width {
                width: $bigWidth;
                text-align: left;
            }

            &.normal-width {
                width: $normalWidth;
            }

            &.content {
                margin-right: 25px;

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

    .table-body {
        display: table;
        font-size: $normalSize;
    }

    .goods-container {
        width: calc($bigWidth + $normalWidth + $space + 3px);
        display: table-cell;
        box-sizing: border-box;

        img {
            width: $goodImgWidth;
            height: $goodImgHeight;
            display: inline-block;
            box-sizing: border-box;
            margin: $bigSpace $space;
        }

        .good-info {
            display: inline-block;
            box-sizing: border-box;
            border: 1px solid $borderColor;
            border-top: none;
            font-weight: normal;
            width: 377px;

            .iconfont {
                font-weight: normal;
                color: #000;
            }

            &.last {
                border-bottom: none;
            }

            .detail {
                width: calc($bigWidth - $goodImgWidth - $space);
                padding: $bigSpace 25px 0 0;
                float: right;
                box-sizing: border-box;
                line-height: 1.4;
                font-size: $normalSize;
                color: $fontColor;

                .with-bottom-space {
                    margin-bottom: $smallSpace;
                    line-height: 20px;
                }

                span {
                    font-size: 12px;
                    color: #1b1b1b;
                }

                .with-space {
                    display: inline-block;
                    margin-right: $smallSpace;
                    margin-bottom: $smallSpace;
                }
            }
        }

        .sub-column {
            width: calc($normalWidth - 4px);
            display: inline-block;
            text-align: center;
            vertical-align: top;

            p {
                width: $normalWidth;
                height: calc(2 * $bigSpace + $goodImgHeight + 4px);
                float: right;
                padding-top: $bigSpace;
                border-bottom: 1px solid $borderColor;

                &.last {
                    border-bottom: none;
                    line-height: 20px;
                }
            }
        }

        .special-column {
            display: none;
        }
    }

    .special-border {
        border-right: 1px solid $borderColor;
        border-bottom: 1px solid $borderColor;
    }

    .common-column {
        width: $normalWidth;
        display: table-cell;
        text-align: center;
        vertical-align: top;
        padding-top: $bigSpace;
        position: relative;

        .left-time {
            min-height: $normalSize;
            margin-bottom: 14px !important;
        }

        .btn {
            display: inline-block;
            margin-bottom: 14px;
            cursor: pointer;

            &.black {
                margin-top: -5px;
            }
        }

        p {
            margin-bottom: $space;
            line-height: 20px;
        }

        .pay-operation {
            .iconfont {
                font-size: $normalSize;
            }

            .left-time {
                display: inline-block;
                height: $normalSize;
                margin-left: 5px;
            }
        }

        .subtext {
            font-size: 12px;
            cursor: pointer;
        }

        .no-space {
            margin: 0;
        }
    }

    &.empty {
        width: 100%;

        .bg {
            height: 250px;
            background-image: resolve("me/no-order.png");
            background-repeat: no-repeat;
            background-position: center bottom;
            background-size: 100px 125px;
        }

        .msg {
            margin-top: 45px;
            text-align: center;

            .msg-zh {
                font-size: 20px;
                line-height: 30px;
                margin-bottom: 15px;
            }

            .msg-en {
                margin-bottom: 40px;
                font-size: 14px;
            }

            .btn {
                display: inline-block;
                width: 130px !important;
                height: 40px !important;
                line-height: 40px !important;
                font-size: 14px;
            }
        }
    }

    .blk-pagination {
        margin: $bigSpace auto -$bigSpace;
        text-align: center;
    }
}