Skip to content

Commit b773ec9

Browse files
committed
modifie le logo pour le dark mode
1 parent 6cb09eb commit b773ec9

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

_includes/templates/header.njk

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
<div class="fr-header__operator">
1111
<img
1212
src="/img/logo.webp"
13-
class="fr-responsive-img"
13+
class="fr-responsive-img logo"
14+
style="width:9rem; border-radius:0.5rem"
15+
alt="MiNumEco, la mission interministérielle numérique écoresponsable"/>
16+
<img
17+
src="/img/logo-white.webp"
18+
class="fr-responsive-img logo-white"
1419
style="width:9rem; border-radius:0.5rem"
1520
alt="MiNumEco, la mission interministérielle numérique écoresponsable"/>
1621
</div>
@@ -20,7 +25,6 @@
2025
</button>
2126
</div>
2227
</div>
23-
2428
<div class="fr-header__service">
2529
<a href="{{ "/" | locale_url }}" title="{{ "home" | i18n }} - {{ metadata.title }} - {{ metadata.service }}">
2630
<p class="fr-header__service-title">
@@ -30,7 +34,6 @@
3034
<p class="fr-header__service-tagline">{{ metadata.subtitle }}</p>
3135
</div>
3236
</div>
33-
3437
<div class="fr-header__tools">
3538
<div class="fr-header__tools-links">
3639
<ul class="fr-links-group">
@@ -46,17 +49,13 @@
4649
</div>
4750
</div>
4851
</div>
49-
5052
<div class="fr-header__menu fr-modal" id="modal-491" aria-labelledby="button-492">
5153
<div class="fr-container">
5254
<button class="fr-btn--close fr-btn" aria-controls="modal-491" title="{{ "close" | i18n }}">
5355
{{ "close" | i18n }}
5456
</button>
55-
56-
<div class="fr-header__menu-links">
57-
</div>
58-
57+
<div class="fr-header__menu-links"></div>
5958
{% include "templates/navigation.njk" %}
6059
</div>
6160
</div>
62-
</header>
61+
</header>

public/css/index.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,3 +195,16 @@ p:empty {
195195
.guide-bonne-pratique__summary__list .fr-summary__link::before {
196196
content: none;
197197
}
198+
199+
.logo-white {
200+
display: none !important;
201+
}
202+
203+
[data-fr-theme="dark"] {
204+
.logo {
205+
display: none !important;
206+
}
207+
.logo-white {
208+
display: block !important;
209+
}
210+
}

public/img/logo-white.webp

10.5 KB
Binary file not shown.

public/img/logo.webp

-22.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)