display multiple links on news pages
This commit is contained in:
parent
b944bc0690
commit
80d1284484
@ -1 +1 @@
|
|||||||
Subproject commit 0072fa85fb15b168503b63af2b7df56f2a5e2b67
|
Subproject commit 6122ad5f5b1519bcca5014ea331ae61415480ea3
|
@ -3625,12 +3625,12 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
|
|||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2), .actu_full .file_fixed > div > div > div {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div {
|
||||||
padding: 0 1.5vw;
|
padding: 0 1.5vw;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: black;
|
color: black;
|
||||||
font-family: "Marianne", sans-serif;
|
font-family: "Marianne", sans-serif;
|
||||||
@ -3642,27 +3642,27 @@ aside.layout-sidebar-first:has(#block-erabletheme-views-block-projets-block-1) >
|
|||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
text-wrap: nowrap !important;
|
text-wrap: nowrap !important;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) a svg, .actu_full .file_fixed > div > div > div a svg {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a svg, .actu_full .file_fixed > div > div > div a svg {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) a:hover, .actu_full .file_fixed > div > div > div a:hover {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a:hover, .actu_full .file_fixed > div > div > div a:hover {
|
||||||
background-color: #00ff80;
|
background-color: #00ff80;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
@media (min-width: 1080px) {
|
@media (min-width: 1080px) {
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2), .actu_full .file_fixed > div > div > div {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div {
|
||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 75vw;
|
left: 75vw;
|
||||||
bottom: 10vh;
|
bottom: 10vh;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) > div, .actu_full .file_fixed > div > div > div > div {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div > div, .actu_full .file_fixed > div > div > div > div {
|
||||||
height: 3vh;
|
height: 3vh;
|
||||||
}
|
}
|
||||||
.actu_full .liens_fixed > div > div:nth-of-type(2) a, .actu_full .file_fixed > div > div > div a {
|
.actu_full .liens_fixed > div > div:nth-of-type(2) > div a, .actu_full .file_fixed > div > div > div a {
|
||||||
max-width: 19vw;
|
max-width: 19vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@
|
|||||||
//
|
//
|
||||||
let fluoButtons;
|
let fluoButtons;
|
||||||
if (document.querySelector('.actu_full')) {
|
if (document.querySelector('.actu_full')) {
|
||||||
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden), .file_fixed > div > .visually-hidden + div > div');
|
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden) > div, .file_fixed > div > .visually-hidden + div > div');
|
||||||
} else if (document.querySelector('.offre-content')) {
|
} else if (document.querySelector('.offre-content')) {
|
||||||
fluoButtons = document.querySelectorAll('.liens_fixed > div, .file_fixed > div > div');
|
fluoButtons = document.querySelectorAll('.liens_fixed > div, .file_fixed > div > div');
|
||||||
} else if (document.querySelector('.projets')) {
|
} else if (document.querySelector('.projets')) {
|
||||||
@ -365,7 +365,7 @@
|
|||||||
for (let item of asideProjectMenu.children) {
|
for (let item of asideProjectMenu.children) {
|
||||||
const itemTitle = item.innerText;
|
const itemTitle = item.innerText;
|
||||||
const contentPage = document.querySelector('.projet_full');
|
const contentPage = document.querySelector('.projet_full');
|
||||||
const contentPageTitle = contentPage.querySelector('h2').innerText;
|
const contentPageTitle = contentPage.querySelector('h2')?.innerText;
|
||||||
|
|
||||||
if (itemTitle.toLowerCase() === contentPageTitle.toLowerCase()) {
|
if (itemTitle.toLowerCase() === contentPageTitle.toLowerCase()) {
|
||||||
item.querySelector('a').classList.add('is-active');
|
item.querySelector('a').classList.add('is-active');
|
||||||
@ -453,8 +453,10 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
let initiatedMap = document.querySelector(`#${mapid}`);
|
let initiatedMap = document.querySelector(`#${mapid}`);
|
||||||
const currentLibelle = initiatedMap.parentElement.nextElementSibling.innerText;
|
const currentLibelle = initiatedMap.parentElement.nextElementSibling?.innerText;
|
||||||
|
if (currentLibelle) {
|
||||||
initiatedMap.parentElement.nextElementSibling.remove();
|
initiatedMap.parentElement.nextElementSibling.remove();
|
||||||
|
}
|
||||||
|
|
||||||
if (document.querySelectorAll('.leaflet-container').length <= 1) {
|
if (document.querySelectorAll('.leaflet-container').length <= 1) {
|
||||||
firstMap = map;
|
firstMap = map;
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
@include sous_titre();
|
@include sous_titre();
|
||||||
}
|
}
|
||||||
|
|
||||||
.liens_fixed > div > div:nth-of-type(2), .file_fixed > div > div > div {
|
.liens_fixed > div > div:nth-of-type(2) > div, .file_fixed > div > div > div {
|
||||||
padding: 0 calc($x_margin / 2);
|
padding: 0 calc($x_margin / 2);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin: 2rem 0;
|
margin: 2rem 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user