ressources.scss 32 KB

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