2023-12-23 07:54:08 +00:00
|
|
|
@use "sass:map";
|
|
|
|
|
2023-10-04 13:27:02 +00:00
|
|
|
item-pane-sidenav {
|
2023-12-23 07:54:08 +00:00
|
|
|
&:not([hidden]) {
|
|
|
|
display: flex;
|
|
|
|
}
|
2023-10-04 13:27:02 +00:00
|
|
|
flex-direction: column;
|
2023-12-23 07:54:08 +00:00
|
|
|
border-inline-start: var(--material-panedivider);
|
|
|
|
padding: 6px 4px 0;
|
|
|
|
align-items: center;
|
2023-10-04 13:27:02 +00:00
|
|
|
gap: 6px;
|
2023-12-23 07:54:08 +00:00
|
|
|
background: var(--material-sidepane);
|
|
|
|
position: relative; // Stop item pane content from overlapping
|
|
|
|
|
|
|
|
&.stacked {
|
|
|
|
flex-direction: row;
|
|
|
|
border-inline-start: none;
|
|
|
|
border-top: var(--material-panedivider);
|
|
|
|
padding-inline-start: 6px;
|
|
|
|
padding-inline-end: 0;
|
|
|
|
padding-block: 4px;
|
|
|
|
}
|
2023-10-04 13:27:02 +00:00
|
|
|
|
2024-01-04 10:51:02 +00:00
|
|
|
.inherit-flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: inherit;
|
|
|
|
flex-wrap: inherit;
|
|
|
|
align-items: inherit;
|
|
|
|
justify-content: inherit;
|
|
|
|
gap: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight {
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: var(--fill-quinary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.pin-wrapper {
|
2023-12-01 07:43:43 +00:00
|
|
|
position: relative;
|
|
|
|
// Disable pointer events here, re-enable on the button, so that :hover styles are only applied
|
|
|
|
// when the button itself is hovered
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
inset-inline-end: 1px;
|
|
|
|
width: 12px;
|
|
|
|
height: 12px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.pinnable {
|
|
|
|
&.pinned::after {
|
|
|
|
background-color: var(--accent-blue);
|
|
|
|
background-image: icon-url("8/universal/pin.svg");
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-04 13:27:02 +00:00
|
|
|
toolbarbutton {
|
|
|
|
// TODO: Extract button styles?
|
|
|
|
|
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
2023-12-01 07:43:43 +00:00
|
|
|
margin: 0;
|
2023-10-04 13:27:02 +00:00
|
|
|
padding: 4px;
|
2023-12-01 07:43:43 +00:00
|
|
|
pointer-events: all;
|
|
|
|
|
2024-01-15 09:16:42 +00:00
|
|
|
&:disabled,
|
|
|
|
&[disabled="true"] {
|
|
|
|
opacity: 60%;
|
|
|
|
pointer-events: none;
|
2023-10-04 13:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@each $pane, $color in $item-pane-sections {
|
|
|
|
&[data-pane="#{$pane}"] {
|
|
|
|
list-style-image: url("chrome://zotero/skin/itempane/20/#{$pane}.svg");
|
|
|
|
fill: $color;
|
|
|
|
stroke: $color;
|
|
|
|
}
|
|
|
|
}
|
2023-12-23 07:54:08 +00:00
|
|
|
|
|
|
|
// Special case for Notes context pane button:
|
|
|
|
&[data-pane="context-notes"] {
|
|
|
|
list-style-image: url("chrome://zotero/skin/itempane/20/notes.svg");
|
|
|
|
fill: map.get($item-pane-sections, "notes");
|
|
|
|
stroke: map.get($item-pane-sections, "notes");
|
|
|
|
}
|
|
|
|
|
|
|
|
// Special case for Expand/Collapse button:
|
|
|
|
&[data-pane="toggle-collapse"] {
|
|
|
|
list-style-image: url("chrome://zotero/skin/itempane/20/collapse.svg");
|
|
|
|
|
|
|
|
&.collapsed {
|
|
|
|
list-style-image: url("chrome://zotero/skin/itempane/20/expand.svg");
|
|
|
|
}
|
|
|
|
|
2024-01-10 16:52:10 +00:00
|
|
|
&:-moz-locale-dir(rtl) {
|
2023-12-23 07:54:08 +00:00
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
fill: var(--fill-secondary);
|
|
|
|
stroke: var(--fill-secondary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.stacked toolbarbutton[data-pane="toggle-collapse"] {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(.stacked) > .divider {
|
|
|
|
width: 20px;
|
|
|
|
height: 0;
|
|
|
|
border-bottom: 1px solid var(--fill-quinary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.stacked > .divider {
|
|
|
|
width: 0;
|
|
|
|
height: 20px;
|
|
|
|
border-inline-end: 1px solid var(--fill-quinary);
|
2023-10-04 13:27:02 +00:00
|
|
|
}
|
2023-12-01 07:43:43 +00:00
|
|
|
|
|
|
|
menupopup {
|
|
|
|
@include macOS-hide-menu-icons;
|
|
|
|
}
|
2023-10-04 13:27:02 +00:00
|
|
|
}
|