Move js to css

This commit is contained in:
cuom1999 2022-06-03 14:07:27 -05:00
parent 1802458408
commit 6e6b247bf9

View file

@ -42,6 +42,14 @@
padding-top: 4px; padding-top: 4px;
} }
</style> </style>
{% else %}
<style>
@media(min-width: 800px) {
.middle-content {
max-width: 80%;
}
}
</style>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
@ -226,9 +234,6 @@
{% if request.in_contest_mode %} {% if request.in_contest_mode %}
$('.left-sidebar').hide(); $('.left-sidebar').hide();
if (window.matchMedia('(min-width: 800px)').matches) {
$('.middle-content').css('max-width', '80%');
}
{% endif %} {% endif %}
}); });
</script> </script>