_toutesactualites.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. }
  40. &::after{
  41. display: block;
  42. 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>');
  43. }
  44. }
  45. time{
  46. font-weight: 800;
  47. padding-right: 1rem;
  48. width: fit-content;
  49. &:after{
  50. padding-left: 0.5rem;
  51. content: "|";}
  52. }
  53. .field:not(.field--name-field-images){
  54. width: 80%;
  55. }
  56. h2{ margin:0; }
  57. .inline.links{
  58. padding-top: none !important;
  59. list-style: none;
  60. width: fit-content;
  61. align-self: flex-end;
  62. padding-right: 1rem;
  63. a{
  64. 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>');
  65. }
  66. }
  67. .field--name-field-actu-type{
  68. padding-top: 2rem;
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }