_ressources.scss 5.8 KB

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