ressources.scss 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  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. #views-exposed-form-base-de-donnees-block-1{
  133. // max-width: 20%;
  134. display: flex;
  135. flex-direction: column;
  136. flex-wrap: wrap;
  137. margin-top: 1rem;
  138. @media (max-width: 479px){
  139. justify-content: center;
  140. }
  141. .js-form-item{
  142. display: flex;
  143. flex-direction: column;
  144. max-width: 100%;
  145. margin-bottom: 1rem;
  146. padding: 0.5rem;
  147. align-items: baseline;
  148. border: solid black 0.5px ;
  149. @media(max-width: 810px){
  150. display: flex;
  151. flex-direction: row;
  152. justify-content: space-between;
  153. }
  154. label{
  155. flex: 2 1 auto;
  156. }
  157. input{
  158. flex: 2 1 auto;
  159. max-width: 55%;
  160. @media(max-width: 810px){
  161. max-width: 100%;
  162. }
  163. }
  164. }
  165. .js-form-type-select{
  166. display: flex;
  167. flex-direction: row;
  168. justify-content: space-evenly;
  169. padding-top: 0.5rem;
  170. label{
  171. width: 60%;
  172. text-transform: lowercase;
  173. }
  174. select{
  175. background-color: white;
  176. border: none;
  177. width: 50%;
  178. padding-bottom: 0.2rem;
  179. @media(max-width: 810px){
  180. width: 100%;
  181. }
  182. }
  183. }
  184. .js-form-type-textfield{
  185. flex-direction: column;
  186. padding-top: 0.8rem;
  187. label{
  188. text-transform: lowercase;
  189. padding-bottom: 0.2rem;
  190. flex: 2 1 auto;
  191. }
  192. input{
  193. flex: 2 1 auto;
  194. max-width: 55%;
  195. }
  196. }
  197. &.js-form-item{
  198. @media(max-width: 810px){
  199. flex-direction: column;
  200. }
  201. }
  202. #edit-actions{
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: space-between;
  206. align-self: center;
  207. margin-left: auto;
  208. @media (max-width: 479px){
  209. justify-content: center;
  210. margin: auto;
  211. }
  212. #edit-submit-base-de-donnees{
  213. background-color: $blue-light;
  214. color: white;
  215. text-transform: uppercase;
  216. border: none;
  217. padding: 0.3rem 0.7rem;
  218. margin-left: 2rem;
  219. @media (max-width: 479px){
  220. margin: auto;
  221. margin-top: 1rem;
  222. }
  223. }
  224. #edit-reset{
  225. background-color: $blue-light;
  226. color: white;
  227. text-transform: uppercase;
  228. border: none;
  229. padding: 0.3rem 0.7rem;
  230. margin-top: 1rem;
  231. margin-left: 1rem;
  232. @media (max-width: 479px){
  233. margin: auto;
  234. margin-top: 1rem;
  235. }
  236. }
  237. }
  238. }
  239. }
  240. .view-content{
  241. display: flex;
  242. flex-direction: row;
  243. flex-wrap: wrap;
  244. width: 100%;
  245. .view-type-ressource-slide:not(footer){
  246. width: 100%;
  247. position: relative;
  248. z-index: 0;
  249. padding-bottom: 4rem;
  250. &::before {
  251. content: "";
  252. position: absolute;
  253. left: -30%;
  254. height: 100%;
  255. width: 110vw;
  256. z-index: 0;
  257. }
  258. > * {
  259. position: relative;
  260. z-index: 1;
  261. }
  262. h3{
  263. margin-top: 3rem;
  264. text-transform: uppercase;
  265. a{color: rgb(9, 57, 139) !important;}
  266. }
  267. h3 a{
  268. display: flex;
  269. flex-direction: row;
  270. align-items: center;
  271. }
  272. h3.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain a{
  273. &:before{
  274. content:url("../images/pictos/picto-ressource-eqld.svg");
  275. padding-right: 1rem;
  276. }
  277. }
  278. h3.type-paroles-de-laureats a{
  279. &:before{
  280. content:url("../images/pictos/picto-ressource-paroleslaureats.svg");
  281. padding-right: 1rem;
  282. }
  283. }
  284. h3.type-paroles-de-laureats a{
  285. &:before{
  286. content:url("../images/pictos/picto-ressource-projetsimages.svg");
  287. padding-right: 1rem;
  288. }
  289. }
  290. h3.type-paroles-de-laureats a{
  291. &:before{
  292. content:url("../images/pictos/picto-ressource-presse.svg");
  293. padding-right: 1rem;
  294. }
  295. }
  296. .views-row-wrapper{
  297. display: flex;
  298. flex-direction: row;
  299. .views-row{
  300. display: flex;
  301. width: 25%;
  302. max-width: fit-content;
  303. .node-type-ressource{
  304. margin-bottom: 1rem ;
  305. padding-right: 1rem;
  306. .ext{
  307. color: black;
  308. }
  309. svg.ext{
  310. display: none;
  311. }
  312. &.type-de-ressource-Productions-du-programme-Engagés-pour-la-qualité-du-logement-de-demain{
  313. // background-color: $background-actus;
  314. .wrapper-ressource{
  315. display: grid;
  316. grid-template-columns: 1fr 1.5fr;
  317. grid-template-rows: repeat(5 1fr);
  318. .field--name-field-type-de-ressource{
  319. order: 1;
  320. grid-row: 1;
  321. margin-bottom: 1rem;
  322. }
  323. .field--name-field-type-de-media{
  324. order: 2;
  325. grid-row: 2;
  326. }
  327. .field--name-field-images{
  328. order: 3;
  329. grid-row: 3 /span 5;
  330. height: auto;
  331. width: 90%;
  332. img{
  333. height: auto;
  334. width: 90%;
  335. border: 1px solid #a3a3a3;
  336. }
  337. }
  338. .field--name-title{
  339. grid-row: 3;
  340. margin-top: 0;
  341. a{
  342. color: $blue-light;
  343. font-size: 1.2rem;
  344. font-style: normal;
  345. }
  346. }
  347. .field--name-field-sous-titre{
  348. grid-row: 4;
  349. color: $blue-light;
  350. font-size: 0.8rem;
  351. font-weight: 800;
  352. }
  353. .field--name-field-auteur-s-{
  354. grid-row: 5;
  355. }
  356. .field--name-field-edition{
  357. grid-row: 6;
  358. }
  359. .field--name-field-date-de-parution{
  360. grid-row: 7;
  361. }
  362. .field--name-field-mots-clefs{
  363. grid-row: 8;
  364. }
  365. }
  366. }
  367. &.type-de-ressource-Paroles-de-lauréats{
  368. // background-color: $background-actus;
  369. }
  370. @media (max-width: 479px) {
  371. margin-left: 0;
  372. }
  373. .wrapper-ressource{
  374. .field--name-field-type-de-ressource,
  375. .field--name-field-type-de-media{
  376. grid-column: 1;
  377. text-transform: uppercase;
  378. line-height: 1.1rem;
  379. margin-top: 0.5rem;
  380. a{
  381. color: $blue-light;
  382. font-weight: 900;
  383. font-size: 0.8rem;
  384. pointer-events: none;
  385. cursor: default;
  386. }
  387. }
  388. .field--name-title{
  389. grid-column: 2;
  390. margin-top: 0.5rem;
  391. h2{
  392. margin: 0;
  393. line-height: 1rem;
  394. a{
  395. color: $black;
  396. font-size: 1rem;
  397. font-weight: 900;
  398. font-style: italic;
  399. }
  400. }
  401. }
  402. .field--name-field-auteur-s-{
  403. grid-column: 2;
  404. margin-top: 0.5rem;
  405. font-weight: 800;
  406. line-height: 1.1rem;
  407. p{
  408. margin: 0;
  409. }
  410. .field__label{
  411. display:none;
  412. }
  413. }
  414. .field--name-field-sous-titre{
  415. grid-column: 2;
  416. margin-top: 0.5rem;
  417. }
  418. .field--name-field-edition{
  419. grid-column: 2;
  420. margin-top: 0.5rem;
  421. p{
  422. margin: 0;
  423. }
  424. .field__label{
  425. display:none;
  426. }
  427. }
  428. .field--name-field-images{
  429. grid-column: 1;
  430. // display: none;
  431. // width: 30%;
  432. // width: fit-content;
  433. // height: 100px;
  434. .field__item{
  435. height: 100px;
  436. }
  437. img{
  438. height: 100%;
  439. width: auto;
  440. // width: 100%;
  441. // height: auto;
  442. }
  443. }
  444. .field--name-field-date-de-parution{
  445. grid-column: 2;
  446. margin-top: 0.3rem;
  447. }
  448. .field--name-field-mots-clefs{
  449. grid-column: 2;
  450. display: flex;
  451. margin-top: 1rem;
  452. flex-direction: row;
  453. flex-wrap: wrap;
  454. .field__item{
  455. margin-right: 0.5rem;
  456. padding-left: 0.3rem;
  457. padding-right: 0.3rem;
  458. font-size: 0.7rem;
  459. a{
  460. background: $blue-dark;
  461. color: $white;
  462. font-weight: 800;
  463. vertical-align: super;
  464. padding-left: 0.1rem;
  465. padding-right: 0.1rem;
  466. display: inline-flex;
  467. pointer-events: none;
  468. cursor: default;
  469. }
  470. }
  471. }
  472. ul.links.inline{
  473. display: none;
  474. }
  475. }
  476. }
  477. }
  478. @media (max-width: 810px){
  479. flex-direction: column;
  480. .views-row{
  481. width: 100%;
  482. }
  483. }
  484. .slick-next::before{
  485. content:url("../images/pictos/fleche-droite-dans-rond.png");
  486. display: block;
  487. }
  488. .slick-prev::before{
  489. content:url("../images/pictos/fleche-droite-dans-rond.png");
  490. display: block;
  491. transform: scaleX(-1);
  492. display: none;
  493. }
  494. .slick-next {
  495. right: 10%;
  496. }
  497. }
  498. }
  499. .view-type-ressource-slide:has(.type-productions-du-programme-engages-pour-la-qualite-du-logement-de-demain){
  500. &::before{
  501. background-color: $background-actus;}
  502. }
  503. }
  504. }
  505. }
  506. }
  507. }
  508. }
  509. }
  510. }
  511. }
  512. }