_home-view-actualites.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .block-views-blockactus-block-1{
  2. background-color: white;
  3. padding-bottom: 3rem;
  4. h2{
  5. width: 80%;
  6. font-size: 2rem;
  7. font-weight: 900;
  8. margin-left: 10%;
  9. padding-top: 1rem;
  10. text-align: center;
  11. margin-bottom: 4rem;
  12. }
  13. .view-id-actus{
  14. width: 100%;
  15. margin: auto;
  16. padding: 2rem;
  17. // .slick-slide{
  18. // width: 30% !important;
  19. // }
  20. .slick-track{
  21. padding-left: 7rem;
  22. }
  23. .views-row{
  24. // width: 30vw !important;
  25. // margin-left: 1rem;
  26. // @media (max-width: 1200px) {
  27. // width: 50vw !important;
  28. // }
  29. // &:first-of-type{
  30. // padding-left: 15%;
  31. // @media (max-width: 1200px) {
  32. // padding-left: 6%;
  33. // }
  34. // }
  35. .node-type-actualite{
  36. width: 100%;
  37. height: 100%;
  38. margin: auto;
  39. > .entete_actu{
  40. display: flex;
  41. flex-direction: column;
  42. p.field__item{
  43. display: none;
  44. }
  45. .image-actualite{
  46. width: 75%;
  47. height: 250px;
  48. right: 10%;
  49. position: relative;
  50. @media (max-width: 1200px) {
  51. max-height: 150px;
  52. }
  53. .field--name-field-image{
  54. height: 100%;
  55. .field__items{
  56. height: 100%;
  57. .field__item{
  58. width: 100%;
  59. height: 100%;
  60. img{
  61. width: 100%;
  62. height: auto;
  63. object-fit: cover;
  64. height: 100%;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. .infos-content{
  71. height: fit-content;
  72. width: 100%;
  73. h1{
  74. display: none;
  75. }
  76. h2{
  77. width: 100% !important;
  78. margin-left: 0;
  79. padding-top: 0.5rem;
  80. font-weight: 600;
  81. font-size: 1.3rem;
  82. text-align: left !important;
  83. }
  84. .field--name-field-sous-titre{
  85. padding-top: 0 rem;
  86. font-size: 1.2rem;
  87. }
  88. .field--name-field-date{
  89. padding-top: 0.5rem;
  90. }
  91. }
  92. .body-content{
  93. display: none;
  94. }
  95. }
  96. }
  97. }
  98. .slick-dots{
  99. position: relative;
  100. bottom: 0;
  101. }
  102. .slick-prev{
  103. left:35px;
  104. }
  105. .slick-next{
  106. left: 90vw;
  107. }
  108. @media (max-width: 1400px) {
  109. .slick-prev{
  110. left:0vw;
  111. }
  112. .slick-next{
  113. left: 85vw;
  114. }
  115. }
  116. }
  117. }