/nope projet badge laureat only

This commit is contained in:
2025-11-24 22:35:23 +01:00
parent 0e1679fccd
commit 597501f29e
2 changed files with 8 additions and 3 deletions

View File

@@ -4373,7 +4373,7 @@ body {
padding-left: 2rem; padding-left: 2rem;
/* Quand ouvert */ /* Quand ouvert */
} }
.node-type-projet .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_laureats ::before { .node-type-projet .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_laureats:has(.laureat:not(:empty))::before {
content: ""; content: "";
position: absolute; position: absolute;
top: -0.1rem; top: -0.1rem;

View File

@@ -126,19 +126,24 @@
// margin-top: 3rem; // margin-top: 3rem;
} }
.field_field_laureats{ .field_field_laureats{
::before{
&:has(.laureat:not(:empty))::before {
content: ""; content: "";
position: absolute; position: absolute;
top: -0.1rem; // display: block;
top:-0.1rem;
left: 0.5rem; left: 0.5rem;
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
// background-color: #f6f7f3;
background-image: url("../img/laureat-ouvert.svg"); background-image: url("../img/laureat-ouvert.svg");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: contain; background-size: contain;
z-index: 0; z-index: 0;
} }
.laureat{ .laureat{
font-size: 0; font-size: 0;
} }