_home.scss 3.9 KB

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