twig header print
This commit is contained in:
+19
-9
@@ -621,16 +621,28 @@ svg.ext {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.path-projets-complets .layout-content .print-header {
|
.path-projets-complets .layout-content .print-header {
|
||||||
position: absolute;
|
position: relative !important;
|
||||||
top: 1cm;
|
top: auto !important;
|
||||||
right: 1cm;
|
right: auto !important;
|
||||||
|
display: flex !important;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
break-after: avoid;
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
.path-projets-complets .layout-content .print-header__left,
|
||||||
|
.path-projets-complets .layout-content .print-header__right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
.path-projets-complets .layout-content .print-header img {
|
.path-projets-complets .layout-content .print-header img {
|
||||||
width: 2cm;
|
max-height: 55px;
|
||||||
height: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
.path-projets-complets .layout-content .print-header__text {
|
.path-projets-complets .layout-content .print-header__text {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -639,7 +651,7 @@ svg.ext {
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
text-align: end;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.path-projets-complets .layout-content .view-header,
|
.path-projets-complets .layout-content .view-header,
|
||||||
.path-projets-complets .layout-content .view-filters {
|
.path-projets-complets .layout-content .view-filters {
|
||||||
@@ -815,8 +827,6 @@ svg.ext {
|
|||||||
content: ":";
|
content: ":";
|
||||||
padding-left: 0.5rem;
|
padding-left: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@media print {
|
|
||||||
.path-projets-complets .layout-content .views-row .projet-header-print .path-projets-complets .layout-content {
|
.path-projets-complets .layout-content .views-row .projet-header-print .path-projets-complets .layout-content {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
margin: 0 auto !important;
|
margin: 0 auto !important;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
@@ -5,6 +5,7 @@
|
|||||||
* {
|
* {
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -24,20 +25,44 @@
|
|||||||
// width: 80vw;
|
// width: 80vw;
|
||||||
|
|
||||||
.print-header {
|
.print-header {
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
top: 1cm;
|
// top: 1cm;
|
||||||
right: 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: 1.5rem;
|
||||||
|
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;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.print-header img {
|
.print-header img {
|
||||||
width: 2cm;
|
max-height: 55px;
|
||||||
height: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
.print-header__text {
|
||||||
.print-header__text {
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-family: "Source Code Pro";
|
font-family: "Source Code Pro";
|
||||||
|
|
||||||
@@ -45,7 +70,7 @@
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
text-align: end;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-header,
|
.view-header,
|
||||||
@@ -263,7 +288,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
|
||||||
|
|
||||||
.path-projets-complets {
|
.path-projets-complets {
|
||||||
.layout-content {
|
.layout-content {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
@@ -294,12 +320,10 @@
|
|||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
}
|
}
|
||||||
blockquote{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.projet-body-print{
|
.projet-body-print{
|
||||||
|
|||||||
@@ -36,8 +36,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<header role="banner" class="no-print">
|
<header role="banner" >
|
||||||
<section id="header-top">
|
<section id="header-top" class="print-header-first-page">
|
||||||
{{ page.header_top_left }}
|
{{ page.header_top_left }}
|
||||||
{{ page.header_top_rigth }}
|
{{ page.header_top_rigth }}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -94,17 +94,25 @@
|
|||||||
|
|
||||||
<div class="projet-content"{{ content_attributes }}>
|
<div class="projet-content"{{ content_attributes }}>
|
||||||
{# {{ content }} #}
|
{# {{ content }} #}
|
||||||
{# <div class="print-header">
|
|
||||||
<div class="print-header__text">
|
|
||||||
ENGAGÉS POUR LA QUALITÉ<br>
|
|
||||||
DU LOGEMENT DE DEMAIN
|
|
||||||
</div>
|
|
||||||
<img src="{{ directory }}/images/sceau_excellence_def.png" alt="">
|
|
||||||
</div> #}
|
|
||||||
|
|
||||||
{# <div class="projet-content"> #}
|
{# <div class="projet-content"> #}
|
||||||
|
|
||||||
|
|
||||||
<div class="projet-header-print">
|
<div class="projet-header-print">
|
||||||
|
<div class="print-header">
|
||||||
|
<div class="print-header__left">
|
||||||
|
<img src="{{ directory }}/images/gouv.png" alt="">
|
||||||
|
<img src="{{ directory }}/images/EPAU_noir.png" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="print-header__right">
|
||||||
|
<div class="print-header__text">
|
||||||
|
ENGAGÉS POUR LA QUALITÉ<br>
|
||||||
|
DU LOGEMENT DE DEMAIN
|
||||||
|
</div>
|
||||||
|
<img src="{{ directory }}/images/sceau_excellence_def.png" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{ content.field_photo }}
|
{{ content.field_photo }}
|
||||||
{{ content.title }}
|
{{ content.title }}
|
||||||
{{ content.field_equipe }}
|
{{ content.field_equipe }}
|
||||||
|
|||||||
Reference in New Issue
Block a user