_home.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. // home juin 2023
  2. .path-frontpage{
  3. // bandeau actus
  4. .block-views-blockactus-blocks-pages-block-1{
  5. // grid-area: actus;
  6. width: 100vw;
  7. border-bottom: 5px solid $blue-light;
  8. // border-top: 5px solid $blue-light;
  9. background: $background-actus;
  10. .view-actus-blocks-pages{
  11. .view-content{
  12. display: grid;
  13. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  14. margin: auto;
  15. padding-top: 2rem;
  16. padding-bottom: 4rem;
  17. @media (max-width: 479px){
  18. display: flex;
  19. flex-direction: column;
  20. // padding-left: 1rem;
  21. width: 80%;
  22. }
  23. .views-row:nth-of-type(1) { grid-column: 2; }
  24. .node-type-actualite{
  25. color: $black;
  26. line-height: 1.5rem;
  27. padding: 0.5rem;
  28. div:first-child{ // block actu dans le bandeau
  29. display: flex;
  30. flex-direction: column;
  31. // :nth-child(1) { order: 1; }
  32. // :nth-child(4) { order: 2; }
  33. // :nth-child(5) { order: 3; }
  34. }
  35. .field--name-field-images {
  36. order: 1;
  37. .field__item img{
  38. max-width: 95%;
  39. max-height: 150px;
  40. object-fit: cover;
  41. width: 100%;
  42. padding-bottom: 1rem;
  43. }
  44. }
  45. .field--name-field-date{
  46. order: 2;
  47. display: flex;
  48. flex-direction: row;
  49. justify-content: flex-start;
  50. &:not(:last-child):after{
  51. padding-right: 1rem;
  52. content: "|";
  53. }
  54. time{
  55. font-size: 0.9rem;
  56. font-weight: 800;
  57. padding-right: 1rem;
  58. width: fit-content;
  59. // :not(:last-child):after{
  60. // padding-left: 0.5rem;
  61. // content: "|";
  62. // }
  63. }
  64. }
  65. .field--name-title{
  66. order:3;
  67. }
  68. .field--name-field-sous-titre{
  69. order:4;
  70. margin-top: 0.3rem;
  71. font-weight: 800;
  72. }
  73. .field:not(.field--name-field-images){
  74. width: 100%;
  75. }
  76. h2{ margin:0; }
  77. a{ color: $black; }
  78. .inline.links{
  79. padding-top: none !important;
  80. list-style: none;
  81. width: fit-content;
  82. align-self: flex-end;
  83. padding-right: 1rem;
  84. a{
  85. display: none;
  86. }
  87. }
  88. .field--name-field-actu-type{
  89. order:5;
  90. padding-top: 1rem;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. // bouton voir toutes actus du bandeau bleu
  97. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  98. visibility: hidden;
  99. // grid-area: actus;
  100. // grid-row: 6;
  101. // grid-column: 5 / span 6;
  102. // max-width: 50%;
  103. // min-width: fit-content;
  104. // margin-bottom: 2rem;
  105. // align-self: flex-end;
  106. // @media (max-width: 479px){
  107. // grid-column: 2 / span 4;
  108. // max-width: 80%;
  109. // margin: auto;
  110. // margin-top: 1rem;
  111. // margin-bottom: 1.5rem;
  112. // }
  113. // .field--type-link {
  114. // width: fit-content;
  115. // height: fit-content;
  116. // padding: 0.4rem 1rem;
  117. // font-size: 0.8rem;
  118. // margin: 0;
  119. // background-color: $white;
  120. // border: 2px solid $blue-light;
  121. // list-style: none;
  122. // display: inline-flex;
  123. // a{
  124. // text-transform: uppercase;
  125. // font-weight: 700;
  126. // color: $blue-light;
  127. // display: inline-flex;
  128. // align-items: center;
  129. // }
  130. // a::after{
  131. // 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>');
  132. // }
  133. // }
  134. }
  135. // présentation programme
  136. .block-views-blockhome-nodes-block-2{
  137. // grid-area: programme;
  138. .view-display-id-block_2:is(.view-id-home_nodes){
  139. padding-top: 2rem;
  140. // // background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><rect x="0" y="0" width="80" height="80" transform="rotate(35) translate(430, -800) scale(15)" fill="none" stroke="rgb(0,158,227)" stroke-width="0.4px"/></svg>');
  141. // background: url('../images/pictos/carre-contour-bleu.svg');
  142. // // background-position-y: 50%;
  143. // background-repeat: no-repeat;
  144. // max-width: 100vw;
  145. // background-size: cover;
  146. .node-type-static{
  147. width: 70%;
  148. margin: auto;
  149. @media (max-width: 479px) {
  150. width: 80%;
  151. }
  152. div:first-child:not(.field__item):not(.field){
  153. display: flex;
  154. flex-direction: row;
  155. flex-wrap: wrap;
  156. :nth-child(4) { order: 3; }
  157. }
  158. .inline.links{
  159. z-index: 95;
  160. align-self: flex-end;
  161. width: fit-content;
  162. height: fit-content;
  163. padding: 0.4rem 1rem;
  164. font-size: 0.8rem;
  165. margin: 0;
  166. background-color: $white;
  167. border: 2px solid $blue-light;
  168. list-style: none;
  169. a{
  170. text-transform: uppercase;
  171. font-weight: 700;
  172. color: $blue-light;
  173. display: inline-flex;
  174. align-items: center;
  175. &:after{
  176. // display: block;
  177. 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>');
  178. }
  179. }
  180. }
  181. .field--name-field-images{
  182. // grid-column: 2 / 4;
  183. .field__item{
  184. img{
  185. width: 15rem;
  186. height: auto;
  187. }
  188. }
  189. }
  190. .field--name-title{
  191. display: none;
  192. }
  193. .field--name-field-accroche{
  194. flex: 1 1 50px;
  195. // grid-column: 4 / 9;
  196. padding-left: 1rem;
  197. @media (max-width: 479px){
  198. padding-left: 0em;
  199. }
  200. p{
  201. background-color: $white;
  202. font-size: 1.5rem;
  203. width: 110%;
  204. padding-bottom: 2rem;
  205. margin-block-start: 0;
  206. text-align: start !important;
  207. @media (max-width: 479px){
  208. font-size: 1.2rem;
  209. width: 100%;
  210. }
  211. }
  212. }
  213. .field--name-field-videos{
  214. flex: 0 0 80%;
  215. padding-top: 4rem;
  216. margin: auto;
  217. @media (max-width: 479px){
  218. flex: 0 0 100%;
  219. }
  220. .field__items {
  221. .field__item:nth-of-type(1){
  222. display: none;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. // Zoom sur les projets
  230. .block-views-blockprojets-block-4{
  231. border-top: 5px solid $blue-light;
  232. background: $background-actus;
  233. }
  234. }