mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Also: - Introduce a mixin for a toolbar button that appears on hover or focus - Unifies the border radius of such buttons, which was previously different for the "Libraries and Collections" toolbar button.
54 lines
730 B
SCSS
54 lines
730 B
SCSS
libraries-collections-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-inline-start: 12px;
|
|
|
|
.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: 600;
|
|
}
|
|
|
|
.icon {
|
|
width: 16px;
|
|
}
|
|
}
|
|
|
|
@include contains-toolbarbutton-show-on-hover;
|
|
}
|
|
}
|
|
|
|
&[readonly] {
|
|
.add {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|