_home-view-actualites.scss 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. h2{
  64. margin-left: 0;
  65. padding-top: 0;
  66. font-weight: 600;
  67. }
  68. }
  69. .body-content{
  70. display: none;
  71. }
  72. }
  73. }
  74. }
  75. .slick-dots{
  76. position: relative;
  77. bottom: 0;
  78. }
  79. .slick-prev{
  80. left:35px;
  81. }
  82. .slick-next{
  83. left: 90vw;
  84. }
  85. @media (max-width: 1400px) {
  86. .slick-prev{
  87. left:0vw;
  88. }
  89. .slick-next{
  90. left: 85vw;
  91. }
  92. }
  93. }
  94. }