ressources.scss 26 KB

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