Сетка карточек на странице сервера и крупный QR в lightbox
Карточки как в глобальном индексе; QR заполняет доступную площадь модального окна через container queries.
This commit is contained in:
@@ -456,10 +456,10 @@
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(94vw, 900px);
|
||||
width: min(96vw, calc(100dvh - 2rem));
|
||||
height: calc(100dvh - 2rem);
|
||||
max-height: calc(100dvh - 2rem);
|
||||
padding: 1.25rem 1.25rem 1rem;
|
||||
padding: 2.5rem 1rem 0.85rem;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 18px;
|
||||
@@ -474,40 +474,41 @@
|
||||
.lightbox-media {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
container-type: size;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
.lightbox-panel img {
|
||||
display: block;
|
||||
width: min(100cqi, 100cqb);
|
||||
height: min(100cqi, 100cqb);
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
object-fit: contain;
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 1rem;
|
||||
padding: 0.75rem;
|
||||
box-sizing: border-box;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
.lightbox-caption {
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.85rem;
|
||||
margin-top: 0.55rem;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 650;
|
||||
color: var(--text);
|
||||
}
|
||||
.lightbox-hint {
|
||||
flex-shrink: 0;
|
||||
margin-top: 0.25rem;
|
||||
margin-top: 0.15rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.lightbox-actions {
|
||||
flex-shrink: 0;
|
||||
margin-top: 1rem;
|
||||
margin-top: 0.65rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user