zotero/scss/elements/_librariesCollectionsBox.scss
abaevbog 5a45717270
vpat 3: make "-"" btn focusable even if hidden (#4053)
In libraries, notes and tags boxes, do not hide the actual
"-" toolbarbutton, hide the <image> inside of it. Visually,
it looks the same but the button can be focused via tab
without having to expicitly make it visible. It means that
shift-tab from the section header will not skip the "-" button.

Also, make "remove" toolbarbutton from tagsbox focusable like all
others for consistency.
2024-06-06 00:13:26 -04:00

64 lines
892 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;
}
}
toolbarbutton {
margin-inline-start: auto;
border-radius: 2px;
& > image {
visibility: hidden;
}
}
&:is(:hover, :focus-within) toolbarbutton > image {
visibility: visible;
}
}
}
&[readonly] {
.add {
display: none;
}
}
}