_basededonnees.scss 17 KB

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