1
0

_ressources.scss 7.1 KB

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