_basededonnees.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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. @media (max-width: 810px){
  85. flex-direction: column;
  86. .views-row{
  87. width: 100%;
  88. margin-top: 1rem;
  89. }
  90. }
  91. }
  92. }
  93. // .view-filters{
  94. // .views-exposed-form-base-de-donnees-block-1{
  95. // .form-item-field-type-de-ressource-target-id{
  96. // #edit-field-type-de-ressource-target-id{
  97. // label{
  98. // display: none;
  99. // }
  100. // }
  101. // }
  102. // }
  103. // }
  104. }
  105. }
  106. // texte présentation
  107. .block-views-blockcollection--block-1{
  108. grid-column: 3 / span 5;
  109. // margin: 2rem;
  110. // .field--name-field-introduction{
  111. // width: 65%;
  112. margin: auto;
  113. background: $white;
  114. margin-top:2rem;
  115. // }
  116. }
  117. //button proposer une ressource
  118. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  119. grid-column: 8 / span 9;
  120. margin-top: 4rem;
  121. background-color: $blue-light;
  122. height: fit-content;
  123. width: 60%;
  124. margin-left: 2rem;
  125. .field--name-field-lien{
  126. display: flex;
  127. flex-direction: column;
  128. margin-top: 2rem;
  129. margin-bottom: 2rem;
  130. margin-left: 1.5rem;
  131. margin-right: 1.5rem;
  132. text-align: center;
  133. a{
  134. font-weight: 800;
  135. color: $white;
  136. font-size: 1.3rem;
  137. }
  138. &:after{
  139. margin-left: auto;
  140. padding-top: 1rem;
  141. display: block;
  142. content:url("../images/pictos/noun_Arrow_3771902.svg")
  143. }
  144. }
  145. }
  146. // grille des ressources
  147. .block-views-blockbase-de-donnees-block-1{
  148. // margin: auto;
  149. width: 80%;
  150. grid-column: 3 / span 8;
  151. .view-filters{
  152. display: none;
  153. background-color: $white;
  154. margin-top: 2rem;
  155. margin-bottom: 2rem;
  156. .views-exposed-form-base-de-donnees-block-1{
  157. width: fit-content;
  158. display: flex;
  159. .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{
  160. width: fit-content;
  161. }
  162. .form-item{
  163. width: fit-content;
  164. }
  165. .form-item-field-type-de-ressource-target-id{
  166. width: fit-content;
  167. }
  168. }
  169. }
  170. .view-content{
  171. display: flex;
  172. flex-direction: row;
  173. flex-wrap: wrap;
  174. justify-content: space-between;
  175. margin-top: 3rem;
  176. .views-row{
  177. width: 49%;
  178. // padding: 1rem;
  179. // width: 50%;
  180. min-height: 300px;
  181. border: 2px solid $blue-light;
  182. background-color: $white;
  183. margin-bottom: 1rem;
  184. &:hover{
  185. background-color: $blue-light;
  186. }
  187. }
  188. @media (max-width: 810px){
  189. flex-direction: column;
  190. .views-row{
  191. width: 100%;
  192. }
  193. }
  194. .node-type-ressource{
  195. display: flex;
  196. flex-direction: column;
  197. // border: 2px solid $blue-light;
  198. padding: 1rem;
  199. // &:hover{
  200. // background-color: $blue-light;
  201. // .field--name-field-mots-clefs{
  202. // // &::after{
  203. // // content: url("../images/pictos/noun_Arrow_3771902.svg");
  204. // // }
  205. // }
  206. // }
  207. // &::after{
  208. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  209. // align-self: end;
  210. // margin-top: 1rem;
  211. // }
  212. .field--name-field-type-de-ressource{
  213. text-transform: uppercase;
  214. a{
  215. color: $blue-light;
  216. font-weight: 900;
  217. font-size: 0.8rem;
  218. }
  219. }
  220. .field--name-title{
  221. h2{
  222. margin: 0;
  223. a{
  224. color: $black;
  225. font-size: 1.4rem;
  226. font-weight: 600;
  227. }
  228. }
  229. }
  230. .field--name-field-auteur-s-{
  231. font-weight: 800;
  232. p{
  233. margin: 0;
  234. }
  235. .field__label{
  236. display:none;
  237. }
  238. }
  239. .field--name-field-edition{
  240. p{
  241. margin: 0;
  242. }
  243. .field__label{
  244. display:none;
  245. }
  246. }
  247. .field--name-field-images{
  248. display: none;
  249. width: 50%;
  250. img{
  251. width: 100%;
  252. height: auto;
  253. }
  254. }
  255. .field--name-field-mots-clefs{
  256. display: flex;
  257. margin-top: 2rem;
  258. flex-direction: row;
  259. flex-wrap: wrap;
  260. // &::after{
  261. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  262. // align-self: center;
  263. // }
  264. .field__item{
  265. margin-right: 1rem;
  266. padding-left: 0.3rem;
  267. padding-right: 0.3rem;
  268. a{
  269. background: $blue-dark;
  270. color: $white;
  271. font-weight: 800;
  272. vertical-align: super;
  273. padding-left: 0.1rem;
  274. padding-right: 0.1rem;
  275. display: inline-flex;
  276. }
  277. }
  278. }
  279. ul.links.inline{
  280. display: none;
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. }
  289. }
  290. }