_basededonnees.scss 17 KB

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