// ========================= // PRINT // ========================= @media print { * { box-shadow: none !important; } img { max-width: 100%; height: auto; } @page { // margin-top: 1cm; // margin-bottom: 1cm; // margin-left: 1cm; // margin-right: 1cm; } .layout-container{ display: block; } .path-projets-complets { .view-header{ margin-top: 0 !important; } .layout-content{ margin-top: 0 !important; width: 95% !important; .print-header { // position: absolute; // top: 1cm; // right: 1cm; // display: flex; // align-items: center; // gap: 0.5rem; position: relative !important; top: auto !important; right: auto !important; display: flex !important; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid #ccc; break-after: avoid; page-break-after: avoid; } // .print-header img { // width: 2cm; // height: auto; // } .print-header__left, .print-header__right { display: flex; align-items: center; gap: 1rem; } .print-header img { max-height: 55px; width: 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: right; } .view-header, .view-filters{ display: none; } .views-row{ .node-type-projet { border-bottom:none; } // margin-top: 3rem; break-after: page ; page-break-after: always; .projet-header-print-content{ width: 80%; margin: auto; } .projet-header-print{ // padding-top: 3rem; .field--name-title{ font-size: 1.2rem; } .field--name-field-photo .field__item:nth-child(n+8) { display: none; } .field--name-field-photo .image-field-caption { display: none; } .field--name-field-photo { // height: 66vh; .field__label { display: none; } .field__items { height: 100%; display: grid; gap: 4px; } .field__item { overflow: visible; aspect-ratio: 3.5/2; // aspect-ratio: 4/2; } .field__item img { width: 100%; height: 100%; object-fit: cover; display: block; } .image-field-caption { display: inline-block; width: 100%; z-index: 2; font-size: 6pt; line-height: 1; margin-left: 0; margin-top: 0; margin-bottom: 0; } // 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: 1rem; font-weight: 800; color: $blue-light; a { color: $blue-light; } } .field--name-field-equipe { order: 3; color: $blue-dark; font-size: 0.9rem; font-weight: 900; text-transform: uppercase; .field__label { display: none; } } .field--name-field-incube { order: 4; font-size: 8pt; 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; &::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-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: 0.9pt; font-weight: 900; text-transform: uppercase; margin-bottom: 0 !important; flex-direction: row; &::after { content: ':'; padding-left: 0.5rem; } } } .path-projets-complets { .layout-content { width: 100% !important; margin: 0 auto !important; } .projet-content { display: block !important; } .field--name-field-photo { .field__items { display: block !important; height: auto !important; } .field__item { display: block !important; aspect-ratio: auto !important; overflow: visible !important; margin-bottom: 4mm; } .field__item img { width: 100% !important; height: auto !important; object-fit: contain !important; display: block; } } } } .projet-body-print{ width: 80%; margin: auto; padding-top: 3rem ; } .paragraph{ break-inside: avoid; page-break-inside: avoid; } } } } .path-projets-complets .views-row { page-break-before: always; break-before: page; } .path-projets-complets .views-row:first-child { page-break-before: auto; break-before: auto; } .path-projets-complets .projet-header-print { page-break-after: always; break-after: page; } } .field--name-field-etape-du-projet, .field--name-field-type-de-projet, .field--name-field-type-de-moa { margin-bottom: 1rem; a { color: black; } .field__label { width: fit-content; 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__item{ width: fit-content; } } .field--name-field-textes{ margin-top: 2rem; .field__label{ display: none !important; } .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; } } ul{margin-top: 0;} p{margin-top: 0.5rem;} .paragraph--type--texte{ margin-top: 1.5rem; .field--name-field-titre{ margin-bottom: 1rem; } } .field--name-field-texte{ } }