aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pydis_site/static/css/resources/resources.css10
-rw-r--r--pydis_site/static/images/resources/duck_pond_404.jpgbin0 -> 123824 bytes
-rw-r--r--pydis_site/static/images/resources/duck_pond_404.pngbin2371374 -> 0 bytes
-rw-r--r--pydis_site/templates/resources/resources.html2
4 files changed, 6 insertions, 6 deletions
diff --git a/pydis_site/static/css/resources/resources.css b/pydis_site/static/css/resources/resources.css
index b24fcb5b..55284605 100644
--- a/pydis_site/static/css/resources/resources.css
+++ b/pydis_site/static/css/resources/resources.css
@@ -64,15 +64,15 @@ display: block;
/* Center the 404 div */
.no-resources-found {
- display: flex;
+ display: none;
flex-direction: column;
align-items: center;
+ margin-top: 1em;
}
-/* Hide the no resources h2 by default */
-.no-resources-found {
- display: none;
- margin-top: 1em;
+/* Make sure jQuery will use flex when setting `show()` again. */
+.no-resources-found[style*='display: block'] {
+ display: flex !important;
}
/* Disable clicking on the checkbox itself. */
diff --git a/pydis_site/static/images/resources/duck_pond_404.jpg b/pydis_site/static/images/resources/duck_pond_404.jpg
new file mode 100644
index 00000000..29bcf1d6
--- /dev/null
+++ b/pydis_site/static/images/resources/duck_pond_404.jpg
Binary files differ
diff --git a/pydis_site/static/images/resources/duck_pond_404.png b/pydis_site/static/images/resources/duck_pond_404.png
deleted file mode 100644
index 3aed4d62..00000000
--- a/pydis_site/static/images/resources/duck_pond_404.png
+++ /dev/null
Binary files differ
diff --git a/pydis_site/templates/resources/resources.html b/pydis_site/templates/resources/resources.html
index dcf520f6..2fb0f543 100644
--- a/pydis_site/templates/resources/resources.html
+++ b/pydis_site/templates/resources/resources.html
@@ -132,7 +132,7 @@
{# Message to display when there are no hits #}
<div class="no-resources-found">
<h2 class="title is-3 has-text-centered pt-0 pb-6">No matching resources found!</h2>
- <img src="{% static "images/resources/duck_pond_404.png" %}" width="650px">
+ <img src="{% static "images/resources/duck_pond_404.jpg" %}">
</div>