_ressources.scss 5.6 KB

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