zotero/scss/components/_contextPane.scss
Bogdan Abaev 87297f8d29 fx115 fixes
A number of style changes to fix layout for fx115.

- Make panes occupy all width/height based on layout.
- Display the tag splitter on windows and mac.
- Fix to odd fx115 behavior that gives an un-collapsed pane the
initial width of min-width * 2.
- Ensure that whenever there is a width attribute on contextPane, it will
be present in the style as well.
- Set width = 0 on zotero pane when it is not selected because it kept
preventing the contextPane from properly expanding.
- Context pane has its height changed on splitter drag.
- Set height of the context pane in stacked mode to 0 to avoid
having a blank gap after collapse.
- Remove negative margin before the toolbar if the collection tree
is collapsed on mac.
- Tweaks splitter styles to have mouse target of more than 1px.
Added positive z-index to make sure splitters are not covered by panes.
Splitter styles are somewhat unified for all platforms.
- Fix lookup panel sizing
- Quicksearch margin edits to not squize the input field.
- Collection and quick search fields layout fixed
- Use flex properties to fix layout
- fix outline display for editable-text
- fix the contextpane width going out of bounds
- stacked itemPane is visible after layout change
- In stacked view, prevent itemPane from being dragged so high that
it covers itemTree and overlaps with toolbar
2024-03-30 00:58:56 -04:00

121 lines
No EOL
2.2 KiB
SCSS

#tabs-deck {
min-width: $min-width-collections-pane + $min-width-items-pane;
}
#tabs-deck:not([selectedIndex="0"]) #zotero-pane {
width: 0; /* Prevent the main pane from stretching the deck of the reader */
}
#zotero-context-pane {
display: flex;
min-width: $min-width-context-pane;
.divider {
border-bottom: 1px solid var(--fill-quinary);
margin: 0 8px;
}
&.stacked {
position: fixed;
right: 0;
top: 0;
bottom: 0;
font-size: 0;
pointer-events: none;
}
&.stacked-context-placeholder {
min-height: 300px;
}
&.standard .stacked-context-placeholder {
display: none;
}
}
#zotero-context-splitter-stacked {
pointer-events: auto;
}
#zotero-context-pane-inner {
background: var(--material-background);
font: message-box;
font-size: inherit;
min-height: 100px;
height: 0;
pointer-events: auto;
background: var(--material-sidepane)
}
.zotero-context-panes-deck {
width: 100%;
display: block;
}
.zotero-context-panes-deck > deck {
height: 100%;
}
.zotero-view-item-container {
height: 100%;
}
#zotero-context-pane-inner {
height: 0;
}
#zotero-item-toolbar {
height: 32px;
}
.zotero-context-notes-list {
background-color: var(--material-sidepane);
}
.zotero-context-note-container {
background-color: var(--material-background);
}
.zotero-context-pane-editor-parent-line {
height: 40px;
& .parent-title-container {
display: flex;
align-items: center;
padding: 6px 8px;
}
& .parent-item-type {
margin-inline-end: 3px;
width: 16px;
}
& .parent-title {
flex-grow: 1;
width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-left: 8px;
}
}
.zotero-tb-note-return {
@include svgicon-menu("chevron", "universal", "20");
rotate: 90deg;
padding: 4px;
width: 28px;
height: 28px;
}
#zotero-context-pane[collapsed=true] .notes-list-container,
#zotero-context-pane-inner[collapsed=true] .notes-list-container,
#zotero-context-pane[collapsed=true] .zotero-view-item > tabpanel > *,
#zotero-context-pane-inner[collapsed=true] .zotero-view-item > tabpanel > * {
overflow: unset !important;
}
// fx115 - stop width or height from being set by dragging the splitter
.zotero-view-item-sidenav {
width: auto !important;
height: auto !important;
}