ressources.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. .path-ressources{
  2. .layout-container {
  3. overflow: visible;
  4. }
  5. .layout-content{
  6. width: 100vw;
  7. .region-content{
  8. width: 100%;
  9. margin: auto;
  10. #block-contenudelapageprincipale{
  11. .layout--onecol{
  12. .layout__region--content{
  13. .block-region-content{
  14. // display: grid;
  15. // grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  16. display: flex;
  17. flex-direction: column;
  18. @media (max-width: 479px){
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. // texte présentation
  23. .block-config-pages-block{
  24. width: 60%;
  25. margin: auto;
  26. margin-left: 30%;
  27. @media (max-width:479px) {
  28. order: 1;
  29. margin-left: 0;
  30. }
  31. .config_pages--base-de-donnees--full{
  32. grid-column: 1 / span 5;
  33. @media (max-width: 810px){
  34. padding: 2rem;
  35. margin-top:1rem;
  36. }
  37. @media (max-width: 479px){
  38. padding-left: 0;
  39. padding-right: 0;
  40. }
  41. .field--name-field-introduction{
  42. margin: auto;
  43. background: $white;
  44. margin-top:5rem;
  45. @media (max-width: 479px){
  46. margin-top:1rem;
  47. }
  48. }
  49. }
  50. }
  51. //button proposer une ressource
  52. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  53. // visibility: hidden;
  54. grid-column: 6 / span 5;
  55. grid-row: 1;
  56. margin-top: 4rem;
  57. background-color: $blue-light;
  58. height: fit-content;
  59. width: 100%;
  60. @media (max-width: 810px){
  61. grid-column: 5 / span 5;
  62. }
  63. @media (max-width: 479px){
  64. grid-column: 5 / span 5;
  65. order: 2;
  66. }
  67. .display{
  68. display: block;
  69. }
  70. .field--name-field-lien{
  71. display: flex;
  72. flex-direction: column;
  73. margin-top: 2rem;
  74. margin-bottom: 2rem;
  75. margin-left: 1.5rem;
  76. margin-right: 1.5rem;
  77. text-align: center;
  78. a{
  79. font-weight: 800;
  80. color: $white;
  81. font-size: 1.3rem;
  82. }
  83. &:after{
  84. margin-left: auto;
  85. padding-top: 1rem;
  86. display: block;
  87. content:url("../images/pictos/noun_Arrow_3771902.svg")
  88. }
  89. }
  90. @media (max-width: 810px){
  91. margin: auto;
  92. }
  93. }
  94. // grille des ressources
  95. .block-views-blockbase-de-donnees-block-1{
  96. margin-top: 2rem;
  97. width: 100%;
  98. @media (max-width:479px) {
  99. order: 3;
  100. }
  101. .view-base-de-donnees{
  102. display: grid;
  103. grid-template-columns: 20% 75%;
  104. gap: 2rem;
  105. .view-filters{
  106. position: sticky;
  107. align-self: start;
  108. top: 9rem;
  109. left: 0;
  110. background-color: $white;
  111. margin-top: 2rem;
  112. margin-bottom: 5rem;
  113. padding: 1rem;
  114. padding-left: 2rem;
  115. padding-right: 3rem;
  116. z-index: 1;
  117. @media (max-width: 810px) {
  118. position: static;
  119. margin-bottom: 2rem;
  120. }
  121. @media (max-width: 479px) {
  122. margin-left: 0;
  123. }
  124. &::before{
  125. content: "Filtrer par : ";
  126. padding-right: 1rem;
  127. font-weight: 800;
  128. @media (max-width: 479px){
  129. padding-bottom: 1rem;
  130. }
  131. }
  132. }
  133. .view-content{
  134. display: flex;
  135. flex-direction: row;
  136. flex-wrap: wrap;
  137. width: 100%;
  138. .view-type-ressource-slide:not(footer){
  139. width: 100%;
  140. position: relative;
  141. z-index: 0;
  142. padding-bottom: 4rem;
  143. &::before {
  144. content: "";
  145. position: absolute;
  146. left: -30%;
  147. height: 100%;
  148. width: 110vw;
  149. z-index: 0;
  150. }
  151. > * {
  152. position: relative;
  153. z-index: 1;
  154. }
  155. h3{
  156. margin-top: 3rem;
  157. text-transform: uppercase;
  158. a{color: rgb(9, 57, 139) !important;}
  159. }
  160. h3 a{
  161. display: flex;
  162. flex-direction: row;
  163. align-items: center;
  164. }
  165. h3.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain a{
  166. &:before{
  167. content:url("../images/pictos/picto-ressource-eqld.svg");
  168. padding-right: 1rem;
  169. }
  170. }
  171. h3.type-paroles-de-laureats a{
  172. &:before{
  173. content:url("../images/pictos/paroles-de-laureats.png");
  174. padding-right: 1rem;
  175. }
  176. }
  177. h3.type-revue a{
  178. &:before{
  179. content:url("../images/pictos/livres.png");
  180. padding-right: 1rem;
  181. }
  182. }
  183. h3.type-paroles-de-laureats a{
  184. &:before{
  185. content:url("../images/pictos/picto-ressource-presse.svg");
  186. padding-right: 1rem;
  187. }
  188. }
  189. .views-row-wrapper{
  190. display: flex;
  191. flex-direction: row;
  192. .views-row{
  193. display: flex;
  194. width: 25%;
  195. max-width: fit-content;
  196. // .node-type-ressource{
  197. // margin-bottom: 1rem ;
  198. // padding-right: 1rem;
  199. // .ext{
  200. // color: black;
  201. // }
  202. // svg.ext{
  203. // display: none;
  204. // }
  205. // &.type-de-ressource-Productions-du-programme-Engagés-pour-la-qualité-du-logement-de-demain{
  206. // // background-color: $background-actus;
  207. // .wrapper-ressource{
  208. // display: grid;
  209. // grid-template-columns: 1fr 1.8fr;
  210. // grid-template-rows: repeat(5 1fr);
  211. // .field--name-field-type-de-ressource{
  212. // order: 2;
  213. // grid-row: 2;
  214. // margin-bottom: 1rem;
  215. // }
  216. // .field--name-field-type-de-media{
  217. // order: 1;
  218. // grid-row: 1;
  219. // }
  220. // .field--name-field-images{
  221. // order: 3;
  222. // grid-row: 3 /span 5;
  223. // height: auto;
  224. // width: 90%;
  225. // img{
  226. // height: auto;
  227. // width: 90%;
  228. // border: 1px solid #a3a3a3;
  229. // }
  230. // }
  231. // .field--name-title{
  232. // grid-row: 3;
  233. // margin-top: 0;
  234. // a{
  235. // color: $blue-light;
  236. // font-size: 1.2rem;
  237. // font-style: normal;
  238. // }
  239. // }
  240. // .field--name-field-sous-titre{
  241. // grid-row: 4;
  242. // color: $blue-light;
  243. // font-size: 0.8rem;
  244. // font-weight: 800;
  245. // }
  246. // .field--name-field-auteur-s-{
  247. // grid-row: 5;
  248. // }
  249. // .field--name-field-edition{
  250. // grid-row: 6;
  251. // }
  252. // .field--name-field-date-de-parution{
  253. // grid-row: 7;
  254. // }
  255. // .field--name-field-mots-clefs{
  256. // grid-row: 8;
  257. // }
  258. // }
  259. // }
  260. // &.type-de-ressource-Paroles-de-lauréats{
  261. // // background-color: $background-actus;
  262. // }
  263. // @media (max-width: 479px) {
  264. // margin-left: 0;
  265. // }
  266. // .wrapper-ressource{
  267. // .field--name-field-type-de-ressource,
  268. // .field--name-field-type-de-media{
  269. // grid-column: 1;
  270. // text-transform: uppercase;
  271. // line-height: 1.1rem;
  272. // margin-top: 0.5rem;
  273. // a{
  274. // color: $blue-light;
  275. // font-weight: 900;
  276. // font-size: 0.8rem;
  277. // pointer-events: none;
  278. // cursor: default;
  279. // }
  280. // }
  281. // .field--name-title{
  282. // grid-column: 2;
  283. // margin-top: 0.5rem;
  284. // h2{
  285. // margin: 0;
  286. // line-height: 1rem;
  287. // a{
  288. // color: $black;
  289. // font-size: 1rem;
  290. // font-weight: 900;
  291. // font-style: italic;
  292. // }
  293. // }
  294. // }
  295. // .field--name-field-auteur-s-{
  296. // grid-column: 2;
  297. // margin-top: 0.5rem;
  298. // font-weight: 800;
  299. // line-height: 1.1rem;
  300. // p{
  301. // margin: 0;
  302. // }
  303. // .field__label{
  304. // display:none;
  305. // }
  306. // }
  307. // .field--name-field-sous-titre{
  308. // grid-column: 2;
  309. // margin-top: 0.5rem;
  310. // }
  311. // .field--name-field-edition{
  312. // grid-column: 2;
  313. // margin-top: 0.5rem;
  314. // p{
  315. // margin: 0;
  316. // }
  317. // .field__label{
  318. // display:none;
  319. // }
  320. // }
  321. // .field--name-field-images{
  322. // grid-column: 1;
  323. // .field__item{
  324. // height: 100px;
  325. // }
  326. // img{
  327. // height: 100%;
  328. // width: auto;
  329. // }
  330. // }
  331. // .field--name-field-date-de-parution{
  332. // grid-column: 2;
  333. // margin-top: 0.3rem;
  334. // }
  335. // .field--name-field-mots-clefs{
  336. // grid-column: 2;
  337. // display: flex;
  338. // margin-top: 1rem;
  339. // flex-direction: row;
  340. // flex-wrap: wrap;
  341. // .field__item{
  342. // margin-right: 0.5rem;
  343. // padding-left: 0.3rem;
  344. // padding-right: 0.3rem;
  345. // font-size: 0.7rem;
  346. // a{
  347. // background: $blue-dark;
  348. // color: $white;
  349. // font-weight: 800;
  350. // vertical-align: super;
  351. // padding-left: 0.1rem;
  352. // padding-right: 0.1rem;
  353. // display: inline-flex;
  354. // pointer-events: none;
  355. // cursor: default;
  356. // }
  357. // }
  358. // }
  359. // ul.links.inline{
  360. // display: none;
  361. // }
  362. // }
  363. // }
  364. }
  365. @media (max-width: 810px){
  366. flex-direction: column;
  367. .views-row{
  368. width: 100%;
  369. }
  370. }
  371. .slick-next::before{
  372. content:url("../images/pictos/fleche-droite-dans-rond.png");
  373. display: block;
  374. }
  375. .slick-prev::before{
  376. content:url("../images/pictos/fleche-droite-dans-rond.png");
  377. display: block;
  378. transform: scaleX(-1);
  379. display: none;
  380. }
  381. .slick-next {
  382. right: 10%;
  383. }
  384. }
  385. }
  386. .view-type-ressource-slide:has(.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain){
  387. &::before{
  388. background-color: $background-actus;}
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. }
  396. }
  397. }
  398. }
  399. }