A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
/* SPDX-License-Identifier: AGPL-3.0-or-later */
.card {
background-color: var(--background-secondary);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
overflow: hidden;
display: flex;
flex-direction: column;
color: var(--text-primary);
}
.variantCompact {
width: 100%;
height: 100%;
background-color: transparent;
box-shadow: none;
}
.variantList {
width: 15rem;
}
.preview {
position: relative;
background-color: var(--voice-surface-2);
}
.previewCompact {
width: 100%;
height: 100%;
}
.previewList {
width: 100%;
height: 7.5rem;
}
.previewImage {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
background-color: var(--voice-surface-0);
filter: brightness(0.6);
}
.previewFallback {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary-muted);
font-size: 0.85rem;
text-align: center;
padding: 0.75rem;
}
.compactButtonWrap {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.compactButton {
pointer-events: auto;
font-size: 0.875rem;
font-weight: 600;
padding: 0.5rem 1rem;
}
.actionRow {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 0.75rem 0.85rem;
background-color: var(--voice-surface-3);
}
.actionButtons {
display: flex;
gap: 0.5rem;
align-items: center;
}
.listButton {
width: 100%;
justify-content: center;
font-size: 0.875rem;
font-weight: 600;
padding: 0.5rem 1rem;
}
.previewClickable {
cursor: pointer;
}
.previewHoverOverlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: transparent;
opacity: 0;
transition:
opacity 0.15s ease,
background-color 0.15s ease;
pointer-events: none;
z-index: 1;
}
.previewClickable:hover .previewHoverOverlay {
background-color: var(--voice-overlay);
opacity: 1;
}
.previewHoverText {
color: var(--voice-text-strong);
font-size: 0.85rem;
font-weight: 600;
text-shadow: 0 0.0625rem 0.1875rem var(--voice-shadow-strong);
}
.protipRow {
width: 100%;
margin-top: 0.4rem;
}
.protipText {
color: var(--text-primary-muted);
font-size: 0.7rem;
line-height: 1.3;
text-align: center;
display: block;
}