_ressources.scss 41 KB

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