ressources.scss 28 KB

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