_toutesactualites.scss 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. a{
  36. color: $blue-dark;
  37. }
  38. .field--name-field-images {
  39. .field__item img{
  40. width: 100%;
  41. max-height: 175px;
  42. object-fit: cover;
  43. }
  44. &::after{
  45. display: block;
  46. 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>');
  47. }
  48. }
  49. time{
  50. font-size: 0.9rem;
  51. font-weight: 800;
  52. padding-right: 1rem;
  53. width: fit-content;
  54. &:after{
  55. padding-left: 0.5rem;
  56. content: "|";}
  57. }
  58. .field:not(.field--name-field-images){
  59. width: 80%;
  60. }
  61. h2{ margin:0; }
  62. .inline.links{
  63. padding-top: none !important;
  64. list-style: none;
  65. width: fit-content;
  66. align-self: flex-end;
  67. padding-right: 1rem;
  68. a{
  69. display: none;
  70. }
  71. // a{
  72. // 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>');
  73. // }
  74. }
  75. .field--name-field-actu-type{
  76. padding-top: 1rem;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }