Skip to content

Commit

Permalink
add class to remove header and footer in mobile versions
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed Nov 13, 2023
1 parent 4fe741a commit 45787bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ export default defineComponent({
</script>

<style>
.fr-header, .fr-footer {
.remove-mobile-header-footer .fr-header, .remove-mobile-header-footer .fr-footer {
display: none;
}
@media (min-width: 48em) {
.fr-header, .fr-footer {
.remove-mobile-header-footer .fr-header, .remove-mobile-header-footer .fr-footer {
display: inherit;
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
2:'REFUSEE',
3:'CLOTUREE',
} %}
<body>
<body {% if bodyClass is defined %}class="{{ bodyClass }}"{% endif %}>
{% if 'back_' not in app.request.get('_route') %}
{% include "header.html.twig" %}
{% for label, messages in app.flashes %}
Expand Down
1 change: 1 addition & 0 deletions templates/front/nouveau_formulaire.html.twig
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% set bodyClass = 'remove-mobile-header-footer' %}
{% extends 'base.html.twig' %}

{% block title %}Déposez votre signalement{% endblock %}
Expand Down

0 comments on commit 45787bc

Please sign in to comment.