_toutesactualites.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. }
  55. &::after{
  56. display: block;
  57. 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>');
  58. }
  59. }
  60. .field--name-field-sous-titre{
  61. margin-top: 0.5rem;
  62. font-size: 0.9rem;
  63. font-weight: 800;
  64. order: 5;
  65. }
  66. .field--name-field-date{
  67. order: 2;
  68. display: flex;
  69. flex-direction: row;
  70. justify-content: flex-start;
  71. .field__item:not(:last-of-type){
  72. ::after{
  73. padding-left: 1rem;
  74. content: "|";
  75. }
  76. }
  77. time{
  78. font-size: 0.9rem;
  79. font-weight: 800;
  80. padding-right: 1rem;
  81. width: fit-content;
  82. // :not(:last-child):after{
  83. // padding-left: 0.5rem;
  84. // content: "|";
  85. // }
  86. }
  87. }
  88. .field--name-field-lieu{
  89. order: 3;
  90. display: flex;
  91. flex-direction: row;
  92. justify-content: flex-start;
  93. .field__label{
  94. display: none;
  95. }
  96. }
  97. .field--name-title{
  98. order: 4;
  99. font-size: 0.9rem;
  100. }
  101. .field:not(.field--name-field-images){
  102. width: 100%;
  103. }
  104. h2{ margin:0; }
  105. .inline.links{
  106. padding-top: none !important;
  107. list-style: none;
  108. width: fit-content;
  109. align-self: flex-end;
  110. padding-right: 1rem;
  111. a{
  112. display: none;
  113. }
  114. // a{
  115. // 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>');
  116. // }
  117. }
  118. .field--name-field-actu-type{
  119. order: 6;
  120. padding-top: 1rem;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. }