_home.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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. }
  24. }
  25. h2{
  26. grid-column: 1;
  27. a{
  28. color: $blue-light;
  29. font-weight: 800;
  30. }
  31. }
  32. }
  33. // bandeau bleu actus
  34. .block-views-blockactus-blocks-pages-block-1{
  35. border-bottom: 5px solid $blue-light;
  36. border-top: 5px solid $blue-light;
  37. .view-content{
  38. display: grid;
  39. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  40. margin: auto;
  41. padding-top: 2rem;
  42. .views-row:nth-of-type(1) { grid-column: 2; }
  43. .node-type-actualite{
  44. color: $black;
  45. line-height: 1.5rem;
  46. padding: 0.5rem;
  47. div:first-child{ // block actu dans le bandeau
  48. display: flex;
  49. flex-direction: column;
  50. :nth-child(1) { order: 1; }
  51. :nth-child(4) { order: 2; }
  52. :nth-child(5) { order: 3; }
  53. }
  54. .field--name-field-images {
  55. .field__item img{
  56. width: 50%;
  57. height: fit-content;
  58. }
  59. &::after{
  60. display: block;
  61. 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>');
  62. }
  63. }
  64. .field:not(.field--name-field-images){
  65. width: 100%;
  66. }
  67. h2{ margin:0; }
  68. a{ color: $black; }
  69. }
  70. }
  71. }
  72. // bouton voir toutes actus du bandeau bleu
  73. .layout--onecol{
  74. .block-block-content{
  75. display: grid;
  76. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  77. position: relative;
  78. height: 0;
  79. }
  80. .field--type-link {
  81. grid-area: 8 / span 9;
  82. justify-self: end;
  83. position: relative;
  84. top: -200%;
  85. width: fit-content;
  86. height: fit-content;
  87. padding: 0.4rem 1rem;
  88. font-size: 0.8rem;
  89. margin: 0;
  90. background-color: $white;
  91. border: 2px solid $blue-light;
  92. list-style: none;
  93. a{
  94. text-transform: uppercase;
  95. font-weight: 700;
  96. color: $blue-light;
  97. }
  98. a::after{
  99. 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>');
  100. }
  101. }
  102. }
  103. // boutons en savoir plus pour lien vers pages statiques
  104. // présentation programme
  105. .view-display-id-block_2:is(.view-id-home_nodes){
  106. padding-top: 2rem;
  107. // 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="100" height="100" transform="rotate(35) translate(400, -800) scale(15)" fill="none" stroke="rgb(0,158,227)" stroke-width="0.4px"/></svg>');
  108. background-image: url("../images/pictos/carre-contour-bleu.svg");
  109. background-repeat: no-repeat;
  110. background-position: -20px;
  111. // background-position-y: +300px;
  112. .node-type-static{
  113. width: 70%;
  114. margin: auto;
  115. div:first-child:not(.field__item):not(.field){
  116. display: flex;
  117. flex-direction: row;
  118. }
  119. .inline.links{
  120. align-self: flex-end;
  121. width: fit-content;
  122. height: fit-content;
  123. padding: 0.4rem 1rem;
  124. font-size: 0.8rem;
  125. margin: 0;
  126. background-color: $white;
  127. border: 2px solid $blue-light;
  128. list-style: none;
  129. a{
  130. text-transform: uppercase;
  131. font-weight: 700;
  132. color: $blue-light;
  133. &:after{
  134. // display: block;
  135. 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>');
  136. }
  137. }
  138. }
  139. .field--name-field-images{
  140. // grid-column: 2 / 4;
  141. .field__item{
  142. img{
  143. width: 15rem;
  144. height: auto;
  145. }
  146. }
  147. }
  148. .field--name-title{
  149. display: none;
  150. }
  151. .field--name-field-accroche{
  152. flex: 1 1 50px;
  153. // grid-column: 4 / 9;
  154. padding-left: 1rem;
  155. p{
  156. font-size: 1.5rem;
  157. width: 110%;
  158. margin-bottom: 2rem;
  159. padding-bottom: 2rem;
  160. margin-block-start: 0;
  161. }
  162. }
  163. }
  164. }