_home.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .path-frontpage{
  2. .block-region-content{
  3. display: grid;
  4. grid-template-areas: "presentation presentation presentation presentation presentation presentation"
  5. "presentation presentation presentation presentation presentation presentation"
  6. "presentation presentation presentation presentation presentation presentation"
  7. "actus actus actus actus actus actus"
  8. "actus actus actus actus actus actus"
  9. "programme programme programme programme programme programme"
  10. "programme programme programme programme programme programme"
  11. "programme programme programme programme programme programme";
  12. grid-template-rows: auto auto auto;
  13. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  14. .block-views-blockhome-nodes-block-1{
  15. grid-area: presentation;
  16. }
  17. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  18. grid-area: presentation;
  19. }
  20. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  21. grid-area: presentation;
  22. }
  23. // bandeau actus
  24. .block-views-blockactus-blocks-pages-block-1{
  25. grid-area: actus;
  26. width: 100vw;
  27. border-bottom: 5px solid $blue-light;
  28. border-top: 5px solid $blue-light;
  29. .view-actus-blocks-pages{
  30. .view-content{
  31. display: grid;
  32. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  33. margin: auto;
  34. padding-top: 2rem;
  35. padding-bottom: 4rem;
  36. .views-row:nth-of-type(1) { grid-column: 2; }
  37. .node-type-actualite{
  38. color: $black;
  39. line-height: 1.5rem;
  40. padding: 0.5rem;
  41. div:first-child{ // block actu dans le bandeau
  42. display: flex;
  43. flex-direction: column;
  44. :nth-child(1) { order: 1; }
  45. :nth-child(4) { order: 2; }
  46. :nth-child(5) { order: 3; }
  47. }
  48. .field--name-field-images {
  49. .field__item img{
  50. max-width: 70%;
  51. max-height: 150px;
  52. object-fit: cover;
  53. width: 100%;
  54. padding-bottom: 1rem;
  55. }
  56. }
  57. time{
  58. font-size: 0.9rem;
  59. font-weight: 800;
  60. padding-right: 1rem;
  61. width: fit-content;
  62. &:after{
  63. padding-left: 0.5rem;
  64. content: "|";}
  65. }
  66. .field:not(.field--name-field-images){
  67. width: 100%;
  68. }
  69. h2{ margin:0; }
  70. a{ color: $black; }
  71. .inline.links{
  72. padding-top: none !important;
  73. list-style: none;
  74. width: fit-content;
  75. align-self: flex-end;
  76. padding-right: 1rem;
  77. a{
  78. display: none;
  79. }
  80. }
  81. .field--name-field-actu-type{
  82. padding-top: 1rem;
  83. }
  84. }
  85. }
  86. }
  87. }
  88. // bouton voir toutes actus du bandeau bleu
  89. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  90. grid-area: actus;
  91. grid-row: 5;
  92. grid-column: 5 / span 6;
  93. width: fit-content;
  94. margin-bottom: 2rem;
  95. .field--type-link {
  96. width: fit-content;
  97. height: fit-content;
  98. padding: 0.4rem 1rem;
  99. font-size: 0.8rem;
  100. margin: 0;
  101. background-color: $white;
  102. border: 2px solid $blue-light;
  103. list-style: none;
  104. a{
  105. text-transform: uppercase;
  106. font-weight: 700;
  107. color: $blue-light;
  108. }
  109. a::after{
  110. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  111. }
  112. }
  113. }
  114. .block-views-blockhome-nodes-block-2{
  115. grid-area: programme;
  116. .view-display-id-block_2:is(.view-id-home_nodes){
  117. padding-top: 2rem;
  118. background: url('../images/pictos/carre-contour-bleu.svg');
  119. background-repeat: no-repeat;
  120. max-width: 100vw;
  121. background-size: cover;
  122. .node-type-static{
  123. width: 70%;
  124. margin: auto;
  125. div:first-child:not(.field__item):not(.field){
  126. display: grid;
  127. grid-template-columns: 1fr repeat(4,2fr) 1fr;
  128. grid-template-rows: 1fr 1fr 1fr 0.5fr 6fr;
  129. }
  130. .inline.links{
  131. grid-row: 4;
  132. grid-column: 5 / span 6;
  133. width: fit-content;
  134. height: fit-content;
  135. padding: 0.4rem 1rem;
  136. font-size: 0.8rem;
  137. margin: 0;
  138. background-color: $white;
  139. border: 2px solid $blue-light;
  140. list-style: none;
  141. a{
  142. text-transform: uppercase;
  143. font-weight: 700;
  144. color: $blue-light;
  145. &:after{
  146. // display: block;
  147. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  148. }
  149. }
  150. }
  151. .field--name-field-images{
  152. grid-column: 1;
  153. grid-row: 1;
  154. width: fit-content;
  155. .field__item{
  156. img{
  157. width: 15rem;
  158. height: auto;
  159. }
  160. }
  161. }
  162. .field--name-title{
  163. display: none;
  164. }
  165. .field--name-field-accroche{
  166. grid-column: 2 / 6;
  167. grid-row: 1 /span 3;
  168. padding-left: 1rem;
  169. p{
  170. background-color: $white;
  171. font-size: 1.5rem;
  172. width: 110%;
  173. margin-bottom: 2rem;
  174. padding-bottom: 2rem;
  175. margin-block-start: 0;
  176. }
  177. }
  178. .field--name-field-videos{
  179. grid-column: 1 / span 5;
  180. grid-row: 5;
  181. }
  182. }
  183. }
  184. }
  185. }
  186. }