_ressources.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. .path-ressources{
  2. .layout-content{
  3. width: 100vw;
  4. .region-content{
  5. width: 80%;
  6. margin: auto;
  7. #block-contenudelapageprincipale{
  8. .layout--onecol{
  9. .layout__region--content{
  10. .block-region-content{
  11. display: grid;
  12. grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  13. // texte présentation
  14. .block-config-pages-block{
  15. grid-column: 1 / span 6;
  16. .config_pages--base-de-donnees--full{
  17. // .field--name-field-introduction{
  18. grid-column: 1 / span 5;
  19. // margin: 2rem;
  20. .field--name-field-introduction{
  21. // width: 65%;
  22. margin: auto;
  23. background: $white;
  24. margin-top:5rem;
  25. }
  26. @media (max-width: 810px){
  27. padding: 2rem;
  28. margin-top:1rem;
  29. }
  30. // }
  31. }
  32. }
  33. // .block-views-blockcollection--block-1{
  34. // grid-column: 3 / span 5;
  35. // // margin: 2rem;
  36. // // .field--name-field-introduction{
  37. // // width: 65%;
  38. // margin: auto;
  39. // background: $white;
  40. // margin-top:5rem;
  41. // // }
  42. // @media (max-width: 810px){
  43. // padding: 2rem;
  44. // margin-top:1rem;
  45. // }
  46. // }
  47. //button proposer une ressource
  48. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  49. // visibility: hidden;
  50. grid-column: 6 / span 6;
  51. grid-row: 1;
  52. margin-top: 4rem;
  53. background-color: $blue-light;
  54. height: fit-content;
  55. width: 100%;
  56. // margin-left: 2rem;
  57. grid-row: 2;
  58. .display{
  59. display: block;
  60. }
  61. .field--name-field-lien{
  62. display: flex;
  63. flex-direction: column;
  64. margin-top: 2rem;
  65. margin-bottom: 2rem;
  66. margin-left: 1.5rem;
  67. margin-right: 1.5rem;
  68. text-align: center;
  69. a{
  70. font-weight: 800;
  71. color: $white;
  72. font-size: 1.3rem;
  73. }
  74. &:after{
  75. margin-left: auto;
  76. padding-top: 1rem;
  77. display: block;
  78. content:url("../images/pictos/noun_Arrow_3771902.svg")
  79. }
  80. }
  81. @media (max-width: 810px){
  82. margin: auto;
  83. }
  84. }
  85. // grille des ressources
  86. .block-views-blockbase-de-donnees-block-1{
  87. width: 100%;
  88. grid-column: 1 / span 6;
  89. .view-filters{
  90. background-color: $white;
  91. margin-top: 2rem;
  92. margin-bottom: 2rem;
  93. .views-exposed-form-base-de-donnees-block-1{
  94. width: fit-content;
  95. display: flex;
  96. .js-form-item.form-item.js-form-type-select.form-item-field-type-de-ressource-target-id.js-form-item-field-type-de-ressource-target-id{
  97. width: fit-content;
  98. }
  99. .form-item{
  100. width: fit-content;
  101. }
  102. .form-item-field-type-de-ressource-target-id{
  103. width: fit-content;
  104. }
  105. }
  106. }
  107. .view-content{
  108. width: 100%;
  109. display: flex;
  110. flex-direction: row;
  111. flex-wrap: wrap;
  112. // justify-content: space-between;
  113. .views-row{
  114. width: 25%;
  115. flex: 0 0 22%;
  116. padding: 0.5rem;
  117. // background-color: $white;
  118. // margin-bottom: 1rem;
  119. // &:hover{
  120. // background-color: $blue-light;
  121. // }
  122. .node-type-ressource{
  123. display: flex;
  124. flex-direction: column;
  125. // border: 2px solid $blue-light;
  126. padding: 1rem;
  127. border: 2px solid $blue-light;
  128. // &:hover{
  129. // background-color: $blue-light;
  130. // .field--name-field-mots-clefs{
  131. // // &::after{
  132. // // content: url("../images/pictos/noun_Arrow_3771902.svg");
  133. // // }
  134. // }
  135. // }
  136. // &::after{
  137. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  138. // align-self: end;
  139. // margin-top: 1rem;
  140. // }
  141. .field--name-field-type-de-ressource{
  142. text-transform: uppercase;
  143. a{
  144. color: $blue-light;
  145. font-weight: 900;
  146. font-size: 0.8rem;
  147. }
  148. }
  149. .field--name-title{
  150. h2{
  151. margin: 0;
  152. a{
  153. color: $black;
  154. font-size: 1rem;
  155. // font-weight: 600;
  156. font-weight: 900;
  157. font-style: italic;
  158. }
  159. }
  160. }
  161. .field--name-field-auteur-s-{
  162. font-weight: 800;
  163. p{
  164. margin: 0;
  165. }
  166. .field__label{
  167. display:none;
  168. }
  169. }
  170. .field--name-field-edition{
  171. p{
  172. margin: 0;
  173. }
  174. .field__label{
  175. display:none;
  176. }
  177. }
  178. .field--name-field-images{
  179. display: none;
  180. width: 50%;
  181. img{
  182. width: 100%;
  183. height: auto;
  184. }
  185. }
  186. .field--name-field-mots-clefs{
  187. display: flex;
  188. margin-top: 2rem;
  189. flex-direction: row;
  190. flex-wrap: wrap;
  191. // &::after{
  192. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  193. // align-self: center;
  194. // }
  195. .field__item{
  196. margin-right: 0.5rem;
  197. padding-left: 0.3rem;
  198. padding-right: 0.3rem;
  199. font-size: 0.8rem;
  200. a{
  201. background: $blue-dark;
  202. color: $white;
  203. font-weight: 800;
  204. vertical-align: super;
  205. padding-left: 0.1rem;
  206. padding-right: 0.1rem;
  207. display: inline-flex;
  208. }
  209. }
  210. }
  211. ul.links.inline{
  212. display: none;
  213. }
  214. }
  215. }
  216. @media (max-width: 810px){
  217. flex-direction: column;
  218. .views-row{
  219. width: 100%;
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. }