_home.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. justify-self: end;
  65. position: relative;
  66. top: -200%;
  67. width: fit-content;
  68. height: fit-content;
  69. padding: 0.4rem 1rem;
  70. font-size: 0.8rem;
  71. margin: 0;
  72. background-color: $white;
  73. border: 2px solid $blue-light;
  74. list-style: none;
  75. a{
  76. text-transform: uppercase;
  77. font-weight: 700;
  78. color: $blue-light;
  79. }
  80. a::after{
  81. display: inline-block;
  82. content: url("../../images/pictos/polygon2.svg");
  83. }
  84. }
  85. }
  86. // boutons en savoir plus pour lien vers pages statiques
  87. // présentation programme
  88. .view-display-id-block_2{
  89. padding-top: 2rem;
  90. .node-type-static{
  91. width: 70%;
  92. margin: auto;
  93. div:first-child:not(.field__item):not(.field){
  94. display: flex;
  95. flex-direction: row;
  96. }
  97. .inline.links{
  98. align-self: flex-end;
  99. width: fit-content;
  100. height: fit-content;
  101. padding: 0.4rem 1rem;
  102. font-size: 0.8rem;
  103. margin: 0;
  104. background-color: $white;
  105. border: 2px solid $blue-light;
  106. list-style: none;
  107. a{
  108. text-transform: uppercase;
  109. font-weight: 700;
  110. color: $blue-light;
  111. &:after{
  112. // display: block;
  113. width: 40%;
  114. 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>');
  115. }
  116. }
  117. }
  118. .field--name-field-images{
  119. // grid-column: 2 / 4;
  120. .field__item{
  121. img{
  122. width: 15rem;
  123. height: auto;
  124. }
  125. }
  126. }
  127. .field--name-title{
  128. display: none;
  129. }
  130. .field--name-field-accroche{
  131. flex: 1 1 50px;
  132. // grid-column: 4 / 9;
  133. padding-left: 1rem;
  134. p{
  135. font-size: 1.5rem;
  136. width: 110%;
  137. margin-bottom: 2rem;
  138. padding-bottom: 2rem;
  139. margin-block-start: 0;
  140. }
  141. }
  142. }
  143. }