Compare commits
9 Commits
cf73983de3
...
prod
| Author | SHA1 | Date | |
|---|---|---|---|
| 29a4d44c8b | |||
| 26a8e45dca | |||
| d8eb9b0e4a | |||
| 5d208da095 | |||
| 87884a9091 | |||
| 807fa02e76 | |||
| 58ae8435e9 | |||
| 4decc2f130 | |||
| f5b499711f |
@@ -496,10 +496,19 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
const photo = document.querySelector('.field_field_equipe_photo');
|
||||
const pres = document.querySelector('.field_field_equipe_presentation');
|
||||
const isEnglish = window.location.pathname.startsWith('/en/');
|
||||
|
||||
const openText = isEnglish
|
||||
? "LEARN MORE ABOUT THE TEAM"
|
||||
: "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
|
||||
const closeText = isEnglish
|
||||
? "CLOSE THE TEAM PRESENTATION"
|
||||
: "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
|
||||
if (!photo || !pres) return;
|
||||
|
||||
// 🔒 Forcer l'état FERMÉ au chargement
|
||||
// Forcer l'état FERMÉ au chargement
|
||||
photo.classList.remove('is-open');
|
||||
pres.classList.remove('is-open');
|
||||
|
||||
@@ -519,7 +528,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
// 3. Création du bouton
|
||||
const btn = document.createElement('button');
|
||||
btn.className = 'btn-equipe-toggle';
|
||||
btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.textContent = openText;
|
||||
// btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'false');
|
||||
|
||||
// Insertion du bouton juste après le panel (et plus après "pres")
|
||||
@@ -540,7 +550,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
const fullHeight = panel.scrollHeight; // inclut photo + texte
|
||||
panel.style.maxHeight = fullHeight + 'px';
|
||||
|
||||
btn.textContent = "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
btn.textContent = closeText;
|
||||
// btn.textContent = "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'true');
|
||||
}
|
||||
|
||||
@@ -555,7 +566,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
pres.classList.remove('is-open');
|
||||
});
|
||||
|
||||
btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.textContent = openText;
|
||||
// btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'false');
|
||||
}
|
||||
|
||||
@@ -1292,7 +1304,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
|
||||
// Ajuster le nombre d'éléments visibles en fonction du type
|
||||
if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo")) {
|
||||
if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo" || typeClass.toLowerCase() === "type-les-webinaires-quartiers-de-demain")) {
|
||||
visibleCount = 2; // Pour Podcast et Vidéo
|
||||
} else if (typeClass === "type-kit-de-communication") {
|
||||
visibleCount = 1; // Pour Kit de Communication
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -403,7 +403,6 @@ header[role=banner] .header_left_container img {
|
||||
}
|
||||
}
|
||||
header[role=banner] .header_right_container {
|
||||
display: none;
|
||||
flex: 0 0 0%;
|
||||
width: fit-content;
|
||||
min-width: fit-content;
|
||||
@@ -3728,7 +3727,7 @@ body {
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_parties) {
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
order: 6;
|
||||
order: 7;
|
||||
}
|
||||
@media (max-width: 500px) {
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_parties) {
|
||||
@@ -3823,6 +3822,32 @@ body {
|
||||
padding-left: 0.2rem;
|
||||
height: 25px;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens_site) {
|
||||
order: 6;
|
||||
margin-top: 0.5rem;
|
||||
width: 100%;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens_site) .field_field_liens_site a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
padding-left: 0.5rem;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.5rem;
|
||||
margin-bottom: 0.3rem;
|
||||
width: fit-content;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens_site) .field_field_liens_site a svg {
|
||||
display: none;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens_site) .field_field_liens_site a::after {
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.2rem;
|
||||
padding-left: 0.2rem;
|
||||
height: 25px;
|
||||
}
|
||||
.node-type-site .layout--threecol-25-50-25 .layout__region--third {
|
||||
flex: 0 1 25% !important;
|
||||
height: fit-content;
|
||||
@@ -5778,6 +5803,69 @@ main {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row {
|
||||
width: 22%;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row {
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row h2 {
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-field-date-ressource {
|
||||
padding-top: 0.3rem;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-body-1 p {
|
||||
margin-top: 0.2rem;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-field-documents a,
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-field-liens a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.4rem;
|
||||
padding: 0.1rem 0.5rem;
|
||||
padding-right: 0rem;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-field-documents a::after,
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Perspectives-Quartiers-de-demain .views-row .views-field-field-liens a::after {
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.1rem;
|
||||
padding-left: 0.1rem;
|
||||
height: 25px;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row {
|
||||
width: 43%;
|
||||
margin: 1rem;
|
||||
justify-content: space-between;
|
||||
}
|
||||
@media (max-width: 810px) {
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
border-radius: 9px;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row iframe {
|
||||
border-radius: 9px;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row .views-field-title-1 {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper.type-Les-Webinaires-Quartiers-de-demain .views-row .views-field-field-liens {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.type-documentation .views-field-body-1,
|
||||
.type-documentation .views-field-field-images,
|
||||
|
||||
@@ -438,10 +438,19 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
const photo = document.querySelector('.field_field_equipe_photo');
|
||||
const pres = document.querySelector('.field_field_equipe_presentation');
|
||||
const isEnglish = window.location.pathname.startsWith('/en/');
|
||||
|
||||
const openText = isEnglish
|
||||
? "LEARN MORE ABOUT THE TEAM"
|
||||
: "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
|
||||
const closeText = isEnglish
|
||||
? "CLOSE THE TEAM PRESENTATION"
|
||||
: "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
|
||||
if (!photo || !pres) return;
|
||||
|
||||
// 🔒 Forcer l'état FERMÉ au chargement
|
||||
// Forcer l'état FERMÉ au chargement
|
||||
photo.classList.remove('is-open');
|
||||
pres.classList.remove('is-open');
|
||||
|
||||
@@ -461,7 +470,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
// 3. Création du bouton
|
||||
const btn = document.createElement('button');
|
||||
btn.className = 'btn-equipe-toggle';
|
||||
btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.textContent = openText;
|
||||
// btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'false');
|
||||
|
||||
// Insertion du bouton juste après le panel (et plus après "pres")
|
||||
@@ -482,7 +492,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
const fullHeight = panel.scrollHeight; // inclut photo + texte
|
||||
panel.style.maxHeight = fullHeight + 'px';
|
||||
|
||||
btn.textContent = "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
btn.textContent = closeText;
|
||||
// btn.textContent = "FERMER LA PRÉSENTATION DE L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'true');
|
||||
}
|
||||
|
||||
@@ -497,7 +508,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
pres.classList.remove('is-open');
|
||||
});
|
||||
|
||||
btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.textContent = openText;
|
||||
// btn.textContent = "EN SAVOIR PLUS SUR L'ÉQUIPE";
|
||||
btn.setAttribute('aria-expanded', 'false');
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
// Ajuster le nombre d'éléments visibles en fonction du type
|
||||
if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo")) {
|
||||
if (typeClass && (typeClass === "type-podcast" || typeClass.toLowerCase() === "type-vidéo" || typeClass.toLowerCase() === "type-les-webinaires-quartiers-de-demain")) {
|
||||
visibleCount = 2; // Pour Podcast et Vidéo
|
||||
} else if (typeClass === "type-kit-de-communication") {
|
||||
visibleCount = 1; // Pour Kit de Communication
|
||||
|
||||
@@ -269,7 +269,7 @@
|
||||
div:has(.field_field_parties){
|
||||
margin-top: 2rem;
|
||||
width: 100%;
|
||||
order:6;
|
||||
order:7;
|
||||
@media(max-width: 500px){
|
||||
width: 100%;
|
||||
}
|
||||
@@ -378,8 +378,37 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
div:has(.field_field_liens){
|
||||
|
||||
div:has(.field_field_liens_site){
|
||||
order: 6;
|
||||
margin-top: 0.5rem;
|
||||
width: 100%;
|
||||
.field_field_liens_site{
|
||||
a{
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
padding-left: 0.5rem;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.5rem;
|
||||
margin-bottom: 0.3rem;
|
||||
width: fit-content;
|
||||
|
||||
svg{
|
||||
display: none;
|
||||
}
|
||||
&::after{
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.2rem;
|
||||
padding-left: 0.2rem;
|
||||
height: 25px;
|
||||
// padding-bottom: 0.2rem;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,6 +362,72 @@
|
||||
|
||||
}
|
||||
}
|
||||
&.type-Les-Perspectives-Quartiers-de-demain{
|
||||
|
||||
.views-row{
|
||||
width: 22%;
|
||||
padding: 0.5rem;
|
||||
|
||||
@media(max-width: 810px){
|
||||
width: 50%;
|
||||
}
|
||||
h2{margin-bottom: 0.2rem;}
|
||||
.views-field-field-date-ressource{
|
||||
padding-top: 0.3rem;
|
||||
}
|
||||
.views-field-body-1 p{
|
||||
margin-top: 0.2rem;
|
||||
margin-bottom: 0.2rem;
|
||||
}
|
||||
.views-field-field-documents a,
|
||||
.views-field-field-liens a{
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: white;
|
||||
background: black;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.4rem;
|
||||
padding: 0.1rem 0.5rem;
|
||||
padding-right: 0rem;
|
||||
&::after{
|
||||
display: inline-flex;
|
||||
content: url("../img/noun-arrow-to-right.svg");
|
||||
padding-right: 0.1rem;
|
||||
padding-left: 0.1rem;
|
||||
height: 25px;
|
||||
}
|
||||
}
|
||||
.views-field-field-liens{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
&.type-Les-Webinaires-Quartiers-de-demain{
|
||||
.views-row{
|
||||
width: 43%;
|
||||
margin: 1rem;
|
||||
justify-content: space-between;
|
||||
@media(max-width: 810px){
|
||||
width: 100%;
|
||||
}
|
||||
img{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
border-radius: 9px;
|
||||
}
|
||||
iframe{
|
||||
border-radius: 9px;
|
||||
}
|
||||
.views-field-title-1{margin-top: 1rem;}
|
||||
.views-field-field-liens{
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
=========================== */
|
||||
|
||||
.header_right_container {
|
||||
display: none;
|
||||
// display: none;
|
||||
flex: 0 0 0%;
|
||||
width: fit-content;
|
||||
min-width: fit-content;
|
||||
|
||||
Reference in New Issue
Block a user