font size title soustitle
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+3
-3
@@ -6820,7 +6820,7 @@ article.node-type-ressource .wrapper-ressource .field--name-title h2 {
|
|||||||
}
|
}
|
||||||
article.node-type-ressource .wrapper-ressource .field--name-title h2 a {
|
article.node-type-ressource .wrapper-ressource .field--name-title h2 a {
|
||||||
color: rgb(0, 0, 0);
|
color: rgb(0, 0, 0);
|
||||||
font-size: 1rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -6841,9 +6841,9 @@ article.node-type-ressource .wrapper-ressource .field--name-field-sous-titre {
|
|||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
margin-top: 0.8rem;
|
margin-top: 0.8rem;
|
||||||
order: 5;
|
order: 5;
|
||||||
font-size: 1rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
line-height: 1.3;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
article.node-type-ressource .wrapper-ressource .field--name-field-edition {
|
article.node-type-ressource .wrapper-ressource .field--name-field-edition {
|
||||||
order: 7;
|
order: 7;
|
||||||
|
|||||||
@@ -272,4 +272,18 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
////////////////// start tronquage sous titre //////////////////
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
const maxLength = 20; // <-- modifiez cette valeur si besoin
|
||||||
|
const field = document.querySelector(".field--name-field-sous-titre a");
|
||||||
|
|
||||||
|
if (field) {
|
||||||
|
const fullText = field.textContent.trim();
|
||||||
|
if (fullText.length > maxLength) {
|
||||||
|
const truncated = fullText.slice(0, maxLength).trim() + "...";
|
||||||
|
field.textContent = truncated;
|
||||||
|
field.setAttribute("title", fullText); // Affiche le texte complet au survol
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ article.node-type-ressource{
|
|||||||
margin-bottom: 0 !important;
|
margin-bottom: 0 !important;
|
||||||
a{
|
a{
|
||||||
color: $black;
|
color: $black;
|
||||||
font-size: 1rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -167,9 +167,9 @@ article.node-type-ressource{
|
|||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
margin-top: 0.8rem;
|
margin-top: 0.8rem;
|
||||||
order: 5;
|
order: 5;
|
||||||
font-size: 1rem;
|
font-size: 0.9rem;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
line-height: 1.3;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
.field--name-field-edition{
|
.field--name-field-edition{
|
||||||
order: 7;
|
order: 7;
|
||||||
|
|||||||
Reference in New Issue
Block a user