_home.scss 6.6 KB

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