_home.scss 4.1 KB

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