_toutesactualites.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .path-actualites{
  2. background-color: $background-actus;
  3. margin: 0;
  4. .block-region-content{
  5. display: grid;
  6. grid-template-columns: 1fr 8fr 1fr;
  7. margin: auto;
  8. padding-top: 3rem;
  9. .block-views{
  10. grid-column: 2;
  11. .view-content{
  12. display: flex;
  13. flex-direction: row;
  14. flex-wrap: wrap;
  15. .views-row{
  16. width: 25%;
  17. flex: 0 0 25%;
  18. }
  19. @media (max-width: 810px){
  20. flex-direction: column;
  21. .views-row{
  22. width: 100%;
  23. }
  24. }
  25. }
  26. .view-display-id-block_2{
  27. padding-top: 0;
  28. }
  29. .node-type-actualite{
  30. color: $blue-dark;
  31. line-height: 1.5rem;
  32. padding: 0.5rem;
  33. padding-right: 1rem;
  34. padding-left: 1rem;
  35. div:first-child{
  36. display: flex;
  37. flex-direction: column;
  38. // :nth-child(1) { order: 1; }
  39. // :nth-child(4) { order: 2; }
  40. // :nth-child(5) { order: 3; }
  41. // :nth-child(1) { order: 3; }
  42. // :nth-child(2) { order: 1; }
  43. // :nth-child(3) { order: 2; }
  44. // :nth-child(4) { order: 4; }
  45. a{
  46. color: $blue-dark;
  47. }
  48. .field--name-field-images {
  49. order:1;
  50. .field__item img{
  51. width: 100%;
  52. max-height: 175px;
  53. object-fit: cover;
  54. @media(max-width: 810px){
  55. max-height: 350px;
  56. }
  57. }
  58. &::after{
  59. display: block;
  60. content:url('data:image/svg+xml,<svg width="160" height="25" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="2.5"/></svg>');
  61. }
  62. }
  63. .field--name-field-sous-titre{
  64. margin-top: 0.5rem;
  65. font-size: 0.9rem;
  66. font-weight: 800;
  67. order: 5;
  68. }
  69. .field--name-field-date{
  70. order: 2;
  71. display: flex;
  72. flex-direction: row;
  73. justify-content: flex-start;
  74. .field__item:not(:last-of-type){
  75. ::after{
  76. padding-left: 1rem;
  77. content: "|";
  78. }
  79. }
  80. time{
  81. font-size: 0.9rem;
  82. font-weight: 800;
  83. padding-right: 1rem;
  84. width: fit-content;
  85. // :not(:last-child):after{
  86. // padding-left: 0.5rem;
  87. // content: "|";
  88. // }
  89. }
  90. }
  91. .field--name-field-lieu{
  92. font-size: 0.9rem;
  93. order: 3;
  94. display: flex;
  95. flex-direction: row;
  96. justify-content: flex-start;
  97. .field__label{
  98. display: none;
  99. }
  100. }
  101. .field--name-title{
  102. order: 4;
  103. font-size: 0.9rem;
  104. }
  105. .field:not(.field--name-field-images){
  106. width: 100%;
  107. }
  108. h2{ margin:0; }
  109. .inline.links{
  110. padding-top: none !important;
  111. list-style: none;
  112. width: fit-content;
  113. align-self: flex-end;
  114. padding-right: 1rem;
  115. a{
  116. display: none;
  117. }
  118. // a{
  119. // content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  120. // }
  121. }
  122. .field--name-field-actu-type{
  123. order: 6;
  124. padding-top: 1rem;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }