styles.scss 3.7 KB
Newer Older
B
Boris Sekachev 已提交
1
// Copyright (C) 2022 Intel Corporation
2
// Copyright (C) 2022 CVAT.ai Corporation
B
Boris Sekachev 已提交
3 4 5
//
// SPDX-License-Identifier: MIT

6
@import '../../base';
B
Boris Sekachev 已提交
7 8 9 10 11 12

.cvat-jobs-page {
    padding-top: $grid-unit-size * 2;
    padding-bottom: $grid-unit-size;
    height: 100%;
    width: 100%;
13
    overflow: auto;
B
Boris Sekachev 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

    > div:nth-child(1) {
        div > {
            .cvat-title {
                color: $text-color;
            }
        }
    }

    > div:nth-child(2) {
        &.ant-empty {
            position: absolute;
            top: 40%;
            left: 50%;
        }

        padding-bottom: $grid-unit-size;
        padding-top: $grid-unit-size;
    }

    .cvat-job-page-list-item {
        width: 25%;
36
        border-width: $grid-unit-size * 0.5;
B
Boris Sekachev 已提交
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
        display: flex;
        flex-direction: column;

        .ant-card-cover {
            flex: 1;
            height: 0;
            margin: 0;
        }

        .ant-card-body {
            padding: $grid-unit-size;

            .ant-descriptions-item {
                padding: 0;
            }
        }

        &:hover {
            .cvat-job-page-list-item-id {
                opacity: 1;
            }

            .cvat-job-page-list-item-dimension {
                opacity: 1;
            }
        }

64 65 66 67
        :nth-child(4n) {
            border-right: 0;
        }

68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
        .cvat-jobs-page-job-item-card-preview-wrapper {
            height: 100%;
            width: 100%;

            > .cvat-jobs-page-job-item-card-preview {
                .ant-empty-image {
                    height: $grid-unit-size * 10;
                }

                height: 100%;
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-around;
                object-fit: cover;
                cursor: pointer;
            }
        }

        .cvat-job-item-loading-preview,
        .cvat-job-item-empty-preview {
89
            @extend .cvat-base-preview;
90

91 92 93
            &:hover {
                cursor: pointer;
            }
B
Boris Sekachev 已提交
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
        }

        .cvat-job-page-list-item-dimension {
            position: absolute;
            top: 0;
            right: 0;
            margin: $grid-unit-size;
            width: $grid-unit-size * 4;
            background: white;
            border-radius: 4px;
            text-align: center;
            opacity: 0.5;
            padding: $grid-unit-size;
        }

        .cvat-job-page-list-item-id {
            position: absolute;
            top: 0;
            left: 0;
            margin: $grid-unit-size $grid-unit-size $grid-unit-size 0;
            width: fit-content;
            background: white;
            border-radius: 0 4px 4px 0;
            padding: $grid-unit-size;
            opacity: 0.5;
            transition: 0.15s all ease;
            box-shadow: $box-shadow-base;
        }
    }

    .cvat-jobs-page-pagination {
        display: flex;
        justify-content: center;
    }

    .cvat-jobs-page-list {
        display: flex;
        flex-wrap: wrap;
    }

    .cvat-job-card-more-button {
        position: absolute;
        bottom: $grid-unit-size * 2;
        right: $grid-unit-size;
        font-size: 16px;
    }
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
}

.cvat-jobs-page-top-bar {
    > div {
        display: flex;
        justify-content: space-between;

        > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;

            .cvat-jobs-page-search-bar {
                width: $grid-unit-size * 32;
                padding-left: $grid-unit-size * 0.5;
            }

            > div {
                > *:not(:last-child) {
                    margin-right: $grid-unit-size;
                }

                display: flex;
            }
        }
    }
167
}