_home.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. // .node-type-static {
  2. // display: grid;
  3. // grid-template-columns: 2fr 2fr 2fr 2fr 2fr;
  4. // }
  5. .field--type-entity-reference-revisions{
  6. .paragraph-summary{
  7. font-family: $font-family-default;
  8. font-size: 5rem;
  9. font-weight: 600;
  10. color: $black !important;
  11. text-transform: capitalize;
  12. span:nth-of-type(2n){
  13. display: block;
  14. font-size: 1rem;
  15. }
  16. }
  17. .paragraph-summary:nth-of-type(2n) {
  18. font-size: 2rem;
  19. }
  20. }
  21. // bandeau bleu actus
  22. .block-views-blockactus-blocks-pages-block-1{
  23. background-color: $blue-dark;
  24. // padding: 1rem;
  25. .view-content{
  26. // display: flex;
  27. // flex-direction: row;
  28. display: grid;
  29. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  30. // grid-template-areas: "margin-left actu1 actu2 actu3 actu4 margin-right";
  31. // justify-content: space-between;
  32. // padding-left: 8rem;
  33. // padding-right: 4rem;
  34. margin: auto;
  35. .views-row:nth-of-type(1) { grid-column: 2; }
  36. // {
  37. // width: 25%;
  38. // :nth-of-type(1) { grid-column: 2; } // marche pas, la première actu se mets dans la 1re colu
  39. // :nth-of-type(2) { grid-area: actu2; }
  40. // :nth-of-type(3) { grid-area: actu3; }
  41. // :nth-of-type(4) { grid-area: actu4; }
  42. // }
  43. .node-type-actualite{
  44. // grid-column: 2 / span 5;
  45. color: $white;
  46. line-height: 1.5rem;
  47. padding: 0.5rem;
  48. div:first-child{ // block actu dans le bandeau
  49. display: flex;
  50. flex-direction: column;
  51. :nth-child(1) { order: 1; }
  52. :nth-child(4) { order: 2; }
  53. :nth-child(5) { order: 3; }
  54. }
  55. .field--name-field-images {
  56. .field__item img{
  57. width: 50%;
  58. height: fit-content;
  59. // &::after{
  60. // content:"line";
  61. // }
  62. }
  63. }
  64. .field:not(.field--name-field-images){
  65. width: 100%;
  66. }
  67. h2{ margin:0; }
  68. a{ color: $white; }
  69. }
  70. }
  71. }
  72. // actu dans bandeau
  73. // .node-type-actualite div:first-child{
  74. // display: flex;
  75. // flex-direction: column;
  76. // :nth-child(1) { order: 1; }
  77. // :nth-child(4) { order: 2; }
  78. // :nth-child(5) { order: 3; }
  79. // }
  80. // bouton voir toutes actus du bandeau bleu
  81. .layout--onecol{
  82. .block-block-content{
  83. display: grid;
  84. // grid-template-rows: repeat(auto fill, 1fr);
  85. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  86. }
  87. .field--type-link {
  88. grid-area: 8 / span 9;
  89. grid-row: 0;
  90. justify-self: end;
  91. // display: block;
  92. // float: right;
  93. width: fit-content;
  94. height: fit-content;
  95. padding: 0.4rem 1rem;
  96. font-size: 0.8rem;
  97. margin: 0;
  98. background-color: $white;
  99. border: 2px solid $blue-light;
  100. list-style: none;
  101. a{
  102. text-transform: uppercase;
  103. font-weight: 700;
  104. color: $blue-light;
  105. }
  106. a::after{
  107. display: inline-block;
  108. content: url("../../images/pictos/polygon2.svg");
  109. }
  110. }
  111. }
  112. // boutons en savoir plus pour lien vers pages statiques
  113. // présentation programme
  114. .view-display-id-block_2{
  115. padding-top: 2rem;
  116. .node-type-static{
  117. width: 70%;
  118. margin: auto;
  119. div:first-child:not(.field__item):not(.field){
  120. // display: grid;
  121. // grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  122. display: flex;
  123. flex-direction: row;
  124. }
  125. .inline.links{
  126. align-self: flex-end;
  127. // grid-column: 9;
  128. // grid-row: 2;
  129. width: fit-content;
  130. height: fit-content;
  131. padding: 0.4rem 1rem;
  132. font-size: 0.8rem;
  133. margin: 0;
  134. background-color: $white;
  135. border: 2px solid $blue-light;
  136. list-style: none;
  137. a{
  138. text-transform: uppercase;
  139. font-weight: 700;
  140. color: $blue-light;
  141. // &::after{
  142. // content: url('../../images/pictos/noun_Arrow_3771902.svg');
  143. // }
  144. }
  145. }
  146. .field--name-field-images{
  147. // grid-column: 2 / 4;
  148. .field__item{
  149. img{
  150. width: 15rem;
  151. height: auto;
  152. }
  153. }
  154. }
  155. .field--name-title{
  156. display: none;
  157. }
  158. .field--name-field-accroche{
  159. flex: 1 1 50px;
  160. // grid-column: 4 / 9;
  161. padding-left: 1rem;
  162. p{
  163. font-size: 1.5rem;
  164. width: 110%;
  165. margin: 0;
  166. padding-bottom: 2rem;
  167. }
  168. }
  169. }
  170. }