mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Search Indicators
This commit is contained in:
@@ -180,7 +180,7 @@ class FilterPill extends HTMLElement {
|
||||
|
||||
render() {
|
||||
this.innerHTML = `
|
||||
<a href="${this.getURL()}" class="!no-underline block text-base" hx-target="#searchresults" hx-select="#searchresults" hx-swap="outerHTML show:window:top">
|
||||
<a href="${this.getURL()}" class="!no-underline block text-base" hx-target="#searchresults" hx-select="#searchresults" hx-indicator="body" hx-swap="outerHTML show:window:top">
|
||||
<div class="flex flex-row filter-pill rounded-lg bg-orange-100 hover:saturate-50 px-2.5">
|
||||
${this.renderIcon()}
|
||||
<div class="flex flex-row filter-pill-label-value !items-baseline text-slate-700">
|
||||
|
||||
@@ -484,7 +484,35 @@
|
||||
/*direction: rtl;*/
|
||||
}
|
||||
|
||||
body .request-indicator {
|
||||
@apply !hidden;
|
||||
}
|
||||
|
||||
.spinning {
|
||||
animation: spin 1s ease-out infinite;
|
||||
}
|
||||
|
||||
body.htmx-request #simplesearchform #sumbmitbutton {
|
||||
@apply cursor-wait pointer-events-none;
|
||||
}
|
||||
|
||||
body.htmx-request .request-indicator {
|
||||
@apply !inline-block;
|
||||
}
|
||||
|
||||
.tab-list-head[aria-pressed="true"] {
|
||||
@apply !text-slate-900 bg-stone-50;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
80% {
|
||||
transform: rotate(360deg);
|
||||
} /* Most rotation happens early */
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
} /* Pause at the final position */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user