_projets-complets-print.scss 10 KB

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