_home.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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; font-weight: 800;}
  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. padding-right: 1rem;
  98. width: fit-content;
  99. &:after{
  100. padding-left: 0.5rem;
  101. content: "|";}
  102. }
  103. .field:not(.field--name-field-images){
  104. width: 100%;
  105. }
  106. h2{ margin:0; }
  107. a{ color: $black; }
  108. .inline.links{
  109. padding-top: none !important;
  110. list-style: none;
  111. width: fit-content;
  112. align-self: flex-end;
  113. padding-right: 1rem;
  114. a{
  115. 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>');
  116. }
  117. }
  118. .field--name-field-actu-type{
  119. padding-top: 2rem;
  120. }
  121. }
  122. }
  123. }
  124. // bouton voir toutes actus du bandeau bleu
  125. .layout--onecol{
  126. .block-block-content{
  127. display: grid;
  128. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  129. position: relative;
  130. height: 0;
  131. }
  132. .field--type-link {
  133. grid-area: 8 / span 9;
  134. justify-self: end;
  135. position: relative;
  136. top: -200%;
  137. width: fit-content;
  138. height: fit-content;
  139. padding: 0.4rem 1rem;
  140. font-size: 0.8rem;
  141. margin: 0;
  142. background-color: $white;
  143. border: 2px solid $blue-light;
  144. list-style: none;
  145. a{
  146. text-transform: uppercase;
  147. font-weight: 700;
  148. color: $blue-light;
  149. }
  150. a::after{
  151. 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>');
  152. }
  153. }
  154. }
  155. // boutons en savoir plus pour lien vers pages statiques
  156. // présentation programme
  157. .view-display-id-block_2:is(.view-id-home_nodes){
  158. padding-top: 2rem;
  159. 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>');
  160. background-repeat: no-repeat;
  161. .node-type-static{
  162. width: 70%;
  163. margin: auto;
  164. div:first-child:not(.field__item):not(.field){
  165. display: flex;
  166. flex-direction: row;
  167. }
  168. .inline.links{
  169. align-self: flex-end;
  170. width: fit-content;
  171. height: fit-content;
  172. padding: 0.4rem 1rem;
  173. font-size: 0.8rem;
  174. margin: 0;
  175. background-color: $white;
  176. border: 2px solid $blue-light;
  177. list-style: none;
  178. a{
  179. text-transform: uppercase;
  180. font-weight: 700;
  181. color: $blue-light;
  182. &:after{
  183. // display: block;
  184. 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>');
  185. }
  186. }
  187. }
  188. .field--name-field-images{
  189. // grid-column: 2 / 4;
  190. .field__item{
  191. img{
  192. width: 15rem;
  193. height: auto;
  194. }
  195. }
  196. }
  197. .field--name-title{
  198. display: none;
  199. }
  200. .field--name-field-accroche{
  201. flex: 1 1 50px;
  202. // grid-column: 4 / 9;
  203. padding-left: 1rem;
  204. p{
  205. background-color: $white;
  206. font-size: 1.5rem;
  207. width: 110%;
  208. margin-bottom: 2rem;
  209. padding-bottom: 2rem;
  210. margin-block-start: 0;
  211. }
  212. }
  213. }
  214. }