ressources.scss 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. .path-ressources{
  2. .layout-container {
  3. overflow: visible;
  4. @media (max-width:810px) {
  5. overflow: hidden;
  6. }
  7. }
  8. .layout-content{
  9. width: 100vw;
  10. .region-content{
  11. width: 100%;
  12. margin: auto;
  13. #block-contenudelapageprincipale{
  14. h2{
  15. font-size: 4em;
  16. color: $blue-dark;
  17. font-weight: 400;
  18. text-align: center;
  19. margin-bottom: 1rem;
  20. width: fit-content;
  21. margin-left: 28%;
  22. @media (max-width:810px) {
  23. margin-left: 2rem;
  24. text-align: left;
  25. line-height: 4rem;
  26. }
  27. }
  28. .layout--onecol{
  29. .layout__region--content{
  30. .block-region-content{
  31. // display: grid;
  32. // grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  33. display: flex;
  34. flex-direction: column;
  35. @media (max-width: 479px){
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. // texte présentation
  40. .block-config-pages-block{
  41. width: 60%;
  42. margin: auto;
  43. margin-left: 28%;
  44. @media (max-width:810px) {
  45. margin-left: 2rem;
  46. width: 85%;
  47. }
  48. @media (max-width:479px) {
  49. order: 1;
  50. margin-left: 2rem;
  51. // margin-right: 2rem;
  52. }
  53. .config_pages--base-de-donnees--full{
  54. grid-column: 1 / span 5;
  55. @media (max-width: 810px){
  56. padding-top: 1rem;
  57. // padding-left: 2rem;
  58. margin-top:1rem;
  59. }
  60. @media (max-width: 479px){
  61. padding-left: 0;
  62. padding-right: 0;
  63. }
  64. .field--name-field-introduction{
  65. margin: auto;
  66. background: $white;
  67. font-size: 1rem;
  68. // margin-top:5rem;
  69. @media (max-width: 479px){
  70. margin-top:1rem;
  71. }
  72. }
  73. }
  74. }
  75. //button proposer une ressource
  76. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  77. // visibility: hidden;
  78. grid-column: 6 / span 5;
  79. grid-row: 1;
  80. margin-top: 4rem;
  81. background-color: $blue-light;
  82. height: fit-content;
  83. width: 100%;
  84. @media (max-width: 810px){
  85. grid-column: 5 / span 5;
  86. }
  87. @media (max-width: 479px){
  88. grid-column: 5 / span 5;
  89. order: 2;
  90. }
  91. .display{
  92. display: block;
  93. }
  94. .field--name-field-lien{
  95. display: flex;
  96. flex-direction: column;
  97. margin-top: 2rem;
  98. margin-bottom: 2rem;
  99. margin-left: 1.5rem;
  100. margin-right: 1.5rem;
  101. text-align: center;
  102. a{
  103. font-weight: 800;
  104. color: $white;
  105. font-size: 1.3rem;
  106. }
  107. &:after{
  108. margin-left: auto;
  109. padding-top: 1rem;
  110. display: block;
  111. content:url("../images/pictos/noun_Arrow_3771902.svg")
  112. }
  113. }
  114. @media (max-width: 810px){
  115. margin: auto;
  116. }
  117. }
  118. // grille des ressources
  119. .block-views-blockbase-de-donnees-block-1{
  120. margin-top: 2rem;
  121. width: 100%;
  122. @media (max-width:479px) {
  123. order: 3;
  124. }
  125. .view-base-de-donnees{
  126. display: grid;
  127. grid-template-columns: 22% 80%;
  128. gap: 2rem;
  129. @media (max-width:810px) {
  130. display: flex;
  131. flex-direction: column ;
  132. }
  133. .view-filters{
  134. position: sticky;
  135. align-self: start;
  136. top: 21rem;
  137. left: 0;
  138. background-color: $white;
  139. margin-bottom: 5rem;
  140. padding: 1rem;
  141. padding-left: 2rem;
  142. padding-right: 1.5rem;
  143. z-index: 1;
  144. transform: translateY(-210px);
  145. margin-bottom: -210px;
  146. @media (max-width: 810px) {
  147. position: static;
  148. margin-bottom: 2rem;
  149. transform: none;
  150. margin-bottom: 0px;
  151. }
  152. @media (max-width: 479px) {
  153. margin-left: 0;
  154. }
  155. .buttons-filtres-ressources{
  156. &::before{
  157. content: "Afficher : ";
  158. padding-right: 1rem;
  159. font-weight: 800;
  160. font-size: 1rem;
  161. margin-bottom: 1rem;
  162. display: block;
  163. width: 100%;
  164. @media (max-width: 479px){
  165. padding-bottom: 1rem;
  166. }
  167. }
  168. a.button{
  169. background-color: transparent;
  170. // border-radius: 30px;
  171. border: 1px solid black;
  172. padding: 0.3rem 0.5rem 0.1rem 0.3rem;
  173. margin-bottom: 0.5rem;
  174. margin-right: 0.5rem;
  175. font-size: 0.8rem;
  176. color: $blue-dark;
  177. display: inline-flex;
  178. flex-direction: row;
  179. align-items: center;
  180. &:hover{
  181. cursor: grab;
  182. background-color: $blue-dark;
  183. color: white;
  184. }
  185. :visited{
  186. color: $blue-dark;
  187. }
  188. &.button-videos{
  189. &::before{
  190. content:url("../images/pictos/videos.svg");
  191. padding-right: 0.5rem;
  192. display: block;
  193. }
  194. &:hover::before,
  195. .is-active &::before{
  196. content:url("../images/pictos/videos-blanc.svg");
  197. display: block;
  198. }
  199. }
  200. &.button-podcasts{
  201. &::before{
  202. content:url("../images/pictos/podcasts.svg");
  203. padding-right: 0.5rem;
  204. display: block;
  205. }
  206. &:hover::before{
  207. content:url("../images/pictos/podcasts-blanc.svg");
  208. display: block;
  209. }
  210. }
  211. &.button-images---photos{
  212. &::before{
  213. content:url("../images/pictos/en-images.svg");
  214. display: block;
  215. padding-right: 0.5rem;
  216. }
  217. &:hover::before{
  218. content:url("../images/pictos/en-images-blanc.svg");
  219. display: block;
  220. }
  221. }
  222. &.button-livres{
  223. &::before{
  224. content:url("../images/pictos/ecrits.svg");
  225. padding-right: 0.5rem;
  226. display: block;;
  227. }
  228. &:hover::before{
  229. content:url("../images/pictos/ecrits-blanc.svg");
  230. display: block;
  231. }
  232. }
  233. &.button-articles{
  234. &::before{
  235. content:url("../images/pictos/ecrits.svg");
  236. padding-right: 0.5rem;
  237. display: block;
  238. }
  239. &:hover::before{
  240. content:url("../images/pictos/ecrits-blanc.svg");
  241. display: block;
  242. }
  243. }
  244. &.button-publications---rapports{
  245. &::before{
  246. content:url("../images/pictos/ecrits.svg");
  247. padding-right: 0.5rem;
  248. display: block;
  249. }
  250. &:hover::before{
  251. content:url("../images/pictos/ecrits-blanc.svg");
  252. display: block;
  253. }
  254. }
  255. }
  256. button.is-active{
  257. background-color: $blue-dark;
  258. color: white;
  259. a {
  260. color: white;
  261. }
  262. &.button-videos{
  263. margin-top: 1rem;
  264. a {
  265. &::before,
  266. .is-active &::before{
  267. content:url("../images/pictos/videos-blanc.svg");
  268. }
  269. }
  270. }
  271. &.button-podcasts{
  272. a {
  273. &::before{
  274. content:url("../images/pictos/podcasts-blanc.svg");
  275. }
  276. }
  277. }
  278. &.button-images---photos{
  279. a {
  280. &::before{
  281. content:url("../images/pictos/en-images-blanc.svg");
  282. }
  283. }
  284. }
  285. &.button-livres{
  286. a {
  287. &::before{
  288. content:url("../images/pictos/ecrits-blanc.svg");
  289. }
  290. }
  291. }
  292. &.button-articles{
  293. a {
  294. &::before{
  295. content:url("../images/pictos/ecrits-blanc.svg");
  296. }
  297. }
  298. }
  299. &.button-publications---rapports{
  300. a {
  301. &::before{
  302. content:url("../images/pictos/ecrits-blanc.svg");
  303. }
  304. }
  305. }
  306. }
  307. }
  308. form{
  309. &::before{
  310. content: "Filtrer par : ";
  311. padding-right: 1rem;
  312. font-weight: 800;
  313. font-size: 1rem;
  314. margin-bottom: 1rem;
  315. @media (max-width: 479px){
  316. padding-bottom: 1rem;
  317. }
  318. }
  319. .form-item-field-type-de-media-target-id{
  320. display: none;
  321. }
  322. .form-item{
  323. font-size: 0.8rem;
  324. }
  325. .form-item-combine{
  326. border-top: none;
  327. border-left: none;
  328. border-right: none;
  329. font-size: 0.8rem;
  330. justify-content: flex-start !important;
  331. label{display: none;}
  332. .input-wrapper{
  333. display: inline-flex;
  334. position: relative;
  335. font-size: 0.8rem;
  336. width: -webkit-fill-available; /* Safari/Chrome */
  337. width: -moz-available; /* Firefox */
  338. width: fill-available; /* standard futur */
  339. width: 100%; /* fallback */
  340. max-width: 100%;
  341. &::after{
  342. content: url("../images/pictos/loupe.svg");
  343. display: inline-block;
  344. }
  345. input{
  346. text-align: start !important;
  347. max-width: 100% !important;
  348. }
  349. }
  350. }
  351. .form-item-combine:not(.form-item-field-date-de-parution-value) .search-with-clear{
  352. .clear-input {
  353. position: absolute;
  354. right: -4px;
  355. top: 50%;
  356. transform: translateY(-50%);
  357. background: white;
  358. border: none;
  359. padding: 0.5rem;
  360. margin: 0;
  361. cursor: pointer;
  362. color: #888;
  363. display: none; /* masqué par défaut */
  364. }
  365. .clear-input:hover {
  366. color: #000;
  367. }
  368. }
  369. .form-item-field-date-de-parution-value .clear-input{
  370. display: none;
  371. }
  372. select{
  373. font-size: 0.8rem;
  374. ::placeholder{
  375. display: none;
  376. }
  377. }
  378. input{
  379. font-size: 0.8rem;
  380. }
  381. }
  382. }
  383. .filtered{
  384. display: flex;
  385. flex-direction: row;
  386. flex-wrap: wrap;
  387. .views-row-wrapper{
  388. flex-wrap: wrap;
  389. width: 85%;
  390. .views-row {
  391. padding: 1rem;
  392. width: 30% !important;
  393. }
  394. }
  395. }
  396. .view-content{
  397. transition: opacity 0.3s ease;
  398. display: flex;
  399. flex-direction: row;
  400. flex-wrap: wrap;
  401. width: 100%;
  402. .border{
  403. width: 80%;
  404. border-top: solid 1px rgba(0, 0, 0, 0.3);
  405. }
  406. .view-type-slide:not(:first-of-type) {
  407. // width: 80%;
  408. // border-top: solid 1px rgba(0, 0, 0, 0.3);
  409. // padding-top: 2rem;
  410. }
  411. .view-type-slide.type-publications-issues-du-programme{
  412. order: 1;
  413. &::before{
  414. background-color: $background-actus;
  415. }
  416. .views-row{
  417. width: 45% ;
  418. min-width: 350px !important;
  419. max-width: 500px ;
  420. }
  421. }
  422. .view-type-slide.type-paroles-de-laureats{order: 2;}
  423. .view-type-slide.type-les-projets-en-images{
  424. order: 3;
  425. // width: 80%;
  426. // border-top: solid 1px rgba(0, 0, 0, 0.3);
  427. }
  428. .view-type-slide.type-les-projets-en-images{
  429. .slick-list{
  430. padding-left: 0 !important;
  431. }
  432. &::before{
  433. background-color: $background-actus;
  434. }
  435. }
  436. .view-type-slide.type-presse{
  437. order: 5;
  438. h3{border: none;}
  439. }
  440. .view-type-slide.type-publications-des-partenaires-et-laureats{
  441. order: 4;
  442. }
  443. .view-type-slide.type-autres{order: 9;}
  444. .type-documentation-partenariale{order: 6;}
  445. .view-type-slide.type-these-et-memoire{order: 8;}
  446. .view-type-slide:not(footer){
  447. width: 100%;
  448. position: relative;
  449. z-index: 0;
  450. // padding-top: 1rem;
  451. padding-bottom: 1rem;
  452. &::before {
  453. content: "";
  454. position: absolute;
  455. left: -35%;
  456. height: 100%;
  457. width: 110vw;
  458. z-index: 0;
  459. @media (max-width: 810px){
  460. left: 0;
  461. }
  462. }
  463. > * {
  464. position: relative;
  465. z-index: 1;
  466. }
  467. h3{
  468. // margin-top: 3rem;
  469. top: 1rem;
  470. // padding-top: 1rem;
  471. text-transform: uppercase;
  472. font-family: 'Source Code Pro';
  473. color: rgb(9, 57, 139) !important;
  474. display: flex;
  475. flex-direction: row;
  476. align-items: center;
  477. font-size: 1.7rem;
  478. margin-block: 0em;
  479. @media (max-width: 810px){
  480. padding-left: 2rem;
  481. width: 70%;
  482. }
  483. @media (max-width: 479px){
  484. width: 65% !important;
  485. }
  486. }
  487. h3.type-publications-issues-du-programme {
  488. border: none;
  489. &:before{
  490. content:url("../images/pictos/picto-ressource-eqld.svg");
  491. padding-right: 1rem;
  492. }
  493. }
  494. h3.type-paroles-de-laureats {
  495. &:before{
  496. content:url("../images/pictos/picto-ressource-paroleslaureats.svg");
  497. padding-right: 1rem;
  498. }
  499. }
  500. h3.type-les-projets-en-images {
  501. width: 80%;
  502. &:before{
  503. content:url("../images/pictos/picto-ressource-projetsimages.svg");
  504. padding-right: 1rem;
  505. }
  506. }
  507. h3.type-presse {
  508. &:before{
  509. content:url("../images/pictos/picto-ressource-presse.svg");
  510. padding-right: 1rem;
  511. }
  512. }
  513. .tout-voir{
  514. background-color: $white;
  515. border: 1px solid $blue-light;
  516. list-style: none;
  517. padding: 0.5rem;
  518. position: relative;
  519. left: 60vw;
  520. top: -1.5rem;
  521. // margin-top: 1rem;
  522. // button{
  523. text-transform: uppercase;
  524. font-size: 0.7rem;
  525. font-weight: 500;
  526. color: $blue-light;
  527. display: inline-flex;
  528. align-items: center;
  529. &:after{
  530. // display: block;
  531. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  532. }
  533. // }
  534. @media (max-width: 810px){
  535. left: 81vw;
  536. // top: -4.3rem;
  537. }
  538. @media (max-width: 479px){
  539. left: 76vw;
  540. top: -1.5rem;
  541. }
  542. }
  543. .views-row-wrapper{
  544. display: flex;
  545. flex-direction: row;
  546. .slick-track{
  547. width: 100% !important;
  548. display: flex;
  549. flex-direction: row;
  550. transform: none;
  551. .views-row{
  552. width: 20% ;
  553. min-width: 250px ;
  554. max-width: 500px ;
  555. }
  556. }
  557. @media (max-width: 810px){
  558. padding-left: 2rem;
  559. flex-direction: column;
  560. .views-row{
  561. width: 100% !important;
  562. }
  563. }
  564. .slick-next::before{
  565. content:url("../images/pictos/fleche-droite-dans-rond.png");
  566. // display: block;
  567. display: inline-block;
  568. @media (max-width: 810px){
  569. transform: scale(0.5); /* Réduction à 50% */
  570. transform-origin: top left; /* Point d’ancrage du redimensionnement */
  571. }
  572. }
  573. .slick-prev::before{
  574. content:url("../images/pictos/fleche-droite-dans-rond.png");
  575. display: block;
  576. display: inline-block;
  577. transform: scaleX(-1);
  578. @media (max-width: 810px){
  579. transform: scale(-0.5, 0.5);
  580. transform-origin: top right; /* Point d’ancrage du redimensionnement */
  581. }
  582. }
  583. .slick-prev.slick-disabled::before,
  584. .slick-next.slick-disabled::before{
  585. opacity: 0 !important;
  586. }
  587. .slick-next {
  588. right: 10%;
  589. }
  590. @media (max-width: 810px){
  591. .slick-prev {
  592. left: -10%;
  593. }
  594. .slick-next{
  595. right: 2%;
  596. }
  597. }
  598. @media (max-width: 479px){
  599. .slick-prev {
  600. left: -15%;
  601. }
  602. }
  603. }
  604. }
  605. }
  606. }
  607. }
  608. }
  609. }
  610. }
  611. }
  612. }
  613. }
  614. }
  615. div.view-type-slide:nth-child(2) > div:nth-child(4){
  616. padding-left: 0 !important;
  617. .slick-list{
  618. padding-left: 8% !important;
  619. padding-right: 8% !important;
  620. }
  621. article{
  622. padding-right: 0;
  623. }
  624. }