Files
WebDrop/web/src/features/channel/ChatAttachment.module.css
T

81 lines
1.4 KiB
CSS

.slot {
width: 360px;
max-width: 100%;
margin-top: var(--space-1);
}
.placeholder,
.poster {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
width: 100%;
min-height: 96px;
border: 1px solid var(--line-strong);
border-radius: var(--radius-md);
background: var(--surface-2);
color: var(--text-dim);
font: inherit;
font-size: 12px;
}
.poster {
cursor: pointer;
}
.picture {
display: block;
padding: 0;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
cursor: zoom-in;
overflow: hidden;
}
.picture img {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 320px;
}
.video {
display: block;
width: 100%;
max-height: 320px;
border-radius: var(--radius-md);
background: var(--surface-2);
}
.audio {
width: 100%;
}
.snippet {
max-height: 220px;
margin: 0;
padding: var(--space-2) var(--space-3);
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
color: var(--text);
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
cursor: pointer;
}
.archive {
max-height: 220px;
padding: var(--space-2) var(--space-3);
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius-md);
background: var(--surface-2);
font-size: 12px;
}