ressources.scss 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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: 14rem;
  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(-100px);
  126. margin-bottom: -100px;
  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. &:hover{
  160. color: white;
  161. }
  162. }
  163. &.button-videos{
  164. margin-top: 1rem;
  165. a {
  166. display: inline-flex;
  167. flex-direction: row;
  168. align-items: center;
  169. &::before{
  170. content:url("../images/pictos/videos.svg");
  171. padding-right: 0.5rem;
  172. }
  173. &:hover::before{
  174. content:url("../images/pictos/videos-blanc.svg");
  175. }
  176. }
  177. }
  178. &.button-podcasts{
  179. a {
  180. display: inline-flex;
  181. flex-direction: row;
  182. align-items: center;
  183. &::before{
  184. content:url("../images/pictos/podcasts.svg");
  185. padding-right: 0.5rem;
  186. }
  187. &:hover::before{
  188. content:url("../images/pictos/podcasts-blanc.svg");
  189. }
  190. }
  191. }
  192. &.button-reportages-photos{
  193. a {
  194. display: inline-flex;
  195. flex-direction: row;
  196. align-items: center;
  197. &::before{
  198. content:url("../images/pictos/en-images.svg");
  199. padding-right: 0.5rem;
  200. }
  201. &:hover::before{
  202. content:url("../images/pictos/en-images-blanc.svg");
  203. }
  204. }
  205. }
  206. &.button-livres{
  207. a {
  208. display: inline-flex;
  209. flex-direction: row;
  210. align-items: center;
  211. &::before{
  212. content:url("../images/pictos/ecrits.svg");
  213. padding-right: 0.5rem;
  214. }
  215. &:hover::before{
  216. content:url("../images/pictos/ecrits-blanc.svg");
  217. }
  218. }
  219. }
  220. &.button-articles{
  221. a {
  222. display: inline-flex;
  223. flex-direction: row;
  224. align-items: center;
  225. &::before{
  226. content:url("../images/pictos/ecrits.svg");
  227. padding-right: 0.5rem;
  228. }
  229. &:hover::before{
  230. content:url("../images/pictos/ecrits-blanc.svg");
  231. }
  232. }
  233. }
  234. &.button-publications-rapports{
  235. a {
  236. display: inline-flex;
  237. flex-direction: row;
  238. align-items: center;
  239. &::before{
  240. content:url("../images/pictos/ecrits.svg");
  241. padding-right: 0.5rem;
  242. }
  243. &:hover::before{
  244. content:url("../images/pictos/ecrits-blanc.svg");
  245. }
  246. }
  247. }
  248. }
  249. }
  250. form{
  251. &::before{
  252. content: "Filtrer par : ";
  253. padding-right: 1rem;
  254. font-weight: 800;
  255. margin-bottom: 1rem;
  256. @media (max-width: 479px){
  257. padding-bottom: 1rem;
  258. }
  259. }
  260. .form-item-combine{
  261. border-top: none;
  262. border-left: none;
  263. border-right: none;
  264. label{display: none;}
  265. .input-wrapper{
  266. display: inline-flex;
  267. &::after{
  268. content: url("../images/pictos/loupe.svg");
  269. display: inline-block;
  270. }
  271. input{
  272. text-align: start !important;
  273. max-width: 100% !important;
  274. }
  275. }
  276. }
  277. select{
  278. ::placeholder{
  279. display: none;
  280. }
  281. }
  282. }
  283. }
  284. // .view-ressources-hidden {
  285. // visibility: hidden;
  286. // height: 0;
  287. // overflow: hidden;
  288. // }
  289. .view-content{
  290. transition: opacity 0.3s ease;
  291. display: flex;
  292. flex-direction: row;
  293. flex-wrap: wrap;
  294. width: 100%;
  295. .view-type-slide.type-publication-issue-du-programme-eqld{
  296. order: 1;
  297. }
  298. .view-type-slide.type-paroles-de-laureats{order: 2;}
  299. .view-type-slide.type-presse{order: 4;}
  300. .view-type-slide:not(footer){
  301. width: 100%;
  302. position: relative;
  303. z-index: 0;
  304. padding-bottom: rem;
  305. &::before {
  306. content: "";
  307. position: absolute;
  308. left: -30%;
  309. height: 100%;
  310. width: 110vw;
  311. z-index: 0;
  312. }
  313. > * {
  314. position: relative;
  315. z-index: 1;
  316. }
  317. h3{
  318. margin-top: 3rem;
  319. text-transform: uppercase;
  320. font-family: 'Source Code Pro';
  321. color: rgb(9, 57, 139) !important;
  322. display: flex;
  323. flex-direction: row;
  324. align-items: center;
  325. }
  326. h3.type-publication-issue-du-programme-eqld {
  327. &:before{
  328. content:url("../images/pictos/picto-ressource-eqld.svg");
  329. padding-right: 1rem;
  330. }
  331. }
  332. h3.type-paroles-de-laureats {
  333. &:before{
  334. content:url("../images/pictos/picto-ressource-paroleslaureats.svg");
  335. padding-right: 1rem;
  336. }
  337. }
  338. h3.type-les-projets-en-images {
  339. &:before{
  340. content:url("../images/pictos/picto-ressource-projetsimages.svg");
  341. padding-right: 1rem;
  342. }
  343. }
  344. h3.type-presse {
  345. &:before{
  346. content:url("../images/pictos/picto-ressource-presse.svg");
  347. padding-right: 1rem;
  348. }
  349. }
  350. .views-row-wrapper{
  351. display: flex;
  352. flex-direction: row;
  353. .slick-track{
  354. width: 100% !important;
  355. display: flex;
  356. flex-direction: row;
  357. .views-row{
  358. width: 45% !important;
  359. min-width: 450px !important;
  360. max-width: 500px !important;
  361. }
  362. }
  363. @media (max-width: 810px){
  364. flex-direction: column;
  365. .views-row{
  366. width: 100%;
  367. }
  368. }
  369. .slick-next::before{
  370. content:url("../images/pictos/fleche-droite-dans-rond.png");
  371. display: block;
  372. }
  373. .slick-prev::before{
  374. content:url("../images/pictos/fleche-droite-dans-rond.png");
  375. display: block;
  376. transform: scaleX(-1);
  377. // display: none;
  378. }
  379. .slick-prev.slick-disabled::before,
  380. .slick-next.slick-disabled::before{
  381. opacity: 0 !important;
  382. }
  383. .slick-next {
  384. right: 15%;
  385. }
  386. }
  387. }
  388. .view-type-slide:has(.type-publication-issue-du-programme-eqld){
  389. &::before{
  390. background-color: $background-actus;}
  391. }
  392. // .type-les-projets-en-images{
  393. // .slick-track{
  394. // width: 100% !important;
  395. // .views-row{
  396. // width: 100% !important;
  397. // }
  398. // }
  399. // }
  400. }
  401. }
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. }
  409. }