_projets-complets-print.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. // =========================
  2. // PRINT
  3. // =========================
  4. @media print {
  5. * {
  6. box-shadow: none !important;
  7. }
  8. img {
  9. max-width: 100%;
  10. height: auto;
  11. }
  12. @page {
  13. // margin-top: 1cm;
  14. // margin-bottom: 1cm;
  15. // margin-left: 1cm;
  16. // margin-right: 1cm;
  17. }
  18. .layout-container{
  19. display: block;
  20. }
  21. .path-projets-complets {
  22. .view-header{
  23. margin-top: 0 !important;
  24. }
  25. .layout-content{
  26. margin-top: 0 !important;
  27. width: 95% !important;
  28. .print-header {
  29. // position: absolute;
  30. // top: 1cm;
  31. // right: 1cm;
  32. // display: flex;
  33. // align-items: center;
  34. // gap: 0.5rem;
  35. position: relative !important;
  36. top: auto !important;
  37. right: auto !important;
  38. display: flex !important;
  39. justify-content: space-between;
  40. align-items: center;
  41. width: 100%;
  42. margin-bottom: 3rem;
  43. padding-bottom: 1rem;
  44. border-bottom: 1px solid #ccc;
  45. break-after: avoid;
  46. page-break-after: avoid;
  47. }
  48. // .print-header img {
  49. // width: 2cm;
  50. // height: auto;
  51. // }
  52. .print-header__left,
  53. .print-header__right {
  54. display: flex;
  55. align-items: center;
  56. gap: 1rem;
  57. }
  58. .print-header img {
  59. max-height: 55px;
  60. width: auto;
  61. }
  62. .print-header__text {
  63. text-transform: uppercase;
  64. font-family: "Source Code Pro";
  65. color: $blue-dark;
  66. font-size: 0.8rem;
  67. font-weight: 500;
  68. text-transform: uppercase;
  69. text-align: right;
  70. }
  71. .view-header,
  72. .view-filters{
  73. display: none;
  74. }
  75. .views-row{
  76. .node-type-projet {
  77. border-bottom:none;
  78. }
  79. // margin-top: 3rem;
  80. break-after: page ;
  81. page-break-after: always;
  82. .projet-header-print-content{
  83. width: 80%;
  84. margin: auto;
  85. }
  86. .projet-header-print{
  87. // padding-top: 3rem;
  88. .field--name-title{
  89. font-size: 1.2rem;
  90. }
  91. .field--name-field-photo .field__item:nth-child(n+8) {
  92. display: none;
  93. }
  94. .field--name-field-photo .image-field-caption {
  95. display: none;
  96. }
  97. .field--name-field-photo {
  98. // height: 66vh;
  99. .field__label {
  100. display: none;
  101. }
  102. .field__items {
  103. height: 100%;
  104. display: grid;
  105. gap: 4px;
  106. }
  107. .field__item {
  108. overflow: visible;
  109. aspect-ratio: 3.5/2;
  110. // aspect-ratio: 4/2;
  111. }
  112. .field__item img {
  113. width: 100%;
  114. height: 100%;
  115. object-fit: cover;
  116. display: block;
  117. }
  118. .image-field-caption {
  119. display: inline-block;
  120. width: 100%;
  121. z-index: 2;
  122. font-size: 6pt;
  123. line-height: 1;
  124. margin-left: 0;
  125. margin-top: 0;
  126. margin-bottom: 0;
  127. }
  128. // 1 seule image
  129. .field__items:has(.field__item:only-child) {
  130. grid-template-columns: 1fr;
  131. // grid-template-rows: 1fr;
  132. }
  133. .field__items:has(.field__item:only-child) .field__item {
  134. grid-column: 1;
  135. // grid-row: 1;
  136. }
  137. // Plusieurs images
  138. .field__items:has(.field__item:nth-child(2)) {
  139. grid-template-columns: repeat(3, 1fr);
  140. // grid-template-rows: 4fr 2fr 2fr;
  141. }
  142. .field__items:has(.field__item:nth-child(2)) .field__item:first-child {
  143. grid-column: 1 / 4;
  144. // grid-row: 1;
  145. }
  146. // facultatif : max 7 images affichées
  147. .field__items .field__item:nth-child(n + 8) {
  148. display: none;
  149. }
  150. }
  151. // }
  152. .field--name-title {
  153. order: 2;
  154. font-family: "Marianne";
  155. font-size: 1rem;
  156. font-weight: 800;
  157. color: $blue-light;
  158. a {
  159. color: $blue-light;
  160. }
  161. }
  162. .field--name-field-equipe {
  163. order: 3;
  164. color: $blue-dark;
  165. font-size: 0.9rem;
  166. font-weight: 900;
  167. text-transform: uppercase;
  168. .field__label {
  169. display: none;
  170. }
  171. }
  172. .field--name-field-incube {
  173. order: 4;
  174. font-size: 8pt;
  175. display: inline-flex;
  176. width: fit-content;
  177. background-color: $red;
  178. color: white;
  179. font-weight: 800;
  180. padding-right: 0.3rem;
  181. padding-left: 0.2rem;
  182. margin-bottom: 1rem;
  183. // margin-top: 1rem;
  184. // flex-direction: row;
  185. &::before {
  186. content: ' Projet ';
  187. padding-right: 0.5rem;
  188. }
  189. .field__label{
  190. display: inline;
  191. }
  192. .field__item {
  193. display: none;
  194. }
  195. }
  196. .field--name-field-neuf-rehabilitation,
  197. .field--name-field-encours-fini {
  198. display: none;
  199. }
  200. .field--name-field-region {
  201. display: flex;
  202. align-items: center;
  203. gap: 0.5rem;
  204. &::before {
  205. content: "";
  206. display: block;
  207. width: 20px;
  208. height: 20px;
  209. background: url("../images/pictos/picto_lieu.svg") no-repeat center;
  210. background-size: contain;
  211. }
  212. }
  213. .field--name-field-type-de-moa {
  214. order: 6;
  215. }
  216. .field--name-field-type-de-projet {
  217. order: 7;
  218. }
  219. .field--name-field-etape-du-projet {
  220. order: 8;
  221. }
  222. .field--name-field-textes {
  223. order: 9;
  224. .field__label {
  225. display: none;
  226. }
  227. }
  228. .field--name-field-etape-du-projet,
  229. .field--name-field-type-de-projet,
  230. .field--name-field-type-de-moa {
  231. a {
  232. color: black;
  233. }
  234. .field__label {
  235. color: $blue-dark;
  236. font-size: 0.9pt;
  237. font-weight: 900;
  238. text-transform: uppercase;
  239. margin-bottom: 0 !important;
  240. flex-direction: row;
  241. &::after {
  242. content: ':';
  243. padding-left: 0.5rem;
  244. }
  245. }
  246. }
  247. .path-projets-complets {
  248. .layout-content {
  249. width: 100% !important;
  250. margin: 0 auto !important;
  251. }
  252. .projet-content {
  253. display: block !important;
  254. }
  255. .field--name-field-photo {
  256. .field__items {
  257. display: block !important;
  258. height: auto !important;
  259. }
  260. .field__item {
  261. display: block !important;
  262. aspect-ratio: auto !important;
  263. overflow: visible !important;
  264. margin-bottom: 4mm;
  265. }
  266. .field__item img {
  267. width: 100% !important;
  268. height: auto !important;
  269. object-fit: contain !important;
  270. display: block;
  271. }
  272. }
  273. }
  274. }
  275. .projet-body-print{
  276. width: 80%;
  277. margin: auto;
  278. padding-top: 3rem ;
  279. }
  280. .paragraph{
  281. break-inside: avoid;
  282. page-break-inside: avoid;
  283. }
  284. }
  285. }
  286. }
  287. .path-projets-complets .views-row {
  288. page-break-before: always;
  289. break-before: page;
  290. }
  291. .path-projets-complets .views-row:first-child {
  292. page-break-before: auto;
  293. break-before: auto;
  294. }
  295. .path-projets-complets .projet-header-print {
  296. page-break-after: always;
  297. break-after: page;
  298. }
  299. }
  300. .field--name-field-etape-du-projet,
  301. .field--name-field-type-de-projet,
  302. .field--name-field-type-de-moa {
  303. margin-bottom: 1rem;
  304. a {
  305. color: black;
  306. }
  307. .field__label {
  308. width: fit-content;
  309. color: $blue-dark;
  310. font-size: 1.2rem;
  311. font-weight: 900;
  312. text-transform: uppercase;
  313. margin-bottom: 0 !important;
  314. flex-direction: row;
  315. &::after {
  316. content: ':';
  317. padding-left: 0.5rem;
  318. }
  319. }
  320. .field__item{
  321. width: fit-content;
  322. }
  323. }
  324. .field--name-field-textes{
  325. margin-top: 2rem;
  326. .field__label{
  327. display: none !important;
  328. }
  329. .field--name-field-titre {
  330. color: $blue-dark;
  331. font-size: 1.2rem;
  332. font-weight: 900;
  333. text-transform: uppercase;
  334. margin-bottom: 0 !important;
  335. flex-direction: row;
  336. &::after {
  337. content: ' :';
  338. padding-left: 0.5rem;
  339. }
  340. }
  341. ul{margin-top: 0;}
  342. p{margin-top: 0.5rem;}
  343. .paragraph--type--texte{
  344. margin-top: 1.5rem;
  345. .field--name-field-titre{
  346. margin-bottom: 1rem;
  347. }
  348. }
  349. .field--name-field-texte{
  350. }
  351. }