78 lines
1.5 KiB
CSS
78 lines
1.5 KiB
CSS
/* Allegati list */
|
|
.allegati-list {
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 0.8rem 1rem 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.8rem;
|
|
}
|
|
|
|
.allegato-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 14px;
|
|
overflow: hidden;
|
|
border: 1px solid #f0f0f0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.allegato-preview {
|
|
position: relative;
|
|
height: 180px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.allegato-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.allegato-type-badge {
|
|
position: absolute;
|
|
top: 0.5rem;
|
|
left: 0.5rem;
|
|
font-size: 0.65rem;
|
|
font-weight: 700;
|
|
padding: 0.15rem 0.5rem;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
.badge-foto { background: rgba(83, 82, 237, 0.85); color: #fff; }
|
|
.badge-piantina { background: rgba(0, 150, 136, 0.85); color: #fff; }
|
|
|
|
.allegato-icon-box {
|
|
height: 80px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.icon-email { background: #e3f2fd; color: #1565c0; }
|
|
.icon-doc { background: #e8f5e9; color: #2e7d32; }
|
|
|
|
.allegato-info {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.5rem 0.75rem;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.allegato-nome {
|
|
font-size: 0.8rem;
|
|
color: #555;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 80%;
|
|
}
|
|
|
|
.allegato-download {
|
|
font-size: 1rem;
|
|
color: var(--primary-color);
|
|
}
|