_ressources.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. .page-ressources{
  2. h1{
  3. width: 80%;
  4. margin: auto;
  5. font-weight: 1000;
  6. }
  7. .view-ressources{
  8. display: flex;
  9. flex-direction: row;
  10. flex-wrap: wrap;
  11. justify-content: space-between;
  12. padding: 2rem;
  13. width: 80%;
  14. margin: auto;
  15. #views-exposed-form-ressources-page-1{
  16. width: 100%;
  17. margin: auto;
  18. display: grid;
  19. grid-template-columns: repeat(8, 1fr);
  20. grid-template-rows: repeat(3, 1fr);
  21. padding: 1rem;
  22. height: fit-content;
  23. max-height: 17rem;
  24. padding-bottom: 5rem;
  25. &::before{
  26. content: 'FILTRER :';
  27. grid-column: 1;
  28. grid-row: 1;
  29. display: block;
  30. line-height: 5;
  31. }
  32. .form-item, .form-actions{
  33. // margin: 1rem;
  34. padding-bottom: 0.5rem;
  35. align-self: end;
  36. }
  37. .form-item-combine{
  38. grid-column: 1 /span 8;
  39. grid-row: 2;
  40. // margin-top: 3rem;
  41. }
  42. .js-form-item-field-site-target-id{
  43. grid-column: 1 /span 4;
  44. grid-row: 3;
  45. width: 45%;
  46. }
  47. .form-item-field-themes-target-id{
  48. grid-column: 3 /span 4;
  49. grid-row: 3;
  50. width: 45%;
  51. }
  52. .form-item-field-type-de-ressource-target-id{
  53. width: 45%;
  54. grid-column: 5 /span 6;
  55. grid-row: 3;
  56. }
  57. .form-select{
  58. background: white;
  59. border: solid gray 1px;
  60. height: 2.5rem;
  61. padding-left: 1rem;
  62. padding-right: 1rem;
  63. }
  64. #edit-actions{
  65. grid-column: 7 /span 8;
  66. grid-row: 3;
  67. height: 2.5rem;
  68. .form-submit{
  69. margin: 0;
  70. height: 2.5rem;
  71. }
  72. }
  73. }
  74. article{
  75. padding-bottom: 0 !important;
  76. }
  77. .views-row{
  78. width: 30%;
  79. // padding: 1rem;
  80. display: flex !important;
  81. flex-direction: column;
  82. background-color: $white-button;
  83. margin-bottom: 6rem;
  84. &:hover{
  85. transform: scale(1.05);
  86. transition: 0.3s transform ease, 0.3s box-shadow ease;
  87. }
  88. .node-type-ressource{
  89. width: 100%;
  90. // margin: auto;
  91. display: flex !important;
  92. flex-direction: column-reverse;
  93. padding-top: 0;
  94. .image-ressource{
  95. order: 1;
  96. width: 100%;
  97. margin: auto;
  98. margin-left: auto;
  99. height: 15rem;
  100. margin-left: 0;
  101. .field--name-field-image{
  102. height: 100%;
  103. .field__items{
  104. height: 100%;
  105. .field__item{
  106. height: 100%;
  107. img{
  108. height: 100%;
  109. object-fit: cover;
  110. max-width: 100%;
  111. width: 100% !important;
  112. }
  113. }
  114. }
  115. }
  116. }
  117. .body-content{display: none;}
  118. .infos-content{
  119. display: flex;
  120. flex-direction: column;
  121. background-color: transparent !important;
  122. right: 0;
  123. margin-bottom: 0;
  124. border: none;
  125. margin-left: 0 !important;
  126. width: auto;
  127. h1{display: none;}
  128. h2{
  129. order: 2;
  130. margin: 0;
  131. font-size: 1.2rem;
  132. font-weight: 500;
  133. line-height: 1.8rem;
  134. }
  135. .field--name-field-sous-titre {
  136. order: 3;
  137. font-size: 1rem;
  138. padding-top: 0.3rem;
  139. }
  140. .field--name-field-auteur{
  141. order: 4;
  142. font-weight: 900;
  143. padding-top: 0.5rem;
  144. padding-bottom: 1rem;
  145. font-size: 0.8rem;
  146. }
  147. .field--name-field-type-de-ressource{
  148. order: 1;
  149. text-transform: uppercase;
  150. font-size: 0.7rem;
  151. a{
  152. pointer-events: none;
  153. }
  154. }
  155. .field--name-field-site{
  156. order: 5;
  157. background-color: $gris-violet;
  158. color: white;
  159. border-radius: 50px;
  160. width: fit-content;
  161. padding: 0.2rem 0.9rem;
  162. margin-top: 1rem;
  163. .field__item{
  164. display: inline;
  165. }
  166. a{
  167. color: white;
  168. font-weight: 900;
  169. font-size: 0.8rem;
  170. vertical-align: top;
  171. }
  172. }
  173. ul.links{
  174. order: 6;
  175. display: none;
  176. }
  177. }
  178. }
  179. }
  180. .pagination{
  181. width: 100%;
  182. }
  183. }
  184. }