[grade=B] v1.9.1: YouTube links auto-render as video cards in beeps, replies, and quotes (click-to-play, nocookie embed)

This commit is contained in:
Krystie
2026-09-07 16:21:23 -07:00
parent 6eb128b780
commit 2b65194cdb
6 changed files with 124 additions and 4 deletions
+60
View File
@@ -736,6 +736,66 @@
position: relative;
}
/* YouTube card (v1.9.1) */
.beep-embed .beep-yt-card {
position: relative;
margin-top: 12px;
border-radius: 16px;
overflow: hidden;
border: 1px solid var(--beep-border);
cursor: pointer;
background: #000;
aspect-ratio: 16 / 9;
display: flex;
align-items: center;
justify-content: center;
}
.beep-embed .beep-yt-thumb {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
top: 0;
left: 0;
margin: 0;
}
.beep-embed .beep-yt-play {
position: relative;
z-index: 1;
width: 68px;
height: 48px;
border-radius: 12px;
background: rgba(255, 0, 0, 0.85);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
transition: transform 0.15s ease, background 0.15s ease;
}
.beep-embed .beep-yt-card:hover .beep-yt-play,
.beep-embed .beep-yt-card:focus-visible .beep-yt-play {
background: #f00;
transform: scale(1.08);
}
.beep-embed .beep-yt-play svg {
fill: #fff;
margin-left: 4px;
}
.beep-embed .beep-yt-card iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
}
.beep-embed .beep-gif-embed img {
width: 100%;
height: auto;