home-view-actualites.scss 3.7 KB

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