css node-type-ressource

This commit is contained in:
2025-11-05 01:09:18 +01:00
parent 77b82ce054
commit 35bedc622b
7 changed files with 552 additions and 3 deletions

View File

@@ -562,7 +562,7 @@ $(document).ready(function(){
//////////////// start lightbox galerie image page site////////////////////////
// Sélection des images à ouvrir dans la lightbox
let images = document.querySelectorAll('.paragraph--type--site-diapo .lightbox-trigger, .paragraph--type--projet-diapo .lightbox-trigger');
let images = document.querySelectorAll('.paragraph--type--site-diapo .lightbox-trigger, .paragraph--type--projet-diapo .lightbox-trigger, .imgages');
let currentIndex;
// Création de la lightbox

File diff suppressed because one or more lines are too long

View File

@@ -4431,6 +4431,228 @@ body {
text-transform: uppercase;
}
.node-type-ressource .layout-content {
margin-top: 2rem;
max-width: 100vw;
}
.node-type-ressource .layout-content .content_container {
width: 90% !important;
}
.node-type-ressource .layout--threecol-25-50-25 {
flex-wrap: nowrap;
justify-content: end;
}
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 {
display: flex;
flex-direction: column;
width: 100%;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second {
margin: auto;
flex: 0 1 70% !important;
margin-top: 1rem;
margin-right: 2rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
display: flex;
flex-direction: column;
flex-wrap: wrap;
margin-left: 2rem;
margin-right: 3rem;
}
@media (max-width: 500px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second {
margin-left: 0.5rem;
margin-top: 1rem;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_title,
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_sous_titre {
font-family: "gilroy-semibold";
font-size: 1.3rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_title) {
align-content: end;
order: 1;
color: rgb(7, 50, 194);
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_title) h2 {
margin: 0;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second .field_field_sous_titre {
font-size: 0.9rem;
padding-left: 1.5rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_sous_titre) {
flex: 0 0 100%;
order: 2;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_author) {
order: 3;
font-family: "gilroy-light";
font-size: 1.3rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_mots_clefs) {
order: 5;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_mots_clefs) .field_field_mots_clefs {
display: flex;
flex-direction: row;
margin-top: 1rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_mots_clefs) .field_field_mots_clefs div {
border: solid 1px rgb(7, 50, 194);
margin-right: 0.2rem;
padding: 0.1rem 0.2rem;
font-size: 0.6rem;
font-family: "gilroy-semibold";
color: rgb(7, 50, 194);
}
@media (max-width: 810px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_mots_clefs) .field_field_mots_clefs div {
font-size: 0.8rem;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_site) {
order: 6;
margin-top: 0.5rem;
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: solid 1px black;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_site) .field_field_site {
position: relative;
padding-left: 20px;
color: rgb(247, 0, 43);
font-family: "gilroy-semibold";
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_site) .field_field_site:before {
content: "";
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 1em;
height: 1em;
background-image: url("../img/map_pointer.svg");
background-size: contain;
background-repeat: no-repeat;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_body) {
order: 7;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_body) .field_body {
font-family: "gilroy-light";
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_body) .field_body p {
margin-top: 0;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_documents) {
order: 8 !important;
margin-bottom: 0.5rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_documents) .field_field_documents {
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;
padding: 0.3rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_documents) .field_field_documents a {
color: white;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_documents) .field_field_documents svg {
display: none;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens) {
order: 9;
margin-bottom: 1.5rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens) .field_field_liens {
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;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens) .field_field_liens svg {
display: none;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens) .field_field_liens::after {
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_liens) .field_field_liens a {
color: white;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) {
order: 10;
width: 100%;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama {
display: flex !important;
flex-direction: row !important;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 2rem;
}
@media (max-width: 500px) {
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama {
flex-direction: column !important;
}
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .images img {
object-fit: cover;
width: 220px !important;
height: 145px;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption {
margin: 0;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field_field_images) .diaporama .image-field-caption p {
margin-top: 0;
font-size: 0.5rem;
font-family: "gilroy-light";
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) {
order: 5;
margin-top: 0.5rem;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) .field--name-field-documents 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;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) .field--name-field-documents a svg {
display: none;
}
.node-type-ressource .layout--threecol-25-50-25 .layout__region--second .block-region-second div:has(.field--name-field-documents) .field--name-field-documents a::after {
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
.field_field_liens_site > div:nth-child(2) > div:nth-child(1) {
display: flex;
flex-direction: column;
}
main {
background-color: #f6f7f3;
}