ressources.scss 23 KB

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