ressources.scss 39 KB

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