/
guselnikov
/
inst
Обзор
Документация
Войти
/
guselnikov
/
inst
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin/src/components/auto-post/FeedGrid.module.css
162 строки
2 KB
Viktor Guselnikov
first_commit
07 июл 2026, 11:54
07 июл 2026, 11:54
098126a
Код
Авторство
О чём код?
.grid { display: flex; flex-direction: column; gap: 20px; } .toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; } .subtitle { margin: 4px 0 0; font-size: 12px; color: var(--text-faint); } .legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); } .legendItem { display: flex; align-items: center; gap: 8px; } .legendDot { width: 8px; height: 8px; border-radius: 2px; } .feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 420px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-muted); border: 1px solid var(--border); padding: 3px; } .cell { position: relative; aspect-ratio: 1; background: var(--bg-elevated); border: none; padding: 0; cursor: pointer; overflow: hidden; transition: opacity var(--transition); } .cell:hover { opacity: 0.88; } .image { width: 100%; height: 100%; object-fit: cover; display: block; } .placeholder { width: 100%; height: 100%; background: var(--bg-muted); } .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%); pointer-events: none; } .badge { position: absolute; top: 6px; right: 6px; padding: 3px 7px; border-radius: var(--radius-xs); font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; } .badgeScheduled { background: rgba(212, 168, 83, 0.85); color: #1a1408; } .badgeDraft { background: rgba(255, 255, 255, 0.75); color: #18181b; } .badgeFailed { background: rgba(224, 122, 122, 0.85); color: #1a0808; } .carouselCount { position: absolute; top: 6px; left: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-xs); background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; } .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; font-size: 10px; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .empty { padding: 40px; text-align: center; color: var(--text-faint); font-size: 14px; } @media (max-width: 520px) { .feed { max-width: 100%; } }