mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 09:59:41 -05:00
A board search found cards and listed them in the sidebar, but finding the card on the board was still the reader's job; a browser's own find did not help either, as the issue shows. Now a result opened from the sidebar is also revealed on the board - scrolled into the middle of the view and highlighted for a moment - and pressing Enter again in the search box steps to the next card found, wrapping round, with "2 of 7" under the box, the way finding on a page works. A list found is revealed the same way. The highlight does not pulse for people who ask for reduced motion. The new string is translated in every locale. Thanks to rlach and xet7 ! Fixes #2171.
28 lines
645 B
CSS
28 lines
645 B
CSS
input {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* #2171: the card or list a search found, highlighted on the board for a
|
|
moment after it is scrolled into view (client/lib/revealOnBoard.js). */
|
|
.js-minicard.is-search-highlight .minicard,
|
|
.js-list.is-search-highlight {
|
|
outline: 3px solid var(--theme-accent, #01628c);
|
|
outline-offset: 2px;
|
|
animation: search-highlight-pulse 1s ease-in-out 3;
|
|
}
|
|
|
|
@keyframes search-highlight-pulse {
|
|
50% { outline-color: transparent; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.js-minicard.is-search-highlight .minicard,
|
|
.js-list.is-search-highlight {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
.search-step {
|
|
margin: 4px 0;
|
|
}
|