From f55e4c19a491642bd0819a817f1bfa58d4cd6283 Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 7 May 2026 14:40:06 +0200 Subject: [PATCH] divers --- .../custom/eql/dist/assets/css/bundle.css | 32 +++++++++++---- .../global/print/_projets-complets-ecran.scss | 41 +++++++++++++++++-- .../global/print/_projets-complets-print.scss | 2 +- 3 files changed, 63 insertions(+), 12 deletions(-) diff --git a/web/themes/custom/eql/dist/assets/css/bundle.css b/web/themes/custom/eql/dist/assets/css/bundle.css index 7080d29..5f7568f 100644 --- a/web/themes/custom/eql/dist/assets/css/bundle.css +++ b/web/themes/custom/eql/dist/assets/css/bundle.css @@ -393,10 +393,6 @@ svg.ext { .path-projets-complets .print-header { display: none; } -.path-projets-complets .print-header img { - width: 2cm; - height: auto; -} .path-projets-complets .print-header__text { text-transform: uppercase; font-family: "Source Code Pro"; @@ -594,6 +590,31 @@ svg.ext { content: ":"; padding-left: 0.5rem; } +@media print { + .path-projets-complets .path-projets-complets .layout-content { + width: 100% !important; + margin: 0 auto !important; + } + .path-projets-complets .path-projets-complets .projet-content { + display: block !important; + } + .path-projets-complets .path-projets-complets .field--name-field-photo .field__items { + display: block !important; + height: auto !important; + } + .path-projets-complets .path-projets-complets .field--name-field-photo .field__item { + display: block !important; + aspect-ratio: auto !important; + overflow: visible !important; + margin-bottom: 4mm; + } + .path-projets-complets .path-projets-complets .field--name-field-photo .field__item img { + width: 100% !important; + height: auto !important; + object-fit: contain !important; + display: block; + } +} @media print { * { @@ -612,9 +633,6 @@ svg.ext { .layout-container { display: block; } - .path-projets-complets .layout-content { - width: 80vw; - } .path-projets-complets .layout-content .print-header { position: absolute; top: 1cm; diff --git a/web/themes/custom/eql/scss/global/print/_projets-complets-ecran.scss b/web/themes/custom/eql/scss/global/print/_projets-complets-ecran.scss index 2f0871a..790b1d0 100644 --- a/web/themes/custom/eql/scss/global/print/_projets-complets-ecran.scss +++ b/web/themes/custom/eql/scss/global/print/_projets-complets-ecran.scss @@ -21,10 +21,10 @@ - .print-header img { - width: 2cm; - height: auto; - } + // .print-header img { + // width: 2cm; + // height: auto; + // } .print-header__text { text-transform: uppercase; @@ -260,4 +260,37 @@ } } + @media print { + .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; + } + } + } + } } \ No newline at end of file diff --git a/web/themes/custom/eql/scss/global/print/_projets-complets-print.scss b/web/themes/custom/eql/scss/global/print/_projets-complets-print.scss index 5037feb..44abd60 100644 --- a/web/themes/custom/eql/scss/global/print/_projets-complets-print.scss +++ b/web/themes/custom/eql/scss/global/print/_projets-complets-print.scss @@ -21,7 +21,7 @@ .path-projets-complets { .layout-content{ - width: 80vw; + // width: 80vw; .print-header { position: absolute;