_basededonnees.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. .path-ressources.basededonnees{
  2. .layout-content{
  3. width: 100vw;
  4. .region-content{
  5. #block-contenudelapageprincipale{
  6. span{
  7. padding-top: 3rem;
  8. padding-bottom: 3rem;
  9. vertical-align: middle;
  10. h2{
  11. margin: 0;
  12. padding-top: 2rem;
  13. height: 4rem;
  14. color: $white;
  15. font-family: "Source Code Pro";
  16. text-transform: uppercase;
  17. background: $blue-light;
  18. padding-left: 13%;
  19. }
  20. }
  21. .layout--onecol{
  22. .block-region-content{
  23. position: relative;
  24. background: url('../images/pictos/carre-contour-bleu_bdd.svg');
  25. background-repeat: no-repeat;
  26. background-position-y: 40vh;
  27. max-width: 100vw;
  28. background-size: cover;
  29. display: grid;
  30. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  31. // bandeau filtres collections
  32. .block-views-blockcollections-block-1{
  33. grid-column: 1 / span 10;
  34. background: $background-actus;
  35. height: fit-content;
  36. display: flex;
  37. div:first-of-type{
  38. width: 100%;
  39. display: grid;
  40. grid-template-columns: 1fr repeat(8, 2fr) 1fr;
  41. .view-id-collections{
  42. grid-column: 3 / span 8;
  43. height: 100%;
  44. display: flex;
  45. width: 80%;
  46. // margin: auto;
  47. .view-content{
  48. display: flex;
  49. flex-direction: row;
  50. margin: auto;
  51. margin-top: 2rem;
  52. margin-bottom: 2rem;
  53. justify-content: space-between;
  54. align-items: center;
  55. .views-row{
  56. display: flex;
  57. margin: auto;
  58. background: $white;
  59. width: 46%;
  60. height: 80%;
  61. padding: 1rem;
  62. .views-field-name{
  63. .field-content{
  64. grid-column: 3 /span 6;
  65. }
  66. span{
  67. margin: 0;
  68. padding: 1rem;
  69. padding-bottom: 2rem;
  70. }
  71. }
  72. a{
  73. color: $black;
  74. font-size: 1.5rem;
  75. font-weight: 600;
  76. }
  77. &:hover{
  78. background: $blue-dark;
  79. a{
  80. color: $white;
  81. }
  82. }
  83. }
  84. }
  85. }
  86. // .view-filters{
  87. // .views-exposed-form-base-de-donnees-block-1{
  88. // .form-item-field-type-de-ressource-target-id{
  89. // #edit-field-type-de-ressource-target-id{
  90. // label{
  91. // display: none;
  92. // }
  93. // }
  94. // }
  95. // }
  96. // }
  97. }
  98. }
  99. // texte présentation
  100. .block-views-blockcollection--block-1{
  101. grid-column: 3 / span 5;
  102. // margin: 2rem;
  103. // .field--name-field-introduction{
  104. // width: 65%;
  105. margin: auto;
  106. background: $white;
  107. margin-top:2rem;
  108. // }
  109. }
  110. //button proposer une ressource
  111. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  112. grid-column: 8 / span 9;
  113. margin-top: 4rem;
  114. background-color: $blue-light;
  115. height: fit-content;
  116. width: 60%;
  117. margin-left: 2rem;
  118. .field--name-field-lien{
  119. display: flex;
  120. flex-direction: column;
  121. margin-top: 2rem;
  122. margin-bottom: 2rem;
  123. margin-left: 1.5rem;
  124. margin-right: 1.5rem;
  125. text-align: center;
  126. a{
  127. font-weight: 800;
  128. color: $white;
  129. font-size: 1.3rem;
  130. }
  131. &:after{
  132. margin-left: auto;
  133. padding-top: 1rem;
  134. display: block;
  135. content:url("../images/pictos/noun_Arrow_3771902.svg")
  136. }
  137. }
  138. }
  139. // grille des ressources
  140. .block-views-blockbase-de-donnees-block-1{
  141. // margin: auto;
  142. width: 80%;
  143. grid-column: 3 / span 8;
  144. .view-filters{
  145. display: none;
  146. background-color: $white;
  147. margin-top: 2rem;
  148. margin-bottom: 2rem;
  149. .views-exposed-form-base-de-donnees-block-1{
  150. width: fit-content;
  151. display: flex;
  152. .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{
  153. width: fit-content;
  154. }
  155. .form-item{
  156. width: fit-content;
  157. }
  158. .form-item-field-type-de-ressource-target-id{
  159. width: fit-content;
  160. }
  161. }
  162. }
  163. .view-content{
  164. display: flex;
  165. flex-direction: row;
  166. flex-wrap: wrap;
  167. justify-content: space-between;
  168. margin-top: 3rem;
  169. .views-row{
  170. width: 49%;
  171. // padding: 1rem;
  172. // width: 50%;
  173. min-height: 300px;
  174. border: 2px solid $blue-light;
  175. background-color: $white;
  176. margin-bottom: 1rem;
  177. &:hover{
  178. background-color: $blue-light;
  179. }
  180. }
  181. .node-type-ressource{
  182. display: flex;
  183. flex-direction: column;
  184. // border: 2px solid $blue-light;
  185. padding: 1rem;
  186. // &:hover{
  187. // background-color: $blue-light;
  188. // .field--name-field-mots-clefs{
  189. // // &::after{
  190. // // content: url("../images/pictos/noun_Arrow_3771902.svg");
  191. // // }
  192. // }
  193. // }
  194. // &::after{
  195. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  196. // align-self: end;
  197. // margin-top: 1rem;
  198. // }
  199. .field--name-field-type-de-ressource{
  200. text-transform: uppercase;
  201. a{
  202. color: $blue-light;
  203. font-weight: 900;
  204. font-size: 0.8rem;
  205. }
  206. }
  207. .field--name-title{
  208. h2{
  209. margin: 0;
  210. a{
  211. color: $black;
  212. font-size: 1.4rem;
  213. font-weight: 600;
  214. }
  215. }
  216. }
  217. .field--name-field-auteur-s-{
  218. font-weight: 800;
  219. p{
  220. margin: 0;
  221. }
  222. .field__label{
  223. display:none;
  224. }
  225. }
  226. .field--name-field-edition{
  227. p{
  228. margin: 0;
  229. }
  230. .field__label{
  231. display:none;
  232. }
  233. }
  234. .field--name-field-images{
  235. display: none;
  236. width: 50%;
  237. img{
  238. width: 100%;
  239. height: auto;
  240. }
  241. }
  242. .field--name-field-mots-clefs{
  243. display: flex;
  244. margin-top: 2rem;
  245. flex-direction: row;
  246. flex-wrap: wrap;
  247. // &::after{
  248. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  249. // align-self: center;
  250. // }
  251. .field__item{
  252. margin-right: 1rem;
  253. padding-left: 0.3rem;
  254. padding-right: 0.3rem;
  255. a{
  256. background: $blue-dark;
  257. color: $white;
  258. font-weight: 800;
  259. vertical-align: super;
  260. padding-left: 0.1rem;
  261. padding-right: 0.1rem;
  262. display: inline-flex;
  263. }
  264. }
  265. }
  266. ul.links.inline{
  267. display: none;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. }
  274. }
  275. }
  276. }
  277. }