Skip to content

Commit

Permalink
fix: spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Mar 28, 2024
1 parent ea180ca commit 0236dbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,16 @@ ul {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes tw-spin {
to {
transform: rotate(360deg);
}
}

.tw-animate-spin {
animation: tw-spin 1s linear infinite;
}

.tw-rounded-full {
border-radius: 9999px;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<button class="search-button search-clear" id="search-clear-desktop" title="{{ T `clear` }}">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "times-circle") }}
</button>
<span class="search-button search-loading" id="search-loading-desktop">
<span class="search-button search-loading tw-animate-spin" id="search-loading-desktop">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "spinner") }}
</span>
</span>
Expand Down Expand Up @@ -148,7 +148,7 @@
<button class="search-button search-clear" id="search-clear-mobile" title="{{ T `clear` }}">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "times-circle") }}
</button>
<span class="search-button search-loading" id="search-loading-mobile">
<span class="search-button search-loading tw-animate-spin" id="search-loading-mobile">
{{ partial "plugin/fontawesome.html" (dict "Style" "solid" "Icon" "spinner") }}
</span>
</div>
Expand Down

0 comments on commit 0236dbe

Please sign in to comment.