_home.scss 7.6 KB

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