aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-01-31 11:51:55 +0100
committerGravatar Leon Sandøy <[email protected]>2022-01-31 11:52:12 +0100
commit8726a61b965988b30a7f28416a22d8c807177436 (patch)
tree3de882e0a9a91db0f82e87ff23caf53ccfdb9673 /pydis_site
parentMerge branch 'main' into swfarnsworth/smarter-resources/merge-with-main (diff)
Shrink and center the duck pond 404.
Diffstat (limited to 'pydis_site')
-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>