.path-projets-complets { .layout-container header{ top: inherit !important; left: inherit !important; } .layout-content{ width: 60vw; margin: auto; } // ========================= // ÉCRAN // ========================= span { display: none; } .print-header{ display: none; } .print-header img { width: 2cm; height: auto; } .print-header__text { text-transform: uppercase; font-family: "Source Code Pro"; color: $blue-dark; font-size: 0.8rem; font-weight: 500; text-transform: uppercase; text-align: end; } .node-type-projet { border-bottom: 1px solid black; padding-bottom: 5rem; margin-bottom: 5rem; } .projet-content { display: flex; flex-direction: column; } .field--name-field-photo { // height: 66vh; .field__label { display: none; } .field__items { height: 100%; display: grid; gap: 3px; } .field__item { overflow: hidden; aspect-ratio: 3 / 2; } .field__item img { width: 100%; height: 100%; object-fit: cover; display: block; } .image-field-caption { display: none; } // 1 seule image .field__items:has(.field__item:only-child) { grid-template-columns: 1fr; // grid-template-rows: 1fr; } .field__items:has(.field__item:only-child) .field__item { grid-column: 1; // grid-row: 1; } // Plusieurs images .field__items:has(.field__item:nth-child(2)) { grid-template-columns: repeat(3, 1fr); // grid-template-rows: 4fr 2fr 2fr; } .field__items:has(.field__item:nth-child(2)) .field__item:first-child { grid-column: 1 / 4; // grid-row: 1; } // facultatif : max 7 images affichées .field__items .field__item:nth-child(n + 8) { display: none; } } // } .field--name-title { order: 2; font-family: "Marianne"; font-size: 2rem; font-weight: 800; color: $blue-light; @media (max-width: 1624px) { font-size: 2.3rem; } @media (max-width: 1384px) { font-size: 2rem; } @media (max-width: 1216px) { font-size: 2rem; } @media (max-width: 810px) { font-size: 1.7rem; } a { color: $blue-light; } } .field--name-field-equipe { order: 3; color: $blue-dark; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; @media (max-width: 1624px) { font-size: 1.3rem; } @media (max-width: 1216px) { font-size: 1.1rem; } @media (max-width: 810px) { font-size: 1rem; } .field__label { display: none; } } .field--name-field-incube { order: 4; display: inline-flex; width: fit-content; background-color: $red; color: white; font-weight: 800; padding-right: 0.3rem; padding-left: 0.2rem; margin-bottom: 1rem; margin-top: 1rem; // flex-direction: row; &::before { content: ' Projet '; padding-right: 0.5rem; } .field__label{ display: inline; } .field__item { display: none; } } .field--name-field-neuf-rehabilitation, .field--name-field-encours-fini { display: none; } .field--name-field-region { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; &::before { content: ""; display: block; width: 20px; height: 20px; background: url("../images/pictos/picto_lieu.svg") no-repeat center; background-size: contain; } } .field--name-field-type-de-moa { order: 6; } .field--name-field-type-de-projet { order: 7; } .field--name-field-etape-du-projet { order: 8; } .field--name-field-textes { order: 9; .field__label { display: none; } .field--name-field-titre { color: $blue-dark; font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0 !important; flex-direction: row; &::after { content: ' :'; padding-left: 0.5rem; } } } .field--name-field-etape-du-projet, .field--name-field-type-de-projet, .field--name-field-type-de-moa { a { color: black; } .field__label { color: $blue-dark; font-size: 1.2rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0 !important; flex-direction: row; &::after { content: ':'; padding-left: 0.5rem; } } } }