_projets-complets-ecran.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. .path-projets-complets {
  2. .layout-container header{
  3. top: inherit !important;
  4. left: inherit !important;
  5. }
  6. .layout-content{
  7. width: 60vw;
  8. margin: auto;
  9. }
  10. // =========================
  11. // ÉCRAN
  12. // =========================
  13. span {
  14. display: none;
  15. }
  16. .node-type-projet {
  17. border-bottom: 1px solid black;
  18. padding-bottom: 5rem;
  19. margin-bottom: 5rem;
  20. }
  21. .projet-content {
  22. display: flex;
  23. flex-direction: column;
  24. }
  25. .field--name-field-photo {
  26. // height: 66vh;
  27. .field__label {
  28. display: none;
  29. }
  30. .field__items {
  31. height: 100%;
  32. display: grid;
  33. gap: 3px;
  34. }
  35. .field__item {
  36. overflow: hidden;
  37. aspect-ratio: 3 / 2;
  38. }
  39. .field__item img {
  40. width: 100%;
  41. height: 100%;
  42. object-fit: cover;
  43. display: block;
  44. }
  45. .image-field-caption {
  46. display: none;
  47. }
  48. // 1 seule image
  49. .field__items:has(.field__item:only-child) {
  50. grid-template-columns: 1fr;
  51. // grid-template-rows: 1fr;
  52. }
  53. .field__items:has(.field__item:only-child) .field__item {
  54. grid-column: 1;
  55. // grid-row: 1;
  56. }
  57. // Plusieurs images
  58. .field__items:has(.field__item:nth-child(2)) {
  59. grid-template-columns: repeat(3, 1fr);
  60. // grid-template-rows: 4fr 2fr 2fr;
  61. }
  62. .field__items:has(.field__item:nth-child(2)) .field__item:first-child {
  63. grid-column: 1 / 4;
  64. // grid-row: 1;
  65. }
  66. // facultatif : max 7 images affichées
  67. .field__items .field__item:nth-child(n + 8) {
  68. display: none;
  69. }
  70. }
  71. // .field--name-field-photo {
  72. // order: 1;
  73. // .field__label {
  74. // display: none;
  75. // }
  76. // .field__items {
  77. // display: grid;
  78. // grid-template-columns: repeat(3, 1fr);
  79. // grid-template-rows: 500px 150px 150px;
  80. // gap: 3px;
  81. // }
  82. // .field__item:first-child {
  83. // grid-column: 1 / 4;
  84. // grid-row: 1;
  85. // img {
  86. // max-height: 500px;
  87. // }
  88. // }
  89. // .field__item {
  90. // overflow: hidden;
  91. // }
  92. // .field__item img {
  93. // width: 100%;
  94. // height: 100%;
  95. // object-fit: cover;
  96. // display: block;
  97. // }
  98. // }
  99. .field--name-title {
  100. order: 2;
  101. font-family: "Marianne";
  102. font-size: 2rem;
  103. font-weight: 800;
  104. color: $blue-light;
  105. @media (max-width: 1624px) {
  106. font-size: 2.3rem;
  107. }
  108. @media (max-width: 1384px) {
  109. font-size: 2rem;
  110. }
  111. @media (max-width: 1216px) {
  112. font-size: 2rem;
  113. }
  114. @media (max-width: 810px) {
  115. font-size: 1.7rem;
  116. }
  117. a {
  118. color: $blue-light;
  119. }
  120. }
  121. .field--name-field-equipe {
  122. order: 3;
  123. color: $blue-dark;
  124. font-size: 1.5rem;
  125. font-weight: 900;
  126. text-transform: uppercase;
  127. @media (max-width: 1624px) {
  128. font-size: 1.3rem;
  129. }
  130. @media (max-width: 1216px) {
  131. font-size: 1.1rem;
  132. }
  133. @media (max-width: 810px) {
  134. font-size: 1rem;
  135. }
  136. .field__label {
  137. display: none;
  138. }
  139. }
  140. .field--name-field-incube {
  141. order: 4;
  142. width: fit-content;
  143. background-color: $red;
  144. color: white;
  145. font-weight: 800;
  146. padding-right: 0.3rem;
  147. padding-left: 0.2rem;
  148. flex-direction: row;
  149. &::before {
  150. content: ' Projet ';
  151. padding-right: 0.5rem;
  152. }
  153. .field__item {
  154. display: none;
  155. }
  156. }
  157. .field--name-field-neuf-rehabilitation,
  158. .field--name-field-encours-fini {
  159. display: none;
  160. }
  161. .field--name-field-region {
  162. order: 5;
  163. width: 30%;
  164. position: relative;
  165. height: 80px;
  166. text-align: center;
  167. padding-right: 1rem;
  168. @media (max-width: 479px) {
  169. width: 100%;
  170. }
  171. .field__label {
  172. display: none;
  173. }
  174. &::before {
  175. content: url("../images/pictos/picto_lieu.svg");
  176. min-width: 30px;
  177. height: auto;
  178. padding-right: 1rem;
  179. position: absolute;
  180. left: 0;
  181. margin-top: .83em;
  182. margin-left: 1rem;
  183. }
  184. }
  185. .field--name-field-type-de-moa {
  186. order: 6;
  187. }
  188. .field--name-field-type-de-projet {
  189. order: 7;
  190. }
  191. .field--name-field-etape-du-projet {
  192. order: 8;
  193. }
  194. .field--name-field-textes {
  195. order: 9;
  196. .field__label {
  197. display: none;
  198. }
  199. .field--name-field-titre {
  200. color: $blue-dark;
  201. font-size: 1.2rem;
  202. font-weight: 900;
  203. text-transform: uppercase;
  204. margin-bottom: 0 !important;
  205. flex-direction: row;
  206. &::after {
  207. content: ' :';
  208. padding-left: 0.5rem;
  209. }
  210. }
  211. }
  212. .field--name-field-etape-du-projet,
  213. .field--name-field-type-de-projet,
  214. .field--name-field-type-de-moa {
  215. a {
  216. color: black;
  217. }
  218. .field__label {
  219. color: $blue-dark;
  220. font-size: 1.2rem;
  221. font-weight: 900;
  222. text-transform: uppercase;
  223. margin-bottom: 0 !important;
  224. flex-direction: row;
  225. &::after {
  226. content: ':';
  227. padding-left: 0.5rem;
  228. }
  229. }
  230. }
  231. }