/
vshmidt
/
label-studio
Обзор
Документация
Войти
/
vshmidt
/
label-studio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
web/libs/datamanager/src/components/MainView/GridView/GridView.prefix.css
190 строк
4 KB
Raul Martin
refactor: ECHO-448: Biome - enable format (#9625)
17 мар 2026, 18:27
Не верифицирован
17 мар 2026, 18:27
567cb96
Код
Авторство
О чём код?
.grid-view { flex: 1; &__resize { width: 100%; } &__list { padding: 0 0 16px; } &_columnCount { &_1 { & .grid-view__cell:nth-child(1n) { padding-right: 0; } } &_2 { & .grid-view__cell:nth-child(2n) { padding-right: 0; } } &_3 { & .grid-view__cell:nth-child(3n) { padding-right: 0; } } &_4 { & .grid-view__cell:nth-child(4n) { padding-right: 0; } } &_5 { & .grid-view__cell:nth-child(5n) { padding-right: 0; } } &_6 { & .grid-view__cell:nth-child(6n) { padding-right: 0; } } &_7 { & .grid-view__cell:nth-child(7n) { padding-right: 0; } } &_8 { & .grid-view__cell:nth-child(8n) { padding-right: 0; } } &_9 { & .grid-view__cell:nth-child(9n) { padding-right: 0; } } &_10 { & .grid-view__cell:nth-child(10n) { padding-right: 0; } } &_11 { & .grid-view__cell:nth-child(11n) { padding-right: 0; } } &_12 { & .grid-view__cell:nth-child(12n) { padding-right: 0; } } &_13 { & .grid-view__cell:nth-child(13n) { padding-right: 0; } } &_14 { & .grid-view__cell:nth-child(14n) { padding-right: 0; } } } &__cell { padding: 16px 16px 0 0; box-sizing: border-box; transition: all 150ms ease-out; &-header { padding: 5px; width: 100%; display: flex; background: var(--color-neutral-background); justify-content: space-between; transition: all 150ms ease-out; } &-body { width: 100%; min-width: 0; & img { width: 100%; height: 100%; max-height: 100%; object-fit: cover; object-position: center; } } &-body_responsive { &:has(img) { display: grid; grid-auto-flow: row; grid-template-rows: minmax(1rem, 1fr); grid-template-columns: 100%; } & img { height: 100%; max-height: 100%; width: auto; min-height: 120px; object-fit: contain; place-self: center center; } } &-content { width: 100%; height: 100%; cursor: pointer; overflow: hidden; position: relative; border-radius: 8px; background: none; box-shadow: 0 0 0 4px transparent; transition: all 150ms ease-out; display: grid; grid-auto-flow: row; grid-template-rows: min-content minmax(0, 1fr); &::after { inset: 0; content: ""; position: absolute; pointer-events: none; border-radius: 8px; border: 1px solid var(--color-neutral-border); transition: all 150ms ease-out; } &:hover { background-color: var(--color-primary-emphasis-subtle); box-shadow: 0 0 0 4px var(--color-primary-focus-outline); &::after { border: 1px solid var(--color-primary-border); } } } &_selected &-header { background-color: var(--color-primary-emphasis); } &_selected &-content { background-color: var(--color-primary-emphasis-subtle); box-shadow: 0 0 0 4px var(--color-primary-focus-outline); &::after { border-color: var(--color-primary-border-subtle); } } } .skeletonLoader { padding: 5px; } & .grid-image-wrapper { display: flex; width: 100%; height: 100%; text-align: center; justify-content: center; background: var(--color-neutral-surface); } }