_actualites.scss 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .page-actualites{
  2. .block-page-title-block{
  3. width: 75%;
  4. margin: auto;
  5. }
  6. .view-actus{
  7. padding-top: 3rem;
  8. padding-bottom: 6rem;
  9. width: 80%;
  10. margin: auto;
  11. display: flex;
  12. flex-direction: row;
  13. flex-wrap: wrap;
  14. align-items: baseline;
  15. justify-content: space-between;
  16. @media (max-width:891px) {
  17. flex-direction: column;
  18. width: 90%;
  19. }
  20. .views-row{
  21. width: 28%;
  22. padding: 1rem;
  23. @media (max-width:891px) {
  24. width: 95%;
  25. margin: auto;
  26. padding: 0;
  27. }
  28. &:hover{
  29. transform: scale(1.05);
  30. transition: 0.3s transform ease, 0.3s box-shadow ease;
  31. }
  32. .node-type-actualite{
  33. width: 30vw !important;
  34. @media (max-width:891px) {
  35. width: 100% !important;
  36. margin-bottom: 2rem;
  37. }
  38. .entete_actu{
  39. flex-direction: column;
  40. .image-actualite{
  41. width: 90%;
  42. margin: auto;
  43. img{
  44. width: 100%;
  45. height: 15rem;
  46. object-fit: cover;
  47. @media(max-width:810px){
  48. height: 10rem;
  49. }
  50. }
  51. }
  52. .infos-content{
  53. height: fit-content;
  54. width: 100%;
  55. margin: auto;
  56. top: -0.5rem;
  57. h1{
  58. display: none;
  59. }
  60. h2{
  61. margin-left: 0;
  62. padding-top: 0.2rem;
  63. font-weight: 600;
  64. @media(max-width:810px){
  65. font-size: 1rem;
  66. }
  67. }
  68. .field--name-field-sous-titre{
  69. padding-top: 0 rem;
  70. font-size: 1.2rem;
  71. @media(max-width:810px){
  72. font-size: 1rem;
  73. }
  74. }
  75. .field--name-field-date{
  76. padding-top: 0.2rem;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }