_home-view-actualites.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. width: 100% !important;
  65. margin-left: 0;
  66. padding-top: 0.5rem;
  67. font-weight: 600;
  68. font-size: 1.3rem;
  69. }
  70. .field--name-field-sous-titre{
  71. padding-top: 0 rem;
  72. font-size: 1.2rem;
  73. }
  74. .field--name-field-date{
  75. padding-top: 0.5rem;
  76. }
  77. }
  78. .body-content{
  79. display: none;
  80. }
  81. }
  82. }
  83. }
  84. .slick-dots{
  85. position: relative;
  86. bottom: 0;
  87. }
  88. .slick-prev{
  89. left:35px;
  90. }
  91. .slick-next{
  92. left: 90vw;
  93. }
  94. @media (max-width: 1400px) {
  95. .slick-prev{
  96. left:0vw;
  97. }
  98. .slick-next{
  99. left: 85vw;
  100. }
  101. }
  102. }
  103. }