insert svg dans twig & css

This commit is contained in:
2024-07-04 12:54:09 +02:00
parent 8d43073a18
commit 7a39b7c42e
6 changed files with 109 additions and 44 deletions

View File

@@ -827,34 +827,63 @@ footer span.totop #toTop .arrow-up::before {
width: 80%;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto {
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 2rem;
display: grid;
grid-template-columns: repeat(6 auto);
grid-template-rows: repeat(3 1fr);
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto h5 {
font-size: 5rem;
font-weight: 800;
margin-bottom: 0;
margin: 0;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto h5:nth-of-type(1) {
grid-row: 2;
grid-column: 1;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto h5:nth-of-type(2) {
grid-row: 2;
grid-column: 3;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto h5:nth-of-type(3) {
grid-row: 1;
grid-column: 5;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p {
width: 30%;
display: flex;
flex-direction: column;
font-size: 1rem;
font-weight: 400;
margin: 0;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:not(:last-of-type) {
padding-right: 2rem;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(1)::before {
content: url("../img/pillier-1-full.svg");
padding-bottom: 1rem;
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto svg:nth-of-type(1) {
grid-row: 1/span 2;
grid-column: 1/span 2;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(2)::after {
content: url("../img/pillier-2-full.svg");
padding-top: 1rem;
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto svg:nth-of-type(2) {
grid-row: 3;
grid-column: inherit;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(3)::before {
content: url("../img/pillier-3-full.svg");
padding-bottom: 1rem;
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto svg:nth-of-type(3) {
grid-row: 1/span 2;
grid-column: 5/span 6;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(1) {
grid-row: 3;
grid-column: 1/span 2;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(2) {
grid-row: 1;
}
#home article.node-type-static #paragraph-id--7 .field_field_texte .colone-picto p:nth-of-type(3) {
grid-row: 3;
grid-column: 5;
}
#home article.node-type-static #paragraph-id--9 {
display: none;
}
#home .paragraph--type--static-parts:not(#paragraph-id--7) #svg1 {
display: none;
}

View File

@@ -39,5 +39,5 @@
id="tspan1"
x="-1.4831511"
y="387.52762"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:183.589px;font-family:Gilroy;-inkscape-font-specification:'Gilroy Semi-Bold';fill:#ffffff;fill-opacity:1;stroke-width:0.956195">1.</tspan></text>
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:183.589px;font-family:Gilroy, sans-serif;-inkscape-font-specification:'Gilroy Semi-Bold';fill:#ffffff;fill-opacity:1;stroke-width:0.956195">1.</tspan></text>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -3,7 +3,7 @@
<svg
version="1.1"
id="svg1"
id="svg2"
width="362.79999"
height="562.18646"
viewBox="0 0 362.79999 562.18646"
@@ -39,5 +39,5 @@
id="tspan1"
x="-0.4619709"
y="130.89897"
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:183.589px;font-family:Gilroy;-inkscape-font-specification:'Gilroy Semi-Bold';fill:#ffffff;fill-opacity:1;stroke-width:0.956195">2.</tspan></text>
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:183.589px;font-family:Gilroy;font-family:sans-serif;fill:#ffffff;fill-opacity:1;stroke-width:0.956195">2.</tspan></text>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -3,7 +3,7 @@
<svg
version="1.1"
id="svg1"
id="svg2"
width="362.79999"
height="362.79999"
viewBox="0 0 362.79999 362.79998"

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB