_home.scss 3.4 KB

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