Skip to content

Commit 8726a61

Browse files
committed
Shrink and center the duck pond 404.
1 parent 77a2b73 commit 8726a61

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pydis_site/static/css/resources/resources.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ display: block;
6464

6565
/* Center the 404 div */
6666
.no-resources-found {
67-
display: flex;
67+
display: none;
6868
flex-direction: column;
6969
align-items: center;
70+
margin-top: 1em;
7071
}
7172

72-
/* Hide the no resources h2 by default */
73-
.no-resources-found {
74-
display: none;
75-
margin-top: 1em;
73+
/* Make sure jQuery will use flex when setting `show()` again. */
74+
.no-resources-found[style*='display: block'] {
75+
display: flex !important;
7676
}
7777

7878
/* Disable clicking on the checkbox itself. */
121 KB
Loading
Binary file not shown.

pydis_site/templates/resources/resources.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
{# Message to display when there are no hits #}
133133
<div class="no-resources-found">
134134
<h2 class="title is-3 has-text-centered pt-0 pb-6">No matching resources found!</h2>
135-
<img src="{% static "images/resources/duck_pond_404.png" %}" width="650px">
135+
<img src="{% static "images/resources/duck_pond_404.jpg" %}">
136136
</div>
137137

138138

0 commit comments

Comments
 (0)