Compare commits
2 Commits
1c09ac0a55
...
7176f2d82d
Author | SHA1 | Date | |
---|---|---|---|
7176f2d82d | |||
91f248bfd7 |
File diff suppressed because one or more lines are too long
@@ -1594,6 +1594,9 @@ footer {
|
|||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
padding-bottom: 0.2rem;
|
padding-bottom: 0.2rem;
|
||||||
}
|
}
|
||||||
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .infos-actu {
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_field_date {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_field_date {
|
||||||
color: red;
|
color: red;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -1606,6 +1609,7 @@ footer {
|
|||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_title {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_title {
|
||||||
|
order: 3;
|
||||||
padding-top: 0.2rem;
|
padding-top: 0.2rem;
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_title h2 {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_title h2 {
|
||||||
@@ -1618,6 +1622,7 @@ footer {
|
|||||||
color: rgb(7, 50, 194);
|
color: rgb(7, 50, 194);
|
||||||
}
|
}
|
||||||
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_body {
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_body {
|
||||||
|
order: 4;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
transform: none !important;
|
transform: none !important;
|
||||||
font-family: "gilroy-regular";
|
font-family: "gilroy-regular";
|
||||||
@@ -1627,6 +1632,9 @@ footer {
|
|||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
|
#actus-caroussel .content-actus .views-row article.node-type-actualite .field_field_liens {
|
||||||
|
order: 5;
|
||||||
|
}
|
||||||
#actus-caroussel .content-actus .views-row:nth-child(odd) {
|
#actus-caroussel .content-actus .views-row:nth-child(odd) {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 60px;
|
top: 60px;
|
||||||
@@ -1904,6 +1912,9 @@ body {
|
|||||||
transform: scale(1.3);
|
transform: scale(1.3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#home .content_container #block-quartiers-de-demain-titredepage {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
#home .paragraph--type--static-parts {
|
#home .paragraph--type--static-parts {
|
||||||
padding-top: 4rem;
|
padding-top: 4rem;
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
|
@@ -357,33 +357,33 @@
|
|||||||
|
|
||||||
/////////////////// caracteres body actus/////////////////////////
|
/////////////////// caracteres body actus/////////////////////////
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
// document.addEventListener('DOMContentLoaded', function() {
|
||||||
// Nombre maximum de caractères à afficher
|
// // Nombre maximum de caractères à afficher
|
||||||
const maxChars = 140; // Ajustez cette valeur selon vos besoins
|
// const maxChars = 140; // Ajustez cette valeur selon vos besoins
|
||||||
|
|
||||||
document.querySelectorAll('#actus-caroussel .node-type-actualite').forEach(function(node) {
|
// document.querySelectorAll('#actus-caroussel .node-type-actualite').forEach(function(node) {
|
||||||
let paragraphs = node.querySelectorAll('.field_body p');
|
// let paragraphs = node.querySelectorAll('.field_body p');
|
||||||
let fullText = "";
|
// let fullText = "";
|
||||||
|
|
||||||
// Concaténer tous les paragraphes
|
// // Concaténer tous les paragraphes
|
||||||
paragraphs.forEach(p => fullText += p.textContent.trim() + " ");
|
// paragraphs.forEach(p => fullText += p.textContent.trim() + " ");
|
||||||
fullText = fullText.trim();
|
// fullText = fullText.trim();
|
||||||
|
|
||||||
// Vérifier si le texte dépasse la limite
|
// // Vérifier si le texte dépasse la limite
|
||||||
if (fullText.length > maxChars) {
|
// if (fullText.length > maxChars) {
|
||||||
let truncatedText = fullText.slice(0, maxChars) + '...';
|
// let truncatedText = fullText.slice(0, maxChars) + '...';
|
||||||
|
|
||||||
// Vider tout le contenu et insérer seulement le texte tronqué
|
// // Vider tout le contenu et insérer seulement le texte tronqué
|
||||||
let firstParagraph = paragraphs[0];
|
// let firstParagraph = paragraphs[0];
|
||||||
firstParagraph.textContent = truncatedText;
|
// firstParagraph.textContent = truncatedText;
|
||||||
|
|
||||||
// Masquer les autres paragraphes
|
// // Masquer les autres paragraphes
|
||||||
for (let i = 1; i < paragraphs.length; i++) {
|
// for (let i = 1; i < paragraphs.length; i++) {
|
||||||
paragraphs[i].style.display = "none";
|
// paragraphs[i].style.display = "none";
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@
|
|||||||
}
|
}
|
||||||
.content_container{
|
.content_container{
|
||||||
#block-quartiers-de-demain-titredepage{
|
#block-quartiers-de-demain-titredepage{
|
||||||
// display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.paragraph--type--static-parts{
|
.paragraph--type--static-parts{
|
||||||
|
@@ -99,7 +99,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.infos-actu{
|
.infos-actu{
|
||||||
// order: 2;
|
order: 2;
|
||||||
}
|
}
|
||||||
.field_field_date{
|
.field_field_date{
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
|
|
||||||
|
|
||||||
.field_title{
|
.field_title{
|
||||||
// order: 3;
|
order: 3;
|
||||||
padding-top: 0.2rem;
|
padding-top: 0.2rem;
|
||||||
h2{
|
h2{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.field_body{
|
.field_body{
|
||||||
// order: 4;
|
order: 4;
|
||||||
// visibility: visible;
|
// visibility: visible;
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
transform: none !important;
|
transform: none !important;
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.field_field_liens{
|
.field_field_liens{
|
||||||
// order: 5;
|
order: 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -92,13 +92,19 @@
|
|||||||
{# {{ content }} #}
|
{# {{ content }} #}
|
||||||
{# </div> #}
|
{# </div> #}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|
||||||
<div class="infos-actu">
|
<div class="infos-actu">
|
||||||
{{content.field_type_d_actualite}}
|
{{content.field_type_d_actualite}}
|
||||||
{{content.field_date}}
|
{{content.field_date}}
|
||||||
</div>
|
</div>
|
||||||
|
<h2{{ title_attributes }}>
|
||||||
|
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
|
||||||
|
</h2>
|
||||||
{{content.body}}
|
{{content.body}}
|
||||||
{{content.field_liens}}
|
{{content.field_liens}}
|
||||||
{{content.field_images}}
|
{{content.field_images}}
|
||||||
|
{{content.field_title}}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user