_toutesactualites.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. }
  20. .view-display-id-block_2{
  21. padding-top: 0;
  22. }
  23. .node-type-actualite{
  24. color: $blue-dark;
  25. line-height: 1.5rem;
  26. padding: 0.5rem;
  27. padding-right: 1rem;
  28. padding-left: 1rem;
  29. div:first-child{
  30. display: flex;
  31. flex-direction: column;
  32. :nth-child(1) { order: 1; }
  33. :nth-child(4) { order: 2; }
  34. :nth-child(5) { order: 3; }
  35. // :nth-child(1) { order: 3; }
  36. // :nth-child(2) { order: 1; }
  37. // :nth-child(3) { order: 2; }
  38. // :nth-child(4) { order: 4; }
  39. a{
  40. color: $blue-dark;
  41. }
  42. .field--name-field-images {
  43. .field__item img{
  44. width: 100%;
  45. max-height: 175px;
  46. object-fit: cover;
  47. }
  48. &::after{
  49. display: block;
  50. content:url('data:image/svg+xml,<svg width="160" height="40" 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="5"/></svg>');
  51. }
  52. }
  53. .field--name-field-date{
  54. display: flex;
  55. flex-direction: row-reverse;
  56. justify-content: flex-end;
  57. &:not(:last-child):after{
  58. padding-right: 1rem;
  59. content: "|";
  60. }
  61. time{
  62. font-size: 0.9rem;
  63. font-weight: 800;
  64. padding-right: 1rem;
  65. width: fit-content;
  66. // :not(:last-child):after{
  67. // padding-left: 0.5rem;
  68. // content: "|";
  69. // }
  70. }
  71. }
  72. .field:not(.field--name-field-images){
  73. width: 100%;
  74. }
  75. h2{ margin:0; }
  76. .inline.links{
  77. padding-top: none !important;
  78. list-style: none;
  79. width: fit-content;
  80. align-self: flex-end;
  81. padding-right: 1rem;
  82. a{
  83. display: none;
  84. }
  85. // a{
  86. // 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>');
  87. // }
  88. }
  89. .field--name-field-actu-type{
  90. padding-top: 1rem;
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }