zotero/scss/elements/_attachmentsBox.scss
2024-01-24 23:32:17 -05:00

69 lines
952 B
SCSS

attachments-box {
display: flex;
flex-direction: column;
&[hidden] {
display: none;
}
.head {
.togglePreview {
display: none;
}
&:hover {
.togglePreview {
display: unset;
}
}
}
&[data-use-preview] {
.togglePreview {
@include svgicon-menu('preview-hide', 'universal', '16');
}
}
&:not([data-use-preview]) {
attachment-preview {
visibility: hidden;
display: none;
}
.togglePreview {
@include svgicon-menu('preview-show', 'universal', '16');
}
}
& > collapsible-section > .body {
display: flex;
flex-direction: column;
attachment-preview {
opacity: 1;
&[data-preview-status=fail] {
display: none;
opacity: 0;
.icon {
opacity: 0;
}
}
&[data-preview-status=loading] {
opacity: 0;
}
}
.attachments-container {
padding-left: 12px;
display: flex;
flex-direction: column;
@include comfortable {
gap: 4px;
}
}
}
}