zotero/scss/elements/_itemPane.scss
Dan Stillman 567cc2d43a fx153: Set XUL hidden/collapsed as boolean attributes
Bug 2008041's change to boolean attributes also covers hidden and
collapsed, whose UA selectors became [hidden] and [collapsed], so
setAttribute('hidden', false) now hides the element. Switch the setters
that can be passed a falsy value to toggleAttribute(), read them with
hasAttribute(), and match the [collapsed=true] selectors in our own
stylesheets to the new presence-only form.
2026-08-03 11:48:40 -04:00

36 lines
610 B
SCSS

item-pane {
flex-grow: 0;
flex-shrink: 1;
min-width: var(--width-available-item-pane, $min-width-item-pane + $width-sidenav);
min-height: $min-width-item-pane + $width-sidenav;
&[collapsed] {
min-width: $width-sidenav;
min-height: $width-sidenav;
max-width: $width-sidenav;
visibility: inherit;
&.stacked {
max-width: unset;
max-height: $width-sidenav;
}
#zotero-item-pane-content {
visibility: collapse;
}
}
&.stacked {
flex-direction: column;
height: 0px;
#zotero-item-pane-content {
width: 100%;
}
}
#batch-edit-prompt-message {
padding: 3px 8px;
}
}