_home.scss 7.8 KB

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