begin print
This commit is contained in:
+447
-22
@@ -1,3 +1,6 @@
|
||||
/*!*******************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./scss/styles.scss ***!
|
||||
\*******************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
/*eql*/
|
||||
/*setup*/
|
||||
@@ -261,6 +264,422 @@ svg.ext {
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
/* -----------------------/*
|
||||
* Feuille de style Print "Bretzel" adaptée
|
||||
* Made par Alsacréations + tweaks EQL
|
||||
/* ---------------------- */
|
||||
/*
|
||||
* Ressources et documentations :
|
||||
* 1- https://www.docuseal.co/blog/css-print-page-style
|
||||
* 2- https://www.alsacreations.com/astuce/lire/1160-Une-feuille-de-styles-de-base-pour-le-media-print.html
|
||||
*/
|
||||
/* Colors used for EQL */
|
||||
/* 1) VRAIE feuille d'impression */
|
||||
@media print {
|
||||
/* Dimension et marges de page */
|
||||
@page {
|
||||
size: A4 portrait;
|
||||
margin: 1.5cm 1.5cm;
|
||||
@bottom-center {
|
||||
content: "Page " counter(page) " / " counter(pages);
|
||||
}
|
||||
}
|
||||
/* Reset général */
|
||||
* {
|
||||
all: unset;
|
||||
display: revert;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
all: revert;
|
||||
}
|
||||
/* Styles globaux (12pt = 16px) */
|
||||
body,
|
||||
p,
|
||||
span {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
font-family: "Marianne", serif !important;
|
||||
font-size: 12pt;
|
||||
line-height: 1.5;
|
||||
color: #000000 !important;
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
.back-cover {
|
||||
break-before: page;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
.back-cover .region h2 {
|
||||
margin-top: 0;
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.back-cover .view-id-partenaires .view-content img {
|
||||
width: 5rem;
|
||||
height: auto;
|
||||
}
|
||||
.back-cover .view-id-partenaires .view-content a[href^=http]:after {
|
||||
display: none;
|
||||
}
|
||||
.back-cover .view-id-partenaires .views-row-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
/* Espacements typographiques (15pt = 20px) */
|
||||
p,
|
||||
blockquote,
|
||||
label,
|
||||
ul,
|
||||
ol {
|
||||
margin-block: 0 15pt;
|
||||
}
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
/* Titrages */
|
||||
h1 {
|
||||
margin-block: 0 24pt;
|
||||
font-weight: 700;
|
||||
font-size: 18pt;
|
||||
line-height: 1.1;
|
||||
}
|
||||
h2 {
|
||||
margin-block: 0 18pt;
|
||||
font-weight: 700;
|
||||
font-size: 16pt;
|
||||
line-height: 1.1;
|
||||
}
|
||||
h3 {
|
||||
margin-block: 0 15pt;
|
||||
font-weight: 700;
|
||||
font-size: 14pt;
|
||||
}
|
||||
h4 {
|
||||
margin-block: 0 12pt;
|
||||
font-weight: 700;
|
||||
font-size: 12pt;
|
||||
}
|
||||
/* Classes dédiées print / no-print */
|
||||
.print {
|
||||
display: revert;
|
||||
}
|
||||
.no-print {
|
||||
display: none;
|
||||
}
|
||||
/* Veuves / orphelines */
|
||||
p,
|
||||
blockquote {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
/* Pas de saut de page au sein de ces éléments */
|
||||
blockquote,
|
||||
ul,
|
||||
ol,
|
||||
figure,
|
||||
table,
|
||||
.paragraph,
|
||||
footer,
|
||||
.top_top,
|
||||
.top_bottom {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
/* Pas de saut de page après ces éléments */
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
caption,
|
||||
.field--name-field-titre {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
/* Styles des liens */
|
||||
a,
|
||||
a:link,
|
||||
a:visited {
|
||||
background: transparent !important;
|
||||
color: unset;
|
||||
font-weight: 700;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
/* Afficher l'URL des liens externes */
|
||||
a[href^=http]:after,
|
||||
a[href^=https]:after {
|
||||
content: " (" attr(href) ")";
|
||||
}
|
||||
/* Masquer vidéos, header, nav… */
|
||||
video,
|
||||
object,
|
||||
iframe,
|
||||
nav {
|
||||
display: none !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
/* Style page projet */
|
||||
.page-node-type-projet .layout__region--top {
|
||||
width: 100% !important;
|
||||
padding-top: 0rem !important;
|
||||
}
|
||||
.page-node-type-projet .layout__region--top .top_top {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
.page-node-type-projet .layout__region--top .top_top .block-entity-fieldnodefield-photo {
|
||||
width: 100% !important;
|
||||
}
|
||||
.page-node-type-projet .layout__region--top .top_top .slick-dots,
|
||||
.page-node-type-projet .layout__region--top .top_top .slick-arrow {
|
||||
display: none;
|
||||
}
|
||||
.page-node-type-projet .layout__region--top .top_top .top_right {
|
||||
width: 100% !important;
|
||||
}
|
||||
.page-node-type-projet .layout__region--top .top_bottom {
|
||||
width: 100% !important;
|
||||
}
|
||||
.page-node-type-projet .layout__region--first {
|
||||
display: none;
|
||||
}
|
||||
.page-node-type-projet .layout__region--second {
|
||||
flex: 0 1 100% !important;
|
||||
}
|
||||
/* --- Couverture : header-top en page 1 --- */
|
||||
.layout-container header {
|
||||
position: static !important;
|
||||
width: 100% !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
#header-top {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
padding: 2cm 1.5cm;
|
||||
text-align: center;
|
||||
page-break-after: always;
|
||||
background: #ffffff !important;
|
||||
color: #000000 !important;
|
||||
}
|
||||
/* On cache le menu du bas du header (la barre de navigation horizontale) */
|
||||
.region-header-bottom {
|
||||
display: none !important;
|
||||
}
|
||||
/* Si tu as un logo + titre dans #header-top, tu peux les grossir un peu : */
|
||||
#header-top .region-header-top-left img {
|
||||
max-height: 3cm;
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
#header-top .region-header-top-rigth #block-eql-identitedusite {
|
||||
font-size: 1.4rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
/* 2) MODE DEBUG : voir la version print en écran via body.debug-print */
|
||||
@media screen {
|
||||
body.debug-print {
|
||||
/* Reset général */
|
||||
}
|
||||
body.debug-print * {
|
||||
all: unset;
|
||||
display: revert;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body.debug-print img {
|
||||
max-width: 100%;
|
||||
}
|
||||
body.debug-print input,
|
||||
body.debug-print textarea,
|
||||
body.debug-print select {
|
||||
all: revert;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Styles globaux (12pt = 16px) */
|
||||
}
|
||||
body.debug-print body,
|
||||
body.debug-print p,
|
||||
body.debug-print span {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
font-family: "Marianne", serif !important;
|
||||
font-size: 12pt;
|
||||
line-height: 1.5;
|
||||
color: #000000 !important;
|
||||
background-color: #ffffff !important;
|
||||
}
|
||||
body.debug-print .back-cover {
|
||||
break-before: page;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
body.debug-print .back-cover .region h2 {
|
||||
margin-top: 0;
|
||||
color: rgb(9, 57, 139);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
body.debug-print .back-cover .view-id-partenaires .view-content img {
|
||||
width: 5rem;
|
||||
height: auto;
|
||||
}
|
||||
body.debug-print .back-cover .view-id-partenaires .view-content a[href^=http]:after {
|
||||
display: none;
|
||||
}
|
||||
body.debug-print .back-cover .view-id-partenaires .views-row-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Espacements typographiques (15pt = 20px) */
|
||||
}
|
||||
body.debug-print p,
|
||||
body.debug-print blockquote,
|
||||
body.debug-print label,
|
||||
body.debug-print ul,
|
||||
body.debug-print ol {
|
||||
margin-block: 0 15pt;
|
||||
}
|
||||
body.debug-print p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Titrages */
|
||||
}
|
||||
body.debug-print h1 {
|
||||
margin-block: 0 24pt;
|
||||
font-weight: 700;
|
||||
font-size: 18pt;
|
||||
line-height: 1.1;
|
||||
}
|
||||
body.debug-print h2 {
|
||||
margin-block: 0 18pt;
|
||||
font-weight: 700;
|
||||
font-size: 16pt;
|
||||
line-height: 1.1;
|
||||
}
|
||||
body.debug-print h3 {
|
||||
margin-block: 0 15pt;
|
||||
font-weight: 700;
|
||||
font-size: 14pt;
|
||||
}
|
||||
body.debug-print h4 {
|
||||
margin-block: 0 12pt;
|
||||
font-weight: 700;
|
||||
font-size: 12pt;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Classes dédiées print / no-print */
|
||||
}
|
||||
body.debug-print .print {
|
||||
display: revert;
|
||||
}
|
||||
body.debug-print .no-print {
|
||||
display: none;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Veuves / orphelines */
|
||||
}
|
||||
body.debug-print p,
|
||||
body.debug-print blockquote {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Pas de saut de page au sein de ces éléments */
|
||||
}
|
||||
body.debug-print blockquote,
|
||||
body.debug-print ul,
|
||||
body.debug-print ol,
|
||||
body.debug-print figure,
|
||||
body.debug-print table,
|
||||
body.debug-print .paragraph,
|
||||
body.debug-print footer,
|
||||
body.debug-print .top_top,
|
||||
body.debug-print .top_bottom {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Pas de saut de page après ces éléments */
|
||||
}
|
||||
body.debug-print h1,
|
||||
body.debug-print h2,
|
||||
body.debug-print h3,
|
||||
body.debug-print h4,
|
||||
body.debug-print caption,
|
||||
body.debug-print .field--name-field-titre {
|
||||
page-break-after: avoid;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Styles des liens */
|
||||
}
|
||||
body.debug-print a,
|
||||
body.debug-print a:link,
|
||||
body.debug-print a:visited {
|
||||
background: transparent !important;
|
||||
color: unset;
|
||||
font-weight: 700;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Afficher l'URL des liens externes */
|
||||
}
|
||||
body.debug-print a[href^=http]:after,
|
||||
body.debug-print a[href^=https]:after {
|
||||
content: " (" attr(href) ")";
|
||||
}
|
||||
body.debug-print {
|
||||
/* Masquer vidéos, header, nav… */
|
||||
}
|
||||
body.debug-print video,
|
||||
body.debug-print object,
|
||||
body.debug-print iframe,
|
||||
body.debug-print nav {
|
||||
display: none !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
body.debug-print {
|
||||
/* Style page projet */
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top {
|
||||
width: 100% !important;
|
||||
padding-top: 0rem !important;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_top {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_top .block-entity-fieldnodefield-photo {
|
||||
width: 100% !important;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_top .slick-dots,
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_top .slick-arrow {
|
||||
display: none;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_top .top_right {
|
||||
width: 100% !important;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--top .top_bottom {
|
||||
width: 100% !important;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--first {
|
||||
display: none;
|
||||
}
|
||||
body.debug-print .page-node-type-projet .layout__region--second {
|
||||
flex: 0 1 100% !important;
|
||||
}
|
||||
}
|
||||
/*pages*/
|
||||
/*
|
||||
@import "pages/partials/header_footer";
|
||||
@@ -2055,14 +2474,14 @@ svg.ext {
|
||||
padding: 1rem;
|
||||
background-color: rgb(0, 158, 227);
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien {
|
||||
text-align: center;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien:before {
|
||||
margin-top: 1rem;
|
||||
display: block;
|
||||
content: url("../images/pictos/picto_faq.svg");
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien {
|
||||
text-align: center;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien a {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 1000;
|
||||
@@ -2093,14 +2512,14 @@ svg.ext {
|
||||
margin: auto;
|
||||
padding: 0rem;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien {
|
||||
text-align: center;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien:before {
|
||||
margin-top: 1rem;
|
||||
display: block;
|
||||
content: url("../images/pictos/picto_faq_2.svg");
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien {
|
||||
text-align: center;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398 .field--name-field-lien a {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 1000;
|
||||
@@ -2183,6 +2602,13 @@ svg.ext {
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-liens {
|
||||
display: none;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-liens a:before {
|
||||
display: inline-block;
|
||||
content: url("../images/pictos/external_link.png");
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding-right: 0.8rem;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-liens a {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -2191,13 +2617,6 @@ svg.ext {
|
||||
color: rgb(0, 0, 0);
|
||||
font-weight: 800;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-liens a:before {
|
||||
display: inline-block;
|
||||
content: url("../images/pictos/external_link.png");
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding-right: 0.8rem;
|
||||
}
|
||||
.path-faq #block-contenudelapageprincipale .block-region-content .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-liens svg {
|
||||
display: none;
|
||||
}
|
||||
@@ -2280,7 +2699,6 @@ svg.ext {
|
||||
}
|
||||
.page-node-type-ressource .layout__region--top {
|
||||
padding-top: 4rem;
|
||||
/* Hide empty blocks */
|
||||
}
|
||||
@media (max-width: 550px) {
|
||||
.page-node-type-ressource .layout__region--top {
|
||||
@@ -2499,6 +2917,9 @@ svg.ext {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
.page-node-type-ressource .layout__region--top {
|
||||
/* Hide empty blocks */
|
||||
}
|
||||
.page-node-type-ressource .layout__region--top .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640:empty,
|
||||
.page-node-type-ressource .layout__region--top .block-entity-fieldnodefield-type-de-ressource:empty,
|
||||
.page-node-type-ressource .layout__region--top .block-entity-fieldnodetitle:empty,
|
||||
@@ -4169,12 +4590,12 @@ svg.ext {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
.path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets {
|
||||
margin: auto;
|
||||
}
|
||||
.path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets .buttons-filtres-ressources {
|
||||
display: none;
|
||||
}
|
||||
.path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets {
|
||||
margin: auto;
|
||||
}
|
||||
.path-projets .region-content #block-contenudelapageprincipale .layout--onecol .block-region-content .block-views-blockprojets-block-1 .view-projets #filtres {
|
||||
scroll-margin-top: 10rem;
|
||||
}
|
||||
@@ -6610,14 +7031,16 @@ body.type-media-reportage-photos .block-region-third .block-entity-fieldnodefiel
|
||||
width: fit-content;
|
||||
justify-content: space-between;
|
||||
padding-inline-start: 0px;
|
||||
}
|
||||
.region-header-bottom ul ul .is-active {
|
||||
color: rgb(0, 158, 227);
|
||||
}
|
||||
.region-header-bottom ul ul {
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transform: translateY(-10px);
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
}
|
||||
.region-header-bottom ul ul .is-active {
|
||||
color: rgb(0, 158, 227);
|
||||
}
|
||||
.region-header-bottom ul li {
|
||||
position: relative;
|
||||
display: flex;
|
||||
@@ -6858,7 +7281,6 @@ body.type-media-reportage-photos .block-region-third .block-entity-fieldnodefiel
|
||||
float: left;
|
||||
height: 100%;
|
||||
min-height: 1px;
|
||||
display: none;
|
||||
}
|
||||
[dir=rtl] .slick-slide {
|
||||
float: right;
|
||||
@@ -6869,6 +7291,9 @@ body.type-media-reportage-photos .block-region-third .block-entity-fieldnodefiel
|
||||
.slick-slide.slick-loading img {
|
||||
display: none;
|
||||
}
|
||||
.slick-slide {
|
||||
display: none;
|
||||
}
|
||||
.slick-slide.dragging img {
|
||||
pointer-events: none;
|
||||
}
|
||||
@@ -7486,4 +7911,4 @@ article.node-type-ressource.type-presse .field--name-field-images {
|
||||
.type-les-projets-en-images.views-row article.node-type-ressource.type-les-projets-en-images .wrapper-ressource h2, .type-les-projets-en-images.views-row article.node-type-ressource.type-les-projets-en-images .wrapper-ressource p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user