ressources.scss 39 KB

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