Skip to content

Commit 98ac8a9

Browse files
committed
Added margins and max-width to filtering column.
1 parent 7ab8e07 commit 98ac8a9

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

pydis_site/static/css/resources/resources.css

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,14 @@ span.resource-tag.active {
163163
outline-style: solid;
164164
}
165165

166+
/* Disable transitions */
167+
.no-transition {
168+
-webkit-transition: none !important;
169+
-moz-transition: none !important;
170+
-o-transition: none !important;
171+
transition: none !important;
172+
}
173+
166174
/* Make filter tags sparkle when selected! */
167175
@keyframes glow_success {
168176
from { box-shadow: 0 0 2px 2px #aef4af; }
@@ -216,10 +224,10 @@ span.resource-tag.active.has-background-info-light {
216224
}
217225
}
218226

219-
/* Disable transitions */
220-
.no-transition {
221-
-webkit-transition: none !important;
222-
-moz-transition: none !important;
223-
-o-transition: none !important;
224-
transition: none !important;
227+
/* Constrain the width of the filterbox */
228+
@media screen and (min-width: 769px) {
229+
.filtering-column {
230+
max-width: 25rem;
231+
min-width: 18rem;
232+
}
225233
}

pydis_site/templates/resources/resources.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
{% include "base/navbar.html" %}
1818
<input type="hidden" id="resource-type-input" value="{{ resource_type }}">
1919
<section class="section">
20-
<div class="columns is-centered">
20+
<div class="columns is-variable is-6 is-centered">
2121
{# Filtering toolbox #}
22-
<div class="column is-one-third">
22+
<div class="column filtering-column is-one-third">
2323
<div class="content is-justify-content-center">
2424
<nav id="resource-filtering-panel" class="panel is-primary">
2525
<p class="panel-heading has-text-centered" id="filter-panel-header">Filter Resources</p>

0 commit comments

Comments
 (0)