Skip to content

Commit

Permalink
fix: Affichage du bandeau d'environnement (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend authored Feb 5, 2025
1 parent cda59af commit b71da26
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lemarche/static/itou_marche/admin.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#header-env-notice {
#header-env-notice p {
color: black;
line-height: 1.5;
font-size: 1.5rem;
text-transform: uppercase;
text-align: center;
margin: 0;
}

/* fix bug for apply multiselect filter */
Expand Down
6 changes: 6 additions & 0 deletions lemarche/static/itou_marche/itou_marche.scss
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ ul.summary-grid-list {
text-align: center;
}

#header-env-notice p {
line-height: 1.5;
font-size: 1.5rem;
text-transform: uppercase;
}

.bg-gray {
background-color: var(--g300);
}
Expand Down
2 changes: 1 addition & 1 deletion lemarche/templates/includes/_header_env_notice.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="header-env-notice" class="alert fs-lg font-weight-bold text-uppercase text-center fr-p-3" style="background-color:{{ BITOUBI_ENV_COLOR }}">
<p class="mb-0">
<p class="fr-mb-0">
{{ BITOUBI_ENV }}
</p>
</div>
3 changes: 3 additions & 0 deletions lemarche/templates/layouts/_header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% load i18n static theme_inclusion %}
{% if BITOUBI_ENV not in "prod" %}
{% include "includes/_header_env_notice.html" %}
{% endif %}
{% if not user.is_authenticated %}
{% if page.slug == "accueil-structure" %}
{% include "includes/_header_for_buyers.html" %}
Expand Down

0 comments on commit b71da26

Please sign in to comment.