_home-view-actualites.scss 3.4 KB

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