_home.scss 5.3 KB

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