Skip to content

A free, self-hostable news aggregator…

fix(themes): replace #load_more loading-state GIF with a CSS spinner (#8804)

polybjorn1ff27fea2154
diff --git a/p/themes/Ansum/_components.css b/p/themes/Ansum/_components.css
index 08f1fb8ad..c9c9a1ef8 100644
--- a/p/themes/Ansum/_components.css
+++ b/p/themes/Ansum/_components.css
@@ -201,11 +201,6 @@
}
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
background: var(--white);
diff --git a/p/themes/Ansum/_components.rtl.css b/p/themes/Ansum/_components.rtl.css
index cf64f2224..2cb02b90d 100644
--- a/p/themes/Ansum/_components.rtl.css
+++ b/p/themes/Ansum/_components.rtl.css
@@ -201,11 +201,6 @@
}
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
background: var(--white);
diff --git a/p/themes/Flat/flat.css b/p/themes/Flat/flat.css
index fd38d65e4..998a5d1bd 100644
--- a/p/themes/Flat/flat.css
+++ b/p/themes/Flat/flat.css
@@ -417,11 +417,6 @@ th {
color: #000;
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
border: 1px solid #ddd;
diff --git a/p/themes/Flat/flat.rtl.css b/p/themes/Flat/flat.rtl.css
index 4bc1f5f8d..efb1d85ac 100644
--- a/p/themes/Flat/flat.rtl.css
+++ b/p/themes/Flat/flat.rtl.css
@@ -417,11 +417,6 @@ th {
color: #000;
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
border: 1px solid #ddd;
diff --git a/p/themes/Mapco/_components.css b/p/themes/Mapco/_components.css
index 711cfef91..94acddc0c 100644
--- a/p/themes/Mapco/_components.css
+++ b/p/themes/Mapco/_components.css
@@ -189,11 +189,6 @@
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
background: var(--white);
diff --git a/p/themes/Mapco/_components.rtl.css b/p/themes/Mapco/_components.rtl.css
index c5abe2877..f5171f7fd 100644
--- a/p/themes/Mapco/_components.rtl.css
+++ b/p/themes/Mapco/_components.rtl.css
@@ -189,11 +189,6 @@
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url("loader.gif") center center no-repeat #34495e;
-}
-
/*=== Boxes */
.box {
background: var(--white);
diff --git a/p/themes/Nord/nord.css b/p/themes/Nord/nord.css
index 98042191a..95906318d 100644
--- a/p/themes/Nord/nord.css
+++ b/p/themes/Nord/nord.css
@@ -877,14 +877,6 @@ li.item.active {
margin: 0;
}
-#load_more.loading {
- background-color: var(--accent);
-}
-
-#load_more.loading:hover {
- background-color: var(--highlight);
-}
-
/*=== Notification and actualize notification */
.notification {
background: var(--dropdown-bg);
diff --git a/p/themes/Nord/nord.rtl.css b/p/themes/Nord/nord.rtl.css
index 8b738b6dc..26330093e 100644
--- a/p/themes/Nord/nord.rtl.css
+++ b/p/themes/Nord/nord.rtl.css
@@ -877,14 +877,6 @@ li.item.active {
margin: 0;
}
-#load_more.loading {
- background-color: var(--accent);
-}
-
-#load_more.loading:hover {
- background-color: var(--highlight);
-}
-
/*=== Notification and actualize notification */
.notification {
background: var(--dropdown-bg);
diff --git a/p/themes/Swage/swage.css b/p/themes/Swage/swage.css
index 9a81ec014..e560a8282 100644
--- a/p/themes/Swage/swage.css
+++ b/p/themes/Swage/swage.css
@@ -564,12 +564,6 @@ li.item.separator {
}
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url(loader.gif) center center no-repeat var(--color-background-aside);
-}
-
-
.content {
padding: 20px 10px;
diff --git a/p/themes/Swage/swage.rtl.css b/p/themes/Swage/swage.rtl.css
index 3aedb638e..d6a5cd9a8 100644
--- a/p/themes/Swage/swage.rtl.css
+++ b/p/themes/Swage/swage.rtl.css
@@ -564,12 +564,6 @@ li.item.separator {
}
}
-#load_more.loading,
-#load_more.loading:hover {
- background: url(loader.gif) center center no-repeat var(--color-background-aside);
-}
-
-
.content {
padding: 20px 10px;
diff --git a/p/themes/base-theme/base.css b/p/themes/base-theme/base.css
index c1c89f3d6..035341ae1 100644
--- a/p/themes/base-theme/base.css
+++ b/p/themes/base-theme/base.css
@@ -300,11 +300,6 @@ th {
.pagination:last-child .item {
}
-#load_more.loading,
-#load_more.loading:hover {
- font-size: 0;
-}
-
/*=== Boxes */
.box {
}
diff --git a/p/themes/base-theme/base.rtl.css b/p/themes/base-theme/base.rtl.css
index b5c3d64cd..fce6748b7 100644
--- a/p/themes/base-theme/base.rtl.css
+++ b/p/themes/base-theme/base.rtl.css
@@ -300,11 +300,6 @@ th {
.pagination:last-child .item {
}
-#load_more.loading,
-#load_more.loading:hover {
- font-size: 0;
-}
-
/*=== Boxes */
.box {
}
diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.css
index bce064868..73ad1a6df 100644
--- a/p/themes/base-theme/frss.css
+++ b/p/themes/base-theme/frss.css
@@ -1970,11 +1970,35 @@ a.website:hover .favicon {
#load_more.loading,
#load_more.loading:hover {
- padding: 10px 20px;
- background: var(--frss-loading-image) center center no-repeat var(--frss-background-color);
+ position: relative;
+ min-width: 40px;
+ background: none;
+ border-color: transparent;
font-size: 0;
}
+#load_more.loading::after {
+ content: "";
+ position: absolute;
+ top: calc(50% - 12px);
+ left: calc(50% - 12px);
+ width: 24px;
+ height: 24px;
+ border: 3px solid currentColor;
+ border-right-color: transparent;
+ border-radius: 50%;
+ opacity: 0.7;
+ animation: frss-spin 1s linear infinite;
+}
+
+@keyframes frss-spin {
+ to { transform: rotate(360deg); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ #load_more.loading::after { animation: none; }
+}
+
.loading {
background: var(--frss-loading-image) center center no-repeat;
font-size: 0;
diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.css
index 9f0c56679..8640d7596 100644
--- a/p/themes/base-theme/frss.rtl.css
+++ b/p/themes/base-theme/frss.rtl.css
@@ -1970,11 +1970,35 @@ a.website:hover .favicon {
#load_more.loading,
#load_more.loading:hover {
- padding: 10px 20px;
- background: var(--frss-loading-image) center center no-repeat var(--frss-background-color);
+ position: relative;
+ min-width: 40px;
+ background: none;
+ border-color: transparent;
font-size: 0;
}
+#load_more.loading::after {
+ content: "";
+ position: absolute;
+ top: calc(50% - 12px);
+ right: calc(50% - 12px);
+ width: 24px;
+ height: 24px;
+ border: 3px solid currentColor;
+ border-left-color: transparent;
+ border-radius: 50%;
+ opacity: 0.7;
+ animation: frss-spin 1s linear infinite;
+}
+
+@keyframes frss-spin {
+ to { transform: rotate(-360deg); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ #load_more.loading::after { animation: none; }
+}
+
.loading {
background: var(--frss-loading-image) center center no-repeat;
font-size: 0;