ressources.scss 39 KB

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