_basededonnees.scss 18 KB

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