_ressources.scss 5.9 KB

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