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

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

.cvat-models-page {
9 10
    padding-top: $grid-unit-size * 2;
    padding-bottom: $grid-unit-size;
B
Boris Sekachev 已提交
11
    overflow: auto;
12
    position: fixed;
K
Kirill Lakhov 已提交
13
    height: 100%;
14
    width: 100%;
15 16 17 18

    >div:nth-child(2) {
        height: 80%;
    }
B
Boris Sekachev 已提交
19 20 21
}

.cvat-empty-models-list {
22 23 24 25
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
B
Boris Sekachev 已提交
26 27 28
}

.cvat-models-list {
K
Kirill Lakhov 已提交
29 30
    display: flex;
    flex-wrap: wrap;
B
Boris Sekachev 已提交
31 32 33
}

.cvat-models-list-item {
K
Kirill Lakhov 已提交
34
    position: relative;
B
Boris Sekachev 已提交
35
    width: 100%;
36
    height: auto;
B
Boris Sekachev 已提交
37 38
    border: 1px solid $border-color-1;
    border-radius: 3px;
39 40
    margin-bottom: $grid-unit-size * 2;
    padding: $grid-unit-size * 2;
B
Boris Sekachev 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    background: $background-color-1;

    &:hover {
        border: 1px solid $border-color-hover;
    }

    > div {
        display: flex;
        align-items: center;
    }

    > div:nth-child(2) > span {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    > div:nth-child(3) > span {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }
}
K
Kirill Lakhov 已提交
64 65 66 67 68 69 70 71 72

.cvat-models-item-card-removed {
    opacity: 0.5;
    pointer-events: none;
}

.cvat-models-page-top-bar {
    margin: $grid-unit-size * 3 0;

73 74 75 76 77
    .cvat-models-page-search-bar {
        width: $grid-unit-size * 32;
        padding-left: $grid-unit-size * 0.5;
    }

K
Kirill Lakhov 已提交
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 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
    > div {
        display: flex;
    }
}

.cvat-models-heading {
    padding: $grid-unit-size * 2;
}

.cvat-models-page-filters-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;

    > div {
        display: flex;
        margin-right: $grid-unit-size * 4;

        > button {
            margin-right: $grid-unit-size;
        }
    }
}

.cvat-models-add-wrapper {
    display: inline-block;
}

.cvat-model-delete {
    position: absolute;
    top: $grid-unit-size;
    right: $grid-unit-size;
    color: #8c8c8c;
    font-size: 10px;

    &:hover {
        cursor: pointer;
        color: #595959;
    }
}

.cvat-models-item-card {
    width: 25%;
122
    border-width: $grid-unit-size * 0.5;
K
Kirill Lakhov 已提交
123 124 125 126 127 128
    height: $grid-unit-size * 28;
    overflow: hidden;

    .ant-card-meta-title {
        margin-bottom: 0 !important;
    }
129 130 131 132

    &:nth-child(4n) {
        border-right: 0;
    }
K
Kirill Lakhov 已提交
133 134 135 136
}

.cvat-model-item-loading-preview,
.cvat-model-item-empty-preview {
137
    @extend .cvat-base-preview;
K
Kirill Lakhov 已提交
138 139 140 141 142 143 144 145

    height: $grid-unit-size * 18;

    &:hover {
        cursor: pointer;
    }
}

146 147 148 149
.cvat-model-item-loading-preview {
    padding-top: $grid-unit-size * 3;
}

K
Kirill Lakhov 已提交
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
.cvat-models-item-card-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: $grid-unit-size * 18;
    overflow: hidden;

    &:hover {
        cursor: pointer;
    }
}

.cvat-model-item-provider {
    position: absolute;
    top: $grid-unit-size;
    right: $grid-unit-size;
}

.cvat-model-item-provider-inner {
    @extend .cvat-model-item-provider;

    right: $grid-unit-size * 2;

    svg {
        width: $grid-unit-size * 4;
        height: $grid-unit-size * 4;
    }
}

.cvat-models-item-description {
    font-size: 14px;
    display: flex;
    justify-content: space-between;

    > div > span:nth-child(2) {
        margin-left: $grid-unit-size;
    }

    button {
        position: relative;
        color: black;
        margin-top: -$grid-unit-size * 2;
        margin-right: -$grid-unit-size;
    }

    &:hover {
        cursor: pointer;
    }
}

.cvat-model-info-modal {
    .ant-modal-body {
        position: relative;
        padding: 0;

        >.cvat-model-info-container:not(:last-child) {
            padding: 0 $grid-unit-size * 3;
        }

        >.cvat-model-info-container:last-child {
            padding: 0 $grid-unit-size * 3 $grid-unit-size * 3 $grid-unit-size * 3;
        }
    }

    h3 {
        margin-top: $grid-unit-size * 2;
    }
}

.cvat-model-info-modal-labels-title {
    font-size: 16px;
}

.cvat-model-info-modal-labels-list {
    margin-top: $grid-unit-size;
    max-height: $grid-unit-size * 18;
    overflow: auto;

    .ant-tag {
        margin-top: $grid-unit-size;
    }
}

.cvat-models-item-title {
    &:hover {
        cursor: pointer !important;
    }
}

.cvat-models-item-text-description {
    max-width: 80%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-height: $grid-unit-size * 3;
    display: inline;
}