| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
- // =========================
- // 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{
-
- }
- }
|