ressources.scss 35 KB

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