Move js to css
This commit is contained in:
parent
1802458408
commit
6e6b247bf9
1 changed files with 8 additions and 3 deletions
|
@ -42,6 +42,14 @@
|
|||
padding-top: 4px;
|
||||
}
|
||||
</style>
|
||||
{% else %}
|
||||
<style>
|
||||
@media(min-width: 800px) {
|
||||
.middle-content {
|
||||
max-width: 80%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -226,9 +234,6 @@
|
|||
|
||||
{% if request.in_contest_mode %}
|
||||
$('.left-sidebar').hide();
|
||||
if (window.matchMedia('(min-width: 800px)').matches) {
|
||||
$('.middle-content').css('max-width', '80%');
|
||||
}
|
||||
{% endif %}
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue