_toutesactualites.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. .field__item img{
  50. width: 100%;
  51. max-height: 175px;
  52. object-fit: cover;
  53. }
  54. &::after{
  55. display: block;
  56. 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>');
  57. }
  58. }
  59. .field--name-field-date{
  60. display: flex;
  61. flex-direction: row-reverse;
  62. justify-content: flex-end;
  63. &:not(:last-child):after{
  64. padding-right: 1rem;
  65. content: "|";
  66. }
  67. time{
  68. font-size: 0.9rem;
  69. font-weight: 800;
  70. padding-right: 1rem;
  71. width: fit-content;
  72. // :not(:last-child):after{
  73. // padding-left: 0.5rem;
  74. // content: "|";
  75. // }
  76. }
  77. }
  78. .field:not(.field--name-field-images){
  79. width: 100%;
  80. }
  81. h2{ margin:0; }
  82. .inline.links{
  83. padding-top: none !important;
  84. list-style: none;
  85. width: fit-content;
  86. align-self: flex-end;
  87. padding-right: 1rem;
  88. a{
  89. display: none;
  90. }
  91. // a{
  92. // 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>');
  93. // }
  94. }
  95. .field--name-field-actu-type{
  96. padding-top: 1rem;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }