ressources.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. .page-ressources{
  2. h1{
  3. width: 80%;
  4. margin: auto;
  5. font-weight: 1000;
  6. }
  7. .view-ressources{
  8. flex-direction: row;
  9. padding: 5rem;
  10. width: 80%;
  11. margin: auto;
  12. #views-exposed-form-ressources-page-1{
  13. width: 100%;
  14. // margin: auto;
  15. display: grid;
  16. grid-template-columns: repeat(8, 1fr);
  17. grid-template-rows: repeat(3, 1fr);
  18. padding: 1rem;
  19. &::before{
  20. content: 'FILTRER :';
  21. grid-column: 1;
  22. grid-row: 1;
  23. }
  24. .form-item, .form-actions{ margin: 1rem;align-self: end;}
  25. .form-item-title{
  26. grid-column: 1 /span 8;
  27. grid-row: 1;
  28. }
  29. .js-form-item-field-site-target-id{
  30. grid-column: 1 /span 2;
  31. grid-row: 2;
  32. width: 45%;
  33. }
  34. .form-item-field-themes-target-id{
  35. grid-column: 3 /span 4;
  36. grid-row: 2;
  37. width: 45%;
  38. }
  39. .form-item-field-type-de-ressource-target-id{
  40. width: 45%;
  41. grid-column: 5 /span 6;
  42. grid-row: 2;
  43. }
  44. #edit-actions{
  45. grid-column: 7 /span 8;
  46. grid-row: 2;
  47. .form-submit{
  48. margin: 0;
  49. }
  50. }
  51. }
  52. .views-row{
  53. .node-type-ressource{
  54. width: 100%;
  55. margin: auto;
  56. background-color: $white-button;
  57. .image-ressource{
  58. order: 1;
  59. width: 90%;
  60. margin: auto;
  61. img{
  62. width: 100%;
  63. // height: auto;
  64. max-height: 250px;
  65. object-fit: contain;
  66. }
  67. }
  68. .infos-content{
  69. display: flex;
  70. flex-direction: column;
  71. // border: solid $yellow-puca 1px;
  72. padding: 1rem;
  73. h2{
  74. order: 2;
  75. margin: 0;
  76. font-size: 1.5rem;
  77. font-weight: 600;
  78. }
  79. .field--name-field-sous-titre {
  80. order: 3;
  81. font-size: 1.3rem;
  82. // line-height: 0.3rem;
  83. }
  84. .field--name-field-auteur{
  85. order: 4;
  86. font-weight: 900;
  87. padding-top: 1rem;
  88. }
  89. .field--name-field-type-de-ressource{
  90. order: 1;
  91. text-transform: uppercase;
  92. font-size: 1.2rem;
  93. a{
  94. pointer-events: none;
  95. }
  96. }
  97. .field--name-field-site{
  98. order: 5;
  99. background-color: $gris-violet;
  100. color: white;
  101. border-radius: 50px;
  102. width: fit-content;
  103. padding: 0.2rem 0.9rem;
  104. margin-top: 1rem;
  105. .field__item{
  106. display: inline;
  107. }
  108. a{
  109. color: white;
  110. font-weight: 900;
  111. font-size: 0.8rem;
  112. vertical-align: top;
  113. }
  114. }
  115. ul.links{
  116. order: 6;
  117. display: none;
  118. }
  119. }
  120. }
  121. }
  122. .pagination{
  123. width: 100%;
  124. }
  125. }
  126. }