_home.scss 7.2 KB

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