5a45717270
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.
47 lines
628 B
SCSS
47 lines
628 B
SCSS
notes-box, related-box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
|
|
&[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
&[readonly] {
|
|
.add {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-inline-start: 12px;
|
|
|
|
.row {
|
|
display: flex;
|
|
gap: 4px;
|
|
align-items: flex-start;
|
|
|
|
@include comfortable {
|
|
padding-block: 2px;
|
|
}
|
|
|
|
.box {
|
|
@include clicky-item;
|
|
flex: 1;
|
|
}
|
|
|
|
toolbarbutton {
|
|
margin-inline-start: auto;
|
|
& > image {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
|
|
&:is(:hover, :focus-within) toolbarbutton > image{
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|
|
}
|