home-view-actualites.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. }
  11. .view-id-actus{
  12. width: 100%;
  13. margin: auto;
  14. .views-row{
  15. width: 30vw !important;
  16. margin-left: 1rem;
  17. @media (max-width: 1200px) {
  18. width: 50vw !important;
  19. }
  20. &:first-of-type{
  21. padding-left: 15%;
  22. @media (max-width: 1200px) {
  23. padding-left: 16%;
  24. }
  25. }
  26. .node-type-actualite{
  27. width: 100%;
  28. height: 100%;
  29. > .entete_actu{
  30. display: flex;
  31. flex-direction: column;
  32. p.field__item{
  33. display: none;
  34. }
  35. .image-actualite{
  36. width: 75%;
  37. height: 250px;
  38. right: 10%;
  39. position: relative;
  40. @media (max-width: 1200px) {
  41. max-height: 150px;
  42. }
  43. .field--name-field-image{
  44. height: 100%;
  45. .field__items{
  46. height: 100%;
  47. .field__item{
  48. width: 100%;
  49. height: 100%;
  50. img{
  51. width: 100%;
  52. height: auto;
  53. object-fit: cover;
  54. height: 100%;
  55. }
  56. }
  57. }
  58. }
  59. }
  60. .infos-content{
  61. height: fit-content;
  62. width: 100%;
  63. }
  64. .body-content{
  65. display: none;
  66. }
  67. }
  68. }
  69. }
  70. .slick-dots{
  71. position: relative;
  72. bottom: 0;
  73. }
  74. .slick-prev{
  75. left:35px;
  76. }
  77. .slick-next{
  78. left: 90vw;
  79. }
  80. @media (max-width: 1400px) {
  81. .slick-prev{
  82. left:0vw;
  83. }
  84. .slick-next{
  85. left: 85vw;
  86. }
  87. }
  88. }
  89. }