A platform for community discussion. Free, open, simple.
.theme-card-preview {
&__image-wrapper {
width: 100%;
height: 160px;
overflow: hidden;
display: flex;
align-items: center;
position: relative;
border-bottom: 1px solid var(--content-border-color);
svg {
width: 100%;
top: 0;
left: 0;
}
&:hover .theme-card-preview__screenshot-toggle {
opacity: 1;
}
}
&__image {
width: 100%;
height: 100%;
flex-shrink: 0;
object-fit: cover;
object-position: top left;
}
&__screenshot-toggle {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
&__content {
padding-inline: 1rem;
padding-top: 1rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
&__name {
font-size: var(--font-up-0);
font-weight: 700;
overflow-wrap: anywhere;
color: var(--primary);
}
&__description {
margin: 0 0 10px 0;
}
}