_home.scss 4.6 KB

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