Template:YouTubeCard/styles.css
Template page
More actions
.yt-card-outer {
display: flex;
align-items: stretch;
max-width: 700px;
margin: 1.5em auto;
background: var(--color-surface-2);
border-radius: var(--border-radius-large);
overflow: hidden;
border: 1px solid var(--border-color-base);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yt-card-outer:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.yt-card-thumb {
position: relative;
flex-shrink: 0;
width: 200px;
aspect-ratio: 16/9;
overflow: hidden;
}
.yt-card-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}
.yt-card-outer:hover .yt-card-thumb img {
transform: scale(1.05);
}
.yt-card-play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48px;
height: 48px;
background: var(--accent-color-base);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: #fff;
z-index: 2;
opacity: 0.9;
transition: transform 0.2s ease, opacity 0.2s ease;
line-height: 48px;
text-align: center;
pointer-events: none;
}
.yt-card-outer:hover .yt-card-play {
transform: translate(-50%, -50%) scale(1.15);
opacity: 1;
}
.yt-card-info {
padding: var(--space-md);
display: flex;
flex-direction: column;
justify-content: center;
gap: var(--space-xs);
}
.yt-card-title {
font-size: 1.1rem;
font-weight: bold;
color: var(--color-base);
}
.yt-card-desc {
font-size: 0.9rem;
color: var(--color-base--subtle);
line-height: 1.5;
}
.yt-card-btn a {
display: inline-block;
margin-top: var(--space-xs);
padding: 0.3em 0.9em;
background: var(--accent-color-base);
color: #fff !important;
border-radius: var(--border-radius-medium);
text-decoration: none !important;
font-size: 0.9rem;
font-weight: bold;
transition: opacity 0.2s ease;
}
.yt-card-btn a:hover {
opacity: 0.85;
}