_ressources.scss 5.7 KB

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