Paginate briefing cards and add video previews

This commit is contained in:
2026-05-25 15:27:34 -04:00
parent e3453de788
commit 3eb74a9083
6 changed files with 277 additions and 41 deletions

View File

@@ -2455,22 +2455,76 @@ a { color: inherit; text-decoration: none; }
border-radius: 2px;
}
.bp-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--s4);
}
.bp-pagination-top {
margin-bottom: var(--s4);
padding-bottom: var(--s3);
border-bottom: 1px solid var(--border);
}
.bp-pagination-bottom {
justify-content: center;
margin-top: var(--s5);
}
.bp-pagination-meta,
.bp-page-current {
font-size: 11px;
color: var(--text-3);
letter-spacing: 0.04em;
}
.bp-pagination-actions {
display: flex;
align-items: center;
gap: var(--s3);
}
.bp-page-btn {
min-width: 76px;
padding: var(--s2) var(--s4);
background: var(--surface);
border: 1px solid var(--border-2);
border-radius: 2px;
color: var(--text-2);
cursor: pointer;
font-size: 12px;
}
.bp-page-btn:hover:not(:disabled) {
color: var(--text);
background: var(--surface-h);
}
.bp-page-btn:disabled {
color: var(--text-3);
cursor: not-allowed;
opacity: 0.45;
}
/* Individual card */
.bp-card {
display: flex;
flex-direction: column;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 2px;
border-radius: 6px;
overflow: hidden;
cursor: pointer;
transition: border-color 0.1s, background 0.1s;
transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
position: relative;
user-select: none;
}
.bp-card:hover { border-color: var(--border-2); background: var(--surface-h); }
.bp-card.bp-card-active { border-color: var(--red); }
.bp-card.bp-card-read { opacity: 0.6; }
.bp-card:hover {
border-color: var(--border-2);
background: var(--surface-h);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
transform: translateY(-2px);
}
.bp-card.bp-card-active {
border-color: var(--red);
box-shadow: 0 0 0 1px var(--red), 0 4px 20px rgba(225, 6, 0, 0.15);
}
.bp-card.bp-card-read { opacity: 0.5; }
.bp-card-img-wrap {
width: 100%;
@@ -2483,9 +2537,9 @@ a { color: inherit; text-decoration: none; }
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.2s;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bp-card:hover .bp-card-img { transform: scale(1.02); }
.bp-card:hover .bp-card-img { transform: scale(1.04); }
.bp-card-img.bp-card-img-fallback,
.bp-card-img-fallback {
@@ -2638,11 +2692,34 @@ a { color: inherit; text-decoration: none; }
}
.bp-reader-close:hover { color: var(--text); }
.bp-reader-video-container {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background: #000;
position: relative;
border-bottom: 1px solid var(--border);
}
.bp-reader-video-iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
}
.bp-reader-video-desc {
margin-bottom: var(--s5);
padding: var(--s4);
background: var(--surface-2);
border-left: 3px solid var(--red);
border-radius: 2px;
}
.bp-reader-hero {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background: var(--surface-2);
border-bottom: 1px solid var(--border);
}
.bp-reader-hero img {
width: 100%;
@@ -2733,6 +2810,20 @@ a { color: inherit; text-decoration: none; }
@media (max-width: 600px) {
.bp-grid { grid-template-columns: 1fr; }
.bp-pagination {
align-items: stretch;
flex-direction: column;
}
.bp-pagination-actions,
.bp-pagination-bottom {
display: grid;
grid-template-columns: 1fr auto 1fr;
width: 100%;
}
.bp-page-current {
align-self: center;
text-align: center;
}
.bp-reader { width: 100vw; }
.bp-reader-content { padding: var(--s5) var(--s5) var(--s7); }
}