_ressources.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. // margin-right: 1rem;
  54. // padding-right: 1rem;
  55. background-color: $blue-light;
  56. height: fit-content;
  57. width: 100%;
  58. // margin-left: 2rem;
  59. grid-row: 2;
  60. .display{
  61. display: block;
  62. }
  63. .field--name-field-lien{
  64. display: flex;
  65. flex-direction: column;
  66. margin-top: 2rem;
  67. margin-bottom: 2rem;
  68. margin-left: 1.5rem;
  69. margin-right: 1.5rem;
  70. text-align: center;
  71. a{
  72. font-weight: 800;
  73. color: $white;
  74. font-size: 1.3rem;
  75. }
  76. &:after{
  77. margin-left: auto;
  78. padding-top: 1rem;
  79. display: block;
  80. content:url("../images/pictos/noun_Arrow_3771902.svg")
  81. }
  82. }
  83. @media (max-width: 810px){
  84. margin: auto;
  85. }
  86. }
  87. // grille des ressources
  88. .block-views-blockbase-de-donnees-block-1{
  89. width: 100%;
  90. grid-column: 1 / span 6;
  91. .view-filters{
  92. background-color: $white;
  93. margin-top: 2rem;
  94. margin-left: 1rem;
  95. margin-bottom: 2rem;
  96. .views-exposed-form-base-de-donnees-block-1{
  97. width: fit-content;
  98. display: flex;
  99. .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{
  100. width: fit-content;
  101. }
  102. .form-item{
  103. width: fit-content;
  104. }
  105. .form-item-field-type-de-ressource-target-id{
  106. width: fit-content;
  107. }
  108. }
  109. }
  110. .view-content{
  111. width: 100%;
  112. display: flex;
  113. flex-direction: row;
  114. flex-wrap: wrap;
  115. // justify-content: space-between;
  116. .views-row{
  117. width: 25%;
  118. flex: 0 0 25%;
  119. // padding: 0.5rem;
  120. // background-color: $white;
  121. // margin-bottom: 1rem;
  122. // &:hover{
  123. // background-color: $blue-light;
  124. // }
  125. .node-type-ressource{
  126. display: flex;
  127. flex-direction: column;
  128. border: 2px solid $blue-light;
  129. margin: 1rem;
  130. padding: 1rem;
  131. // &:hover{
  132. // background-color: $blue-light;
  133. // .field--name-field-mots-clefs{
  134. // // &::after{
  135. // // content: url("../images/pictos/noun_Arrow_3771902.svg");
  136. // // }
  137. // }
  138. // }
  139. // &::after{
  140. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  141. // align-self: end;
  142. // margin-top: 1rem;
  143. // }
  144. .field--name-field-type-de-ressource{
  145. text-transform: uppercase;
  146. a{
  147. color: $blue-light;
  148. font-weight: 900;
  149. font-size: 0.8rem;
  150. }
  151. }
  152. .field--name-title{
  153. h2{
  154. margin: 0;
  155. a{
  156. color: $black;
  157. font-size: 1rem;
  158. // font-weight: 600;
  159. font-weight: 900;
  160. font-style: italic;
  161. }
  162. }
  163. }
  164. .field--name-field-auteur-s-{
  165. font-weight: 800;
  166. p{
  167. margin: 0;
  168. }
  169. .field__label{
  170. display:none;
  171. }
  172. }
  173. .field--name-field-edition{
  174. p{
  175. margin: 0;
  176. }
  177. .field__label{
  178. display:none;
  179. }
  180. }
  181. .field--name-field-images{
  182. display: none;
  183. width: 50%;
  184. img{
  185. width: 100%;
  186. height: auto;
  187. }
  188. }
  189. .field--name-field-mots-clefs{
  190. display: flex;
  191. margin-top: 2rem;
  192. flex-direction: row;
  193. flex-wrap: wrap;
  194. // &::after{
  195. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  196. // align-self: center;
  197. // }
  198. .field__item{
  199. margin-right: 0.5rem;
  200. padding-left: 0.3rem;
  201. padding-right: 0.3rem;
  202. font-size: 0.8rem;
  203. a{
  204. background: $blue-dark;
  205. color: $white;
  206. font-weight: 800;
  207. vertical-align: super;
  208. padding-left: 0.1rem;
  209. padding-right: 0.1rem;
  210. display: inline-flex;
  211. }
  212. }
  213. }
  214. ul.links.inline{
  215. display: none;
  216. }
  217. }
  218. }
  219. @media (max-width: 810px){
  220. flex-direction: column;
  221. .views-row{
  222. width: 100%;
  223. }
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. }