Skip to content

Commit afc2f8b

Browse files
committed
feature - implement more deuil électoral
1 parent 74c2691 commit afc2f8b

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

frugal.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,11 @@ span.gouel-ville-proche {
399399
width: 50%;
400400
}
401401

402+
.header-title {
403+
white-space: nowrap;
404+
padding-left: 30px;
405+
}
406+
402407
.deuil-ribbon {
403408
display: inline-block;
404409
width: 12px;
@@ -429,6 +434,44 @@ span.gouel-ville-proche {
429434
}
430435
}
431436

437+
header {
438+
position: relative;
439+
/* overflow: hidden; */
440+
}
441+
442+
.deuil-corner-ribbon {
443+
position: absolute;
444+
top: 0;
445+
/* left: 0; */
446+
width: 232px; /* Longueur de la bande */
447+
height: 30px; /* Épaisseur de la bande */
448+
background: #000;
449+
color: #fff;
450+
451+
/* Rotation et placement */
452+
transform: rotate(-52deg) translate(-87px, -51px);
453+
transform-origin: center;
454+
455+
z-index: 999;
456+
box-shadow: 0 0 10px rgba(0,0,0,0.3);
457+
pointer-events: none; /* Permet de cliquer sur les liens dessous si besoin */
458+
}
459+
460+
/* Ajustement pour mobile si nécessaire */
461+
@media (max-width: 799px) {
462+
.deuil-corner-ribbon {
463+
left: -20px;
464+
width: 142px;
465+
height: 20px;
466+
transform: rotate(-52deg) translate(-45px, -10px)
467+
468+
}
469+
470+
.header-title {
471+
padding-left: 20px;
472+
}
473+
}
474+
432475
/* MEDIA QUERIES --- pour la lecture sur ordinateur, mobile et papier */
433476
@media only screen and (max-width: 799px)
434477
/*HANDHELD*/

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@
7272

7373
<body>
7474
<header>
75+
<div class="deuil-corner-ribbon" title="En deuil"></div>
7576
<div id="title">
7677
<div id="info-container">
77-
<h1 style="white-space: nowrap;">Ꝃlandrier.cc <span class="deuil-ribbon" title="En deuil électoral"></span></h1>
78+
<h1 class="header-title">Ꝃlandrier.cc <span class="deuil-ribbon" title="En deuil électoral"></span></h1>
7879
<p id="description">Agenda collaboratif des évènements autour de Concarneau</p>
7980
<span id="infos-link"> <a href="./diwar-benn.html">Ajouter un évènement manquant ou en savoir plus</a>
8081
</span>
@@ -89,9 +90,9 @@ <h1 style="white-space: nowrap;">Ꝃlandrier.cc <span class="deuil-ribbon" title
8990
<select id="monthSelect" aria-label="Choisir une date">
9091
<option class="month-option" aria-label="Choisir une date" label="Choisir une date" value="">Choisir
9192
une date</option>
92-
<option value="2026-02-01T00:00:00.000Z,2026-03-01T00:00:00.000Z">Février-2026</option>
9393
<option value="2026-03-01T00:00:00.000Z,2026-04-01T00:00:00.000Z">Mars-2026</option>
9494
<option value="2026-04-01T00:00:00.000Z,2026-05-01T00:00:00.000Z">Avril-2026</option>
95+
<option value="2026-05-01T00:00:00.000Z,2026-06-01T00:00:00.000Z">Mai-2026</option>
9596
</select>
9697
<div id="filters">
9798
<button class="filter" id="first-zone"><span>TRES PROCHE</span></button>

0 commit comments

Comments
 (0)