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 */
.container {
position: relative;
}
.deleteButton {
display: flex;
align-items: center;
justify-content: center;
inset-inline-end: -2rem;
position: absolute;
top: 0.25rem;
z-index: 10;
width: 1.5rem;
height: 1.5rem;
border-radius: 0.25rem;
background-color: var(--background-tertiary);
color: var(--text-tertiary);
transition:
background-color 150ms ease,
color 150ms ease;
}
@media (hover: hover) {
.deleteButton:hover {
background-color: var(--status-danger);
color: var(--text-on-dark);
}
}
.attachmentContainer {
display: flex;
width: 100%;
min-width: 0;
align-items: center;
gap: 0.75rem;
overflow: hidden;
border-radius: 0.5rem;
border: 0.0625rem solid var(--background-modifier-accent);
background-color: var(--background-secondary);
padding: 0.75rem;
}
.iconContainer {
display: flex;
align-items: center;
justify-content: center;
width: 3rem;
height: 3rem;
flex-shrink: 0;
border-radius: 0.5rem;
background-color: var(--background-tertiary);
color: var(--text-tertiary);
}
.fileInfoContainer {
min-width: 0;
flex: 1;
overflow: hidden;
}
.fileName {
display: block;
overflow: hidden;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.25rem;
white-space: nowrap;
text-overflow: ellipsis;
}
.fileNameTruncate {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.fileExtension {
color: var(--text-tertiary);
}
.fileSize {
color: var(--text-tertiary);
font-size: 0.75rem;
line-height: 1rem;
}
.downloadButton {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
flex-shrink: 0;
border-radius: 0.5rem;
background-color: var(--brand-primary);
color: var(--text-on-brand-primary);
transition: background-color 0.1s ease;
cursor: pointer;
}
@media (hover: hover) {
.downloadButton:hover {
background-color: var(--brand-secondary);
}
}
.downloadButtonDisabled {
opacity: 0.4;
pointer-events: none;
}