/
guselnikov
/
inst
Обзор
Документация
Войти
/
guselnikov
/
inst
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
admin/src/components/auto-post/PhonePreview.module.css
147 строк
2 KB
Viktor Guselnikov
first_commit
07 июл 2026, 11:54
07 июл 2026, 11:54
098126a
Код
Авторство
О чём код?
.phonePreview { display: flex; flex-direction: column; gap: 14px; } .title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); } .frame { background: var(--bg-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-surface); border: 1px solid var(--border); } .frameHeader { display: flex; align-items: center; gap: 10px; padding: 14px 16px; } .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(145deg, var(--accent-soft), var(--bg-muted)); } .username { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; } .mediaWrap { position: relative; background: #000; aspect-ratio: 4 / 5; } .mediaWrapSquare { aspect-ratio: 1; } .mediaWrapLandscape { aspect-ratio: 16 / 9; } .emptyMedia { display: grid; place-items: center; min-height: 200px; color: var(--text-faint); font-size: 13px; } .media { width: 100%; height: 100%; object-fit: cover; display: block; } .navBtn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #111; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-xs); transition: transform 120ms var(--ease); } .navBtn:active { transform: translateY(-50%) scale(0.94); } .navPrev { left: 8px; } .navNext { right: 8px; } .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; } .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); } .dotActive { background: #fff; } .captionBlock { padding: 14px 16px 18px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); } .captionMuted { color: var(--text-faint); font-style: italic; } .meta { display: flex; flex-wrap: wrap; gap: 6px; } .metaChip { font-size: 11px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--bg-muted); color: var(--text-faint); font-family: var(--font-mono); }