ressources.scss 5.4 KB

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