zotero/scss/elements/_librariesCollectionsBox.scss
windingwind 6af4605bd0 Implement attachment preview
- Implement attachment preview
- Implement attachment-box redesign
- Make filename editable
- Use new reindex icon
- Update attachment note layout
- Fix reader.js eslint errors
- Add fallback attachment icon and use redesign
- Use attachment preview for regular items
- Fix pinned pane not exists error
- Double click preview to open to page
- Fix itemPane pin bug
- Preload preview iframe
- Fix item pane scroll
- Add media preview support
- Fix item pane scroll bar on macos
- Fix reader sidebar with standalone attachment
- Fix attributeChangedCallback
- Add attachmentBox _updateAttachmentIDs
- Make attachment notes readonly and simplify note window script
- Implement convert attachment note to new note
- Support preview dragging
- Annotations box redesign
- Support custom buttons in the collapsible-section
- Add preview toggle button
- Fix collapsible section attribute listener
- Make attachment box notify sync to fix errors in test
2024-01-24 23:32:15 -05:00

63 lines
887 B
SCSS

libraries-collections-box {
display: flex;
flex-direction: column;
&[hidden] {
display: none;
}
.body {
display: flex;
flex-direction: column;
margin-inline-start: 16px;
.row {
display: flex;
align-items: flex-start;
gap: 4px;
margin-inline-start: calc(16px * var(--level, 0));
@include comfortable {
padding-block: 2px;
}
&.context {
color: var(--fill-secondary);
.box .icon {
opacity: 0.5;
}
}
.box {
@include clicky-item;
flex: 1;
&.current {
font-weight: 590;
}
.icon {
width: 16px;
height: 16px;
}
}
toolbarbutton {
margin-inline-start: auto;
visibility: hidden;
border-radius: 2px;
}
&:is(:hover, :focus-within) toolbarbutton {
visibility: visible;
}
}
}
&:not([mode=edit]) {
.add {
display: none;
}
}
}