_toutesactualites.scss 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. .block-views{
  9. grid-column: 2;
  10. .view-content{
  11. display: flex;
  12. flex-direction: row;
  13. flex-wrap: wrap;
  14. .views-row{
  15. width: 25%;
  16. flex: 0 0 25%;
  17. }
  18. }
  19. .view-display-id-block_2{
  20. padding-top: 0;
  21. }
  22. .node-type-actualite{
  23. color: $blue-dark;
  24. line-height: 1.5rem;
  25. padding: 0.5rem;
  26. div:first-child{
  27. display: flex;
  28. flex-direction: column;
  29. :nth-child(1) { order: 1; }
  30. :nth-child(4) { order: 2; }
  31. :nth-child(5) { order: 3; }
  32. a{
  33. color: $blue-dark;
  34. }
  35. .field--name-field-images {
  36. .field__item img{
  37. width: 100%;
  38. height: fit-content;
  39. // max-height: 175px;
  40. // object-fit: cover;
  41. }
  42. &::after{
  43. display: block;
  44. 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>');
  45. }
  46. }
  47. time{
  48. font-weight: 800;
  49. padding-right: 1rem;
  50. width: fit-content;
  51. &:after{
  52. padding-left: 0.5rem;
  53. content: "|";}
  54. }
  55. .field:not(.field--name-field-images){
  56. width: 80%;
  57. }
  58. h2{ margin:0; }
  59. .inline.links{
  60. padding-top: none !important;
  61. list-style: none;
  62. width: fit-content;
  63. align-self: flex-end;
  64. padding-right: 1rem;
  65. a{
  66. 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>');
  67. }
  68. }
  69. .field--name-field-actu-type{
  70. padding-top: 2rem;
  71. }
  72. }
  73. }
  74. }
  75. }
  76. }