ouidade 6 часов назад
Родитель
Сommit
f55e4c19a4

+ 25 - 7
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;

+ 37 - 4
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;
+          }
+        }
+      }
+    }
   } 

+ 1 - 1
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;